auth

package
v1.0.0-alpha.31 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizeParams

type AuthorizeParams struct {

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

	HTTPResponse http.ResponseWriter `json:"-"`

	/*The URL to which the authentication server redirects the browser for action
	  In: query
	*/
	AppURI *string

	/*
	  Required: true
	  In: query
	*/
	Audience string

	/*The client id
	  Required: true
	  In: query
	*/
	ClientID string

	/*The generated challenge from the code_verifier.
	  Required: true
	  In: query
	*/
	CodeChallenge string

	/*The method used to generate the challenge. The PKCE RFC defines two methods, S256 and plain;
	however, the authentication serivce supports only S256.

	  In: query
	  Default: "S256"
	*/
	CodeChallengeMethod *string

	/*The URL to which the authentication server redirects the browser after authorization has been granted by the user
	  In: query
	*/
	RedirectURI *string

	/*The authorization code response type
	  Required: true
	  In: query
	*/
	ResponseType string

	/*The requested scopes, if empty will request all the user permissions.

	  In: query
	  Collection Format: ssv
	*/
	Scope []string

	/*Opaque state returned the redirect uri
	  In: query
	*/
	State *string

	/*The user pool to authorize against
	  In: query
	*/
	UserPool *string
}

AuthorizeParams contains all the bound params for the authorize operation typically these are obtained from a http.Request

swagger:parameters Authorize

func NewAuthorizeParams

func NewAuthorizeParams() AuthorizeParams

NewAuthorizeParams creates a new AuthorizeParams object with the default values initialized.

func (*AuthorizeParams) BindRequest

func (o *AuthorizeParams) BindRequest(w http.ResponseWriter, r *http.Request, c ...runtime.Consumer) error

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.

func (*AuthorizeParams) BindRequestW

func (o *AuthorizeParams) BindRequestW(w http.ResponseWriter, r *http.Request, c ...runtime.Consumer) error

BindRequestW 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.

func (*AuthorizeParams) RW

func (*AuthorizeParams) WR

type LoginParams

type LoginParams struct {

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

	HTTPResponse http.ResponseWriter `json:"-"`

	/*The PKCE code verifier
	  Required: true
	  In: formData
	*/
	CodeVerifier string

	/*The user login
	  Required: true
	  In: formData
	*/
	Login string

	/*The user password
	  Required: true
	  In: formData
	*/
	Password string

	/*"The authorization request token"

	  Required: true
	  In: formData
	*/
	RequestToken string
}

LoginParams contains all the bound params for the login operation typically these are obtained from a http.Request

swagger:parameters Login

func NewLoginParams

func NewLoginParams() LoginParams

NewLoginParams creates a new LoginParams object no default values defined in spec.

func (*LoginParams) BindRequest

func (o *LoginParams) BindRequest(w http.ResponseWriter, r *http.Request, c ...runtime.Consumer) error

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.

func (*LoginParams) BindRequestW

func (o *LoginParams) BindRequestW(w http.ResponseWriter, r *http.Request, c ...runtime.Consumer) error

BindRequestW 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.

func (*LoginParams) RW

func (*LoginParams) WR

type LogoutParams

type LogoutParams struct {

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

	HTTPResponse http.ResponseWriter `json:"-"`

	/*The client id
	  Required: true
	  In: query
	*/
	ClientID string

	/*The uri to redirect to after logout
	  In: query
	*/
	RedirectURI *string

	/*Logout state
	  In: query
	*/
	State *string
}

LogoutParams contains all the bound params for the logout operation typically these are obtained from a http.Request

swagger:parameters Logout

func NewLogoutParams

func NewLogoutParams() LogoutParams

NewLogoutParams creates a new LogoutParams object no default values defined in spec.

func (*LogoutParams) BindRequest

func (o *LogoutParams) BindRequest(w http.ResponseWriter, r *http.Request, c ...runtime.Consumer) error

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.

func (*LogoutParams) BindRequestW

