Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type AuthorizationCode ¶
type AuthorizeRequest ¶
type AuthorizeRequest struct {
ResponseType ResponseType `form:"response_type" binding:"required"`
ClientId string `form:"client_id" binding:"required"`
RedirectUri string `form:"redirect_uri" binding:"required"`
Scope string `form:"scope" binding:"required"`
State string `form:"state" binding:"required"`
CodeChallenge string `form:"code_challenge" binding:"required"`
CodeChallengeMethod CodeChallengeMethodType `form:"code_challenge_method" binding:"required"`
}
func (*AuthorizeRequest) CodeChallengeMethodS256 ¶
func (r *AuthorizeRequest) CodeChallengeMethodS256() bool
func (*AuthorizeRequest) ResponseTypeCode ¶
func (r *AuthorizeRequest) ResponseTypeCode() bool
type CodeChallenge ¶
type CodeChallenge struct {
AuthorizationCode string `gorm:"primaryKey"`
CodeChallenge string `gorm:"not null"`
CodeChallengeMethod CodeChallengeMethodType `gorm:"not null;type:char(4)"`
}
func (*CodeChallenge) Verify ¶
func (c *CodeChallenge) Verify(verifier string) bool
type CodeChallengeMethodType ¶
type CodeChallengeMethodType string
const (
CodeChallengeMethodS256 CodeChallengeMethodType = "S256"
)
type DecisionRequest ¶
type TokenRequest ¶
type TokenRequest struct {
GrantType string `json:"grant_type" binding:"required,oneof=authorization_code"`
Code string `json:"code" binding:"required"`
RedirectUri string `json:"redirect_uri" binding:"required"`
ClientId string `json:"client_id" binding:"required"`
CodeVerifier string `json:"code_verifier" binding:"required"`
}
Click to show internal directories.
Click to hide internal directories.