Documentation ¶
Index ¶
- type ConsentResponse
- type LoginResponse
- type Process
- func (p *Process) Consent(ctx context.Context, ar *auth.Request, payload *ConsentResponse) (*Response, error)
- func (p *Process) Login(ctx context.Context, ar *auth.Request, payload *LoginResponse) (*Response, error)
- func (p *Process) Next(ar *auth.Request) (*Response, error)
- func (p *Process) SelectAccount(ctx context.Context, ar *auth.Request, payload *SelectAccountResponse) (*Response, error)
- type Response
- type SelectAccountResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsentResponse ¶
type LoginResponse ¶
type LoginResponse struct { Subject string `json:"subject"` AuthTime int64 `json:"auth_time"` Acr string `json:"acr"` Amr []string `json:"amr"` Remember int64 `json:"remember"` UIData json.RawMessage `json:"ui_data"` }
func (*LoginResponse) ToUserSession ¶
func (r *LoginResponse) ToUserSession() *user.Session
ToUserSession transforms the content of the login response to user.Session.
type Process ¶
type Process struct { ConsentResolver auth.UserConsentResolver ConsentStorage user.ConsentStorage Provider *pkg.Provider Logger *zerolog.Logger }
func (*Process) SelectAccount ¶
type Response ¶
Response contains all the response data at the interaction endpoint.
func (*Response) MarshalJSON ¶
type SelectAccountResponse ¶
type SelectAccountResponse struct {
UserSessionId string `json:"user_session_id"`
}
Click to show internal directories.
Click to hide internal directories.