func (o *LogoutParams) BindRequestW(w http.ResponseWriter, r *http.Request, c ...runtime.Consumer) error

BindRequestW 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.

func (*LogoutParams) RW

func (*LogoutParams) WR

type PasswordResetParams

type PasswordResetParams struct {

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

	HTTPResponse http.ResponseWriter `json:"-"`

	/*The PKCE code verifier
	  Required: true
	  In: formData
	*/
	CodeVerifier string

	/*The user's login
	  Required: true
	  In: formData
	*/
	Login string

	/*The uri to redirect to after password reset request
	  In: formData
	*/
	RedirectURI *strfmt.URI

	/*"The authorization request token"

	  Required: true
	  In: formData
	*/
	RequestToken string
}

PasswordResetParams contains all the bound params for the password reset operation typically these are obtained from a http.Request

swagger:parameters PasswordReset

func NewPasswordResetParams

func NewPasswordResetParams() PasswordResetParams

NewPasswordResetParams creates a new PasswordResetParams object no default values defined in spec.

func (*PasswordResetParams) 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.

func (*PasswordResetParams) BindRequestW

BindRequestW 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.

func (*PasswordResetParams) RW

func (*PasswordResetParams) WR

type PasswordSetParams

type PasswordSetParams struct {

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

	HTTPResponse http.ResponseWriter `json:"-"`

	/*The PKCE code verifier
	  Required: true
	  In: formData
	*/
	CodeVerifier string

	/*The user's login
	  Required: true
	  In: formData
	*/
	Login string

	/*The new password
	  Required: true
	  In: formData
	*/
	Password string

	/*The uri to redirect to after password reset
	  In: formData
	*/
	RedirectURI *strfmt.URI

	/*The reset verification code
	  Required: true
	  In: formData
	*/
	ResetCode string
}

PasswordSetParams contains all the bound params for the password set operation typically these are obtained from a http.Request

swagger:parameters PasswordSet

func NewPasswordSetParams

func NewPasswordSetParams() PasswordSetParams

NewPasswordSetParams creates a new PasswordSetParams object no default values defined in spec.

func (*PasswordSetParams) BindRequest

func (o *PasswordSetParams) BindRequest(w http.ResponseWriter, r *http.Request, c ...runtime.Consumer) error

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.

func (*PasswordSetParams) BindRequestW

func (o *PasswordSetParams) BindRequestW(w http.ResponseWriter, r *http.Request, c ...runtime.Consumer) error

BindRequestW 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.

func (*PasswordSetParams) RW

func (*PasswordSetParams) WR

type PublicKeyGetParams

type PublicKeyGetParams struct {

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

	HTTPResponse http.ResponseWriter `json:"-"`
}

PublicKeyGetParams contains all the bound params for the public key get operation typically these are obtained from a http.Request

swagger:parameters PublicKeyGet

func NewPublicKeyGetParams

func NewPublicKeyGetParams() PublicKeyGetParams

NewPublicKeyGetParams creates a new PublicKeyGetParams object no default values defined in spec.

func (*PublicKeyGetParams) 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.

func (*PublicKeyGetParams) BindRequestW

func (o *PublicKeyGetParams) BindRequestW(w http.ResponseWriter, r *http.Request, c ...runtime.Consumer) error

BindRequestW 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.

func (*PublicKeyGetParams) RW

func (*PublicKeyGetParams) WR

type SignupParams

type SignupParams struct {

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

	HTTPResponse http.ResponseWriter `json:"-"`

	/*The PKCE code verifier
	  Required: true
	  In: formData
	*/
	CodeVerifier string

	/*The user's email address
	  Required: true
	  In: formData
	*/
	Email strfmt.Email

	/*Inivitation codes allow for users to sign up when public sign up is disabled.

	  In: formData
	*/
	InviteCode *string

	/*The user's login
	  Required: true
	  In: formData
	*/
	Login string

	/*The user's full name
	  In: formData
	*/
	Name *string

	/*The user's password
	  Required: true
	  In: formData
	*/
	Password string

	/*"The authorization request token"

	  Required: true
	  In: formData
	*/
	RequestToken string
}

