Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizeRequest ¶
type AuthorizeRequest struct {
ResponseType string `form:"response_type" binding:"required"` //code token id_token, code map to AuthorizationCode flow, token,id_token map to implicit flow
ClientId string `form:"client_id" binding:"required"`
ClientSecret string `form:"client_secret"`
RedirectUri string `form:"redirect_uri" binding:"required"`
Scope string `form:"scope"`
Nonce string `form:"nonce"`
State string `form:"state"`
ResponseMode string `form:"response_mode"` //fragment, query,form_post
CodeChallenge string `form:"code_challenge"`
CodeChallengeMethod string `form:"code_challenge_method"`
Issuer string `form:"-"`
}
func (*AuthorizeRequest) ResponseCode ¶
func (req *AuthorizeRequest) ResponseCode() bool
func (*AuthorizeRequest) ResponseWithIdToken ¶
func (req *AuthorizeRequest) ResponseWithIdToken() bool
func (*AuthorizeRequest) ResponseWithToken ¶
func (req *AuthorizeRequest) ResponseWithToken() bool
type ClientCredentialsRequest ¶
type ClientCredentialsRequest struct {
TokenRequest
}
type CodeFlowRequest ¶
type CodeFlowRequest struct {
CodeVerifier string `form:"code_verifier"`
Code string `form:"code" binding:"required"`
RedirectUri string `form:"redirect_uri" binding:"required"`
State string `form:"state"`
CodeChallenge string `form:"code_challenge"`
CodeChallengeMethod string `form:"code_challenge_method"`
Nonce string `form:"nonce"`
TokenRequest
}
use for tokenendpoint to validate authorization code flow request
type DeviceCodeRequest ¶
type DeviceCodeTokenRequest ¶
type DeviceCodeTokenRequest struct {
DeviceCode string `form:"device_code" binding:"required"`
TokenRequest
}
type EndSessionRequest ¶ added in v0.12.0
type InstropectRequest ¶
type LoginRequest ¶ added in v0.12.1
type PasswordRequest ¶
type PasswordRequest struct {
Password string `form:"password" binding:"required"`
UserName string `form:"username" binding:"required"`
TokenRequest
}
type RefreshTokenRequest ¶
type RefreshTokenRequest struct {
RefreshToken string `form:"refresh_token" binding:"required"`
TokenRequest
}
type RevokeRequest ¶ added in v0.12.0
Click to show internal directories.
Click to hide internal directories.