well_known

package
v1.18.0-rc.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2023 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const GetWellKnownOpenidConfigurationInternalServerErrorCode int = 500

GetWellKnownOpenidConfigurationInternalServerErrorCode is the HTTP code returned for type GetWellKnownOpenidConfigurationInternalServerError

View Source
const GetWellKnownOpenidConfigurationNotFoundCode int = 404

GetWellKnownOpenidConfigurationNotFoundCode is the HTTP code returned for type GetWellKnownOpenidConfigurationNotFound

View Source
const GetWellKnownOpenidConfigurationOKCode int = 200

GetWellKnownOpenidConfigurationOKCode is the HTTP code returned for type GetWellKnownOpenidConfigurationOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetWellKnownOpenidConfiguration

type GetWellKnownOpenidConfiguration struct {
	Context *middleware.Context
	Handler GetWellKnownOpenidConfigurationHandler
}
GetWellKnownOpenidConfiguration swagger:route GET /.well-known/openid-configuration well-known oidc discovery getWellKnownOpenidConfiguration

OIDC discovery information if OIDC auth is enabled

OIDC Discovery page, redirects to the token issuer if one is configured

func NewGetWellKnownOpenidConfiguration

func NewGetWellKnownOpenidConfiguration(ctx *middleware.Context, handler GetWellKnownOpenidConfigurationHandler) *GetWellKnownOpenidConfiguration

NewGetWellKnownOpenidConfiguration creates a new http.Handler for the get well known openid configuration operation

func (*GetWellKnownOpenidConfiguration) ServeHTTP

type GetWellKnownOpenidConfigurationHandler

type GetWellKnownOpenidConfigurationHandler interface {
	Handle(GetWellKnownOpenidConfigurationParams, *models.Principal) middleware.Responder
}

GetWellKnownOpenidConfigurationHandler interface for that can handle valid get well known openid configuration params

type GetWellKnownOpenidConfigurationHandlerFunc

type GetWellKnownOpenidConfigurationHandlerFunc func(GetWellKnownOpenidConfigurationParams, *models.Principal) middleware.Responder

GetWellKnownOpenidConfigurationHandlerFunc turns a function with the right signature into a get well known openid configuration handler

func (GetWellKnownOpenidConfigurationHandlerFunc) Handle

Handle executing the request and returning a response

type GetWellKnownOpenidConfigurationInternalServerError

type GetWellKnownOpenidConfigurationInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

GetWellKnownOpenidConfigurationInternalServerError An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.

swagger:response getWellKnownOpenidConfigurationInternalServerError

func NewGetWellKnownOpenidConfigurationInternalServerError

func NewGetWellKnownOpenidConfigurationInternalServerError() *GetWellKnownOpenidConfigurationInternalServerError

NewGetWellKnownOpenidConfigurationInternalServerError creates GetWellKnownOpenidConfigurationInternalServerError with default headers values

func (*GetWellKnownOpenidConfigurationInternalServerError) SetPayload

SetPayload sets the payload to the get well known openid configuration internal server error response

func (*GetWellKnownOpenidConfigurationInternalServerError) WithPayload

WithPayload adds the payload to the get well known openid configuration internal server error response

func (*GetWellKnownOpenidConfigurationInternalServerError) WriteResponse

WriteResponse to the client

type GetWellKnownOpenidConfigurationNotFound

type GetWellKnownOpenidConfigurationNotFound struct {
}

GetWellKnownOpenidConfigurationNotFound Not found, no oidc provider present

swagger:response getWellKnownOpenidConfigurationNotFound

func NewGetWellKnownOpenidConfigurationNotFound

func NewGetWellKnownOpenidConfigurationNotFound() *GetWellKnownOpenidConfigurationNotFound

NewGetWellKnownOpenidConfigurationNotFound creates GetWellKnownOpenidConfigurationNotFound with default headers values

func (*GetWellKnownOpenidConfigurationNotFound) WriteResponse