SignupParams contains all the bound params for the signup operation typically these are obtained from a http.Request

swagger:parameters Signup

func NewSignupParams

func NewSignupParams() SignupParams

NewSignupParams creates a new SignupParams object no default values defined in spec.

func (*SignupParams) BindRequest

func (o *SignupParams) BindRequest(w http.ResponseWriter, r *http.Request, c ...runtime.Consumer) error

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.

func (*SignupParams) BindRequestW

func (o *SignupParams) BindRequestW(w http.ResponseWriter, r *http.Request, c ...runtime.Consumer) error

BindRequestW 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.

func (*SignupParams) RW

func (*SignupParams) WR

type TokenParams

type TokenParams struct {

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

	HTTPResponse http.ResponseWriter `json:"-"`

	/*The reqest audience for client_credentials flows
	  In: formData
	*/
	Audience *string

	/*The client id
	  Required: true
	  In: formData
	*/
	ClientID string

	/*The client secret
	  In: formData
	*/
	ClientSecret *string

	/*The authorization code
	  In: formData
	*/
	Code *string

	/*The PKCE code verifier
	  In: formData
	*/
	CodeVerifier *string

	/*The authorization grant type
	  Required: true
	  In: formData
	*/
	GrantType string

	/*The password for password grants
	  In: formData
	*/
	Password *string

	/*The new refresh token nonce is the S256 of a client generated value as defined
	in the PKCE standard, similar to that used in the authorization flow.

	When requesting `offline_access` the client will generate a nonce value and
	pass the base64 raw url encoded value of the S256 of this nonce.

	Each subsequent `offline_access` request in the `refresh_token` flow requires
	a new verifier.

	  In: formData
	*/
	RefreshNonce *string

	/*The refresh token
	  In: formData
	*/
	RefreshToken *string

	/*Verifier nonce used to validate a refresh token request. This is the base64
	raw url encoded value of the original nonce generated by the client.

	  In: formData
	*/
	RefreshVerifier *string

	/*The scopes
	  In: formData
	  Collection Format: ssv
	*/
	Scope []string

	/*The username for password grants
	  In: formData
	*/
	Username *string
}

TokenParams contains all the bound params for the token operation typically these are obtained from a http.Request

swagger:parameters Token

func NewTokenParams

func NewTokenParams() TokenParams

NewTokenParams creates a new TokenParams object no default values defined in spec.

func (*TokenParams) BindRequest

func (o *TokenParams) BindRequest(w http.ResponseWriter, r *http.Request, c ...runtime.Consumer) error

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.

func (*TokenParams) BindRequestW

func (o *TokenParams) BindRequestW(w http.ResponseWriter, r *http.Request, c ...runtime.Consumer) error

BindRequestW 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.

func (*TokenParams) RW

func (*TokenParams) WR

type VerifyParams

type VerifyParams struct {

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

	HTTPResponse http.ResponseWriter `json:"-"`

	/*The verification code
	  Required: true
	  In: query
	*/
	Code string

	/*The redirect uri
	  Required: true
	  In: query
	*/
	RedirectURI string

	/*The user's subject identifier
	  Required: true
	  In: query
	*/
	Sub string
}

VerifyParams contains all the bound params for the verify operation typically these are obtained from a http.Request

swagger:parameters Verify

func NewVerifyParams

func NewVerifyParams() VerifyParams

NewVerifyParams creates a new VerifyParams object no default values defined in spec.

func (*VerifyParams) BindRequest

func (o *VerifyParams) BindRequest(w http.ResponseWriter, r *http.Request, c ...runtime.Consumer) error

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.

func (*VerifyParams) BindRequestW

func (o *VerifyParams) BindRequestW(w http.ResponseWriter, r *http.Request, c ...runtime.Consumer) error

BindRequestW 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.

func (*VerifyParams) RW

func (*VerifyParams) WR

Jump to

Keyboard shortcuts

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