session_management

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for session management API

func (*Client) EndSession

func (a *Client) EndSession(params *EndSessionParams) (*EndSessionOK, error)

EndSession ends session

End current session.

func (*Client) RevokeSession

func (a *Client) RevokeSession(params *RevokeSessionParams) (*RevokeSessionOK, error)

RevokeSession revokes session

Revoke all sessions for user (requires revoke_session scope).

func (*Client) SessionStatus

func (a *Client) SessionStatus(params *SessionStatusParams) (*SessionStatusOK, error)

SessionStatus sessions status

Determine current sesion status.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	EndSession(params *EndSessionParams) (*EndSessionOK, error)

	RevokeSession(params *RevokeSessionParams) (*RevokeSessionOK, error)

	SessionStatus(params *SessionStatusParams) (*SessionStatusOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new session management API client.

type EndSessionBadRequest

type EndSessionBadRequest struct {
	Payload *models.ErrorResponse
}

EndSessionBadRequest handles this case with default header values.

Error codes for end session endpoint.

func NewEndSessionBadRequest

func NewEndSessionBadRequest() *EndSessionBadRequest

NewEndSessionBadRequest creates a EndSessionBadRequest with default headers values

func (*EndSessionBadRequest) Error

func (o *EndSessionBadRequest) Error() string

func (*EndSessionBadRequest) GetPayload

func (o *EndSessionBadRequest) GetPayload() *models.ErrorResponse

type EndSessionInternalServerError

type EndSessionInternalServerError struct {
	Payload *models.ErrorResponse
}

EndSessionInternalServerError handles this case with default header values.

Internal error occured. Please check log file for details.

func NewEndSessionInternalServerError

func NewEndSessionInternalServerError() *EndSessionInternalServerError

NewEndSessionInternalServerError creates a EndSessionInternalServerError with default headers values

func (*EndSessionInternalServerError) Error

func (*EndSessionInternalServerError) GetPayload

type EndSessionOK

type EndSessionOK struct {
}

EndSessionOK handles this case with default header values.

OK - User redirected to logout page

func NewEndSessionOK

func NewEndSessionOK() *EndSessionOK

NewEndSessionOK creates a EndSessionOK with default headers values

func (*EndSessionOK) Error

func (o *EndSessionOK) Error() string

type EndSessionParams

type EndSessionParams struct {

	/*IDTokenHint
	  Previously issued ID Token (id_token) passed to the logout endpoint as a hint about the End-User's current authenticated session with the Client. This is used as an indication of the identity of the End-User that the RP is requesting be logged out by the OP. The OP need not be listed as an audience of the ID Token when it is used as an id_token_hint value.

	*/
	IDTokenHint *string
	/*PostLogoutRedirectURI
	  URL to which the RP is requesting that the End-User's User Agent be redirected after a logout has been performed. The value MUST have been previously registered with the OP, either using the post_logout_redirect_uris Registration parameter or via another mechanism. If supplied, the OP SHOULD honor this request following the logout.

	*/
	PostLogoutRedirectURI *string
	/*SessionID
	  Session Id

	*/
	SessionID *string
	/*State
	  Opaque value used by the RP to maintain state between the logout request and the callback to the endpoint specified by the post_logout_redirect_uri parameter. If included in the logout request, the OP passes this value back to the RP using the state query parameter when redirecting the User Agent back to the RP.

	*/
	State *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

EndSessionParams contains all the parameters to send to the API endpoint for the end session operation typically these are written to a http.Request

func NewEndSessionParams

func NewEndSessionParams() *EndSessionParams

NewEndSessionParams creates a new EndSessionParams object with the default values initialized.

func NewEndSessionParamsWithContext

func NewEndSessionParamsWithContext(ctx context.Context) *EndSessionParams

NewEndSessionParamsWithContext creates a new EndSessionParams object with the default values initialized, and the ability to set a context for a request

func NewEndSessionParamsWithHTTPClient

func NewEndSessionParamsWithHTTPClient(client *http.Client) *EndSessionParams

NewEndSessionParamsWithHTTPClient creates a new EndSessionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewEndSessionParamsWithTimeout

func NewEndSessionParamsWithTimeout(timeout time.Duration) *EndSessionParams

NewEndSessionParamsWithTimeout creates a new EndSessionParams object with the default values initialized, and the ability to set a timeout on a request

func (*EndSessionParams) SetContext

func (o *EndSessionParams) SetContext(ctx context.Context)

SetContext adds the context to the end session params

func (*EndSessionParams) SetHTTPClient

func (o *EndSessionParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the end session params

func (*EndSessionParams) SetIDTokenHint

func (o *EndSessionParams) SetIDTokenHint(iDTokenHint *string)

SetIDTokenHint adds the idTokenHint to the end session params

func (*EndSessionParams) SetPostLogoutRedirectURI

func (o *EndSessionParams) SetPostLogoutRedirectURI(postLogoutRedirectURI *string)

SetPostLogoutRedirectURI adds the postLogoutRedirectUri to the end session params

func (*EndSessionParams) SetSessionID

func (o *EndSessionParams) SetSessionID(sessionID *string)

SetSessionID adds the sessionId to the end session params

func (*EndSessionParams) SetState

func (o *EndSessionParams) SetState(state *string)

SetState adds the state to the end session params

func (*EndSessionParams) SetTimeout

func (o *EndSessionParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the end session params

func (*EndSessionParams) WithContext

func (o *EndSessionParams) WithContext(ctx context.Context) *EndSessionParams

WithContext adds the context to the end session params

func (*EndSessionParams) WithHTTPClient

func (o *EndSessionParams) WithHTTPClient(client *http.Client) *EndSessionParams

WithHTTPClient adds the HTTPClient to the end session params

func (*EndSessionParams) WithIDTokenHint

func (o *EndSessionParams) WithIDTokenHint(iDTokenHint *string) *EndSessionParams

WithIDTokenHint adds the iDTokenHint to the end session params

func (*EndSessionParams) WithPostLogoutRedirectURI

func (o *EndSessionParams) WithPostLogoutRedirectURI(postLogoutRedirectURI *string) *EndSessionParams

WithPostLogoutRedirectURI adds the postLogoutRedirectURI to the end session params

func (*EndSessionParams) WithSessionID

func (o *EndSessionParams) WithSessionID(sessionID *string) *EndSessionParams

WithSessionID adds the sessionID to the end session params

func (*EndSessionParams) WithState

func (o *EndSessionParams) WithState(state *string) *EndSessionParams

WithState adds the state to the end session params

func (*EndSessionParams) WithTimeout

func (o *EndSessionParams) WithTimeout(timeout time.Duration) *EndSessionParams

WithTimeout adds the timeout to the end session params

func (*EndSessionParams) WriteToRequest

func (o *EndSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type EndSessionReader

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

EndSessionReader is a Reader for the EndSession structure.

func (*EndSessionReader) ReadResponse

func (o *EndSessionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type RevokeSessionInternalServerError

type RevokeSessionInternalServerError struct {
	Payload *models.ErrorResponse
}

RevokeSessionInternalServerError handles this case with default header values.

Internal error occured. Please check log file for details.

func NewRevokeSessionInternalServerError

func NewRevokeSessionInternalServerError() *RevokeSessionInternalServerError

NewRevokeSessionInternalServerError creates a RevokeSessionInternalServerError with default headers values

func (*RevokeSessionInternalServerError) Error

func (*RevokeSessionInternalServerError) GetPayload

type RevokeSessionOK

type RevokeSessionOK struct {
}

RevokeSessionOK handles this case with default header values.

OK - Returned if request was processed successfully. Means it will return in case sessions are found as well as in case sessions are not found (error is not returned to not disclose internal information).

func NewRevokeSessionOK

func NewRevokeSessionOK() *RevokeSessionOK

NewRevokeSessionOK creates a RevokeSessionOK with default headers values

func (*RevokeSessionOK) Error

func (o *RevokeSessionOK) Error() string

type RevokeSessionParams

type RevokeSessionParams struct {

	/*UserCriterionKey
	  user criterion key (e.g. uid)

	*/
	UserCriterionKey string
	/*UserCriterionValue
	  user criterion value (e.g. chris)

	*/
	UserCriterionValue string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

RevokeSessionParams contains all the parameters to send to the API endpoint for the revoke session operation typically these are written to a http.Request

func NewRevokeSessionParams

func NewRevokeSessionParams() *RevokeSessionParams

NewRevokeSessionParams creates a new RevokeSessionParams object with the default values initialized.

func NewRevokeSessionParamsWithContext

func NewRevokeSessionParamsWithContext(ctx context.Context) *RevokeSessionParams

NewRevokeSessionParamsWithContext creates a new RevokeSessionParams object with the default values initialized, and the ability to set a context for a request

func NewRevokeSessionParamsWithHTTPClient

func NewRevokeSessionParamsWithHTTPClient(client *http.Client) *RevokeSessionParams

NewRevokeSessionParamsWithHTTPClient creates a new RevokeSessionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewRevokeSessionParamsWithTimeout

func NewRevokeSessionParamsWithTimeout(timeout time.Duration) *RevokeSessionParams

NewRevokeSessionParamsWithTimeout creates a new RevokeSessionParams object with the default values initialized, and the ability to set a timeout on a request

func (*RevokeSessionParams) SetContext

func (o *RevokeSessionParams) SetContext(ctx context.Context)

SetContext adds the context to the revoke session params

func (*RevokeSessionParams) SetHTTPClient

func (o *RevokeSessionParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the revoke session params

func (*RevokeSessionParams) SetTimeout

func (o *RevokeSessionParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the revoke session params

func (*RevokeSessionParams) SetUserCriterionKey

func (o *RevokeSessionParams) SetUserCriterionKey(userCriterionKey string)

SetUserCriterionKey adds the userCriterionKey to the revoke session params

func (*RevokeSessionParams) SetUserCriterionValue

func (o *RevokeSessionParams) SetUserCriterionValue(userCriterionValue string)

SetUserCriterionValue adds the userCriterionValue to the revoke session params

func (*RevokeSessionParams) WithContext

WithContext adds the context to the revoke session params

func (*RevokeSessionParams) WithHTTPClient

func (o *RevokeSessionParams) WithHTTPClient(client *http.Client) *RevokeSessionParams

WithHTTPClient adds the HTTPClient to the revoke session params

func (*RevokeSessionParams) WithTimeout

func (o *RevokeSessionParams) WithTimeout(timeout time.Duration) *RevokeSessionParams

WithTimeout adds the timeout to the revoke session params

func (*RevokeSessionParams) WithUserCriterionKey

func (o *RevokeSessionParams) WithUserCriterionKey(userCriterionKey string) *RevokeSessionParams

WithUserCriterionKey adds the userCriterionKey to the revoke session params

func (*RevokeSessionParams) WithUserCriterionValue

func (o *RevokeSessionParams) WithUserCriterionValue(userCriterionValue string) *RevokeSessionParams

WithUserCriterionValue adds the userCriterionValue to the revoke session params

func (*RevokeSessionParams) WriteToRequest

func (o *RevokeSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type RevokeSessionReader

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

RevokeSessionReader is a Reader for the RevokeSession structure.

func (*RevokeSessionReader) ReadResponse

func (o *RevokeSessionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type RevokeSessionUnauthorized

type RevokeSessionUnauthorized struct {
	Payload *models.ErrorResponse
}

RevokeSessionUnauthorized handles this case with default header values.

Unauthorized access request.

func NewRevokeSessionUnauthorized

func NewRevokeSessionUnauthorized() *RevokeSessionUnauthorized

NewRevokeSessionUnauthorized creates a RevokeSessionUnauthorized with default headers values

func (*RevokeSessionUnauthorized) Error

func (o *RevokeSessionUnauthorized) Error() string

func (*RevokeSessionUnauthorized) GetPayload

type SessionStatusOK

type SessionStatusOK struct {
	Payload *models.SessionStateObject
}

SessionStatusOK handles this case with default header values.

OK

func NewSessionStatusOK

func NewSessionStatusOK() *SessionStatusOK

NewSessionStatusOK creates a SessionStatusOK with default headers values

func (*SessionStatusOK) Error

func (o *SessionStatusOK) Error() string

func (*SessionStatusOK) GetPayload

func (o *SessionStatusOK) GetPayload() *models.SessionStateObject

type SessionStatusParams

type SessionStatusParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SessionStatusParams contains all the parameters to send to the API endpoint for the session status operation typically these are written to a http.Request

func NewSessionStatusParams

func NewSessionStatusParams() *SessionStatusParams

NewSessionStatusParams creates a new SessionStatusParams object with the default values initialized.

func NewSessionStatusParamsWithContext

func NewSessionStatusParamsWithContext(ctx context.Context) *SessionStatusParams

NewSessionStatusParamsWithContext creates a new SessionStatusParams object with the default values initialized, and the ability to set a context for a request

func NewSessionStatusParamsWithHTTPClient

func NewSessionStatusParamsWithHTTPClient(client *http.Client) *SessionStatusParams

NewSessionStatusParamsWithHTTPClient creates a new SessionStatusParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewSessionStatusParamsWithTimeout

func NewSessionStatusParamsWithTimeout(timeout time.Duration) *SessionStatusParams

NewSessionStatusParamsWithTimeout creates a new SessionStatusParams object with the default values initialized, and the ability to set a timeout on a request

func (*SessionStatusParams) SetContext

func (o *SessionStatusParams) SetContext(ctx context.Context)

SetContext adds the context to the session status params

func (*SessionStatusParams) SetHTTPClient

func (o *SessionStatusParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the session status params

func (*SessionStatusParams) SetTimeout

func (o *SessionStatusParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the session status params

func (*SessionStatusParams) WithContext

WithContext adds the context to the session status params

func (*SessionStatusParams) WithHTTPClient

func (o *SessionStatusParams) WithHTTPClient(client *http.Client) *SessionStatusParams

WithHTTPClient adds the HTTPClient to the session status params

func (*SessionStatusParams) WithTimeout

func (o *SessionStatusParams) WithTimeout(timeout time.Duration) *SessionStatusParams

WithTimeout adds the timeout to the session status params

func (*SessionStatusParams) WriteToRequest

func (o *SessionStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type SessionStatusReader

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

SessionStatusReader is a Reader for the SessionStatus structure.

func (*SessionStatusReader) ReadResponse

func (o *SessionStatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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