WriteResponse to the client

type GetWellKnownOpenidConfigurationOK

type GetWellKnownOpenidConfigurationOK struct {

	/*
	  In: Body
	*/
	Payload *GetWellKnownOpenidConfigurationOKBody `json:"body,omitempty"`
}

GetWellKnownOpenidConfigurationOK Successful response, inspect body

swagger:response getWellKnownOpenidConfigurationOK

func NewGetWellKnownOpenidConfigurationOK

func NewGetWellKnownOpenidConfigurationOK() *GetWellKnownOpenidConfigurationOK

NewGetWellKnownOpenidConfigurationOK creates GetWellKnownOpenidConfigurationOK with default headers values

func (*GetWellKnownOpenidConfigurationOK) SetPayload

SetPayload sets the payload to the get well known openid configuration o k response

func (*GetWellKnownOpenidConfigurationOK) WithPayload

WithPayload adds the payload to the get well known openid configuration o k response

func (*GetWellKnownOpenidConfigurationOK) WriteResponse

func (o *GetWellKnownOpenidConfigurationOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetWellKnownOpenidConfigurationOKBody

type GetWellKnownOpenidConfigurationOKBody struct {

	// OAuth Client ID
	ClientID string `json:"clientId,omitempty" yaml:"clientId,omitempty"`

	// The Location to redirect to
	Href string `json:"href,omitempty" yaml:"href,omitempty"`

	// OAuth Scopes
	Scopes []string `json:"scopes,omitempty" yaml:"scopes,omitempty"`
}

GetWellKnownOpenidConfigurationOKBody get well known openid configuration o k body

swagger:model GetWellKnownOpenidConfigurationOKBody

func (*GetWellKnownOpenidConfigurationOKBody) ContextValidate added in v1.18.0

func (o *GetWellKnownOpenidConfigurationOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get well known openid configuration o k body based on context it is used

func (*GetWellKnownOpenidConfigurationOKBody) MarshalBinary

func (o *GetWellKnownOpenidConfigurationOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetWellKnownOpenidConfigurationOKBody) UnmarshalBinary

func (o *GetWellKnownOpenidConfigurationOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetWellKnownOpenidConfigurationOKBody) Validate

Validate validates this get well known openid configuration o k body

type GetWellKnownOpenidConfigurationParams

type GetWellKnownOpenidConfigurationParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

GetWellKnownOpenidConfigurationParams contains all the bound params for the get well known openid configuration operation typically these are obtained from a http.Request

swagger:parameters GetWellKnownOpenidConfiguration

func NewGetWellKnownOpenidConfigurationParams

func NewGetWellKnownOpenidConfigurationParams() GetWellKnownOpenidConfigurationParams

NewGetWellKnownOpenidConfigurationParams creates a new GetWellKnownOpenidConfigurationParams object

There are no default values defined in the spec.

func (*GetWellKnownOpenidConfigurationParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetWellKnownOpenidConfigurationParams() beforehand.

type GetWellKnownOpenidConfigurationURL

type GetWellKnownOpenidConfigurationURL struct {
	// contains filtered or unexported fields
}

GetWellKnownOpenidConfigurationURL generates an URL for the get well known openid configuration operation

func (*GetWellKnownOpenidConfigurationURL) Build

Build a url path and query string

func (*GetWellKnownOpenidConfigurationURL) BuildFull

func (o *GetWellKnownOpenidConfigurationURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetWellKnownOpenidConfigurationURL) Must

Must is a helper function to panic when the url builder returns an error

func (*GetWellKnownOpenidConfigurationURL) SetBasePath

func (o *GetWellKnownOpenidConfigurationURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetWellKnownOpenidConfigurationURL) String

String returns the string representation of the path with query string

func (*GetWellKnownOpenidConfigurationURL) StringFull

func (o *GetWellKnownOpenidConfigurationURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetWellKnownOpenidConfigurationURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL