mirror of
https://github.com/xslasd/x-oidc.git
synced 2025-10-27 18:00:24 +08:00
First submission of code
This commit is contained in:
30
storage/authrequest.go
Normal file
30
storage/authrequest.go
Normal file
@@ -0,0 +1,30 @@
|
||||
package storage
|
||||
|
||||
import "golang.org/x/text/language"
|
||||
|
||||
type AuthRequest struct {
|
||||
RequestID string `json:"request_id"`
|
||||
UserID string `json:"user_id"`
|
||||
|
||||
Scopes []string `json:"scope"`
|
||||
ResponseType string `json:"response_type"`
|
||||
ClientID string `json:"client_id"`
|
||||
RedirectURI string `json:"redirect_uri"`
|
||||
|
||||
State string `json:"state"`
|
||||
Nonce string `json:"nonce"`
|
||||
|
||||
ResponseMode string `json:"response_mode"`
|
||||
Display string `json:"display"`
|
||||
Prompt []string `json:"prompt"`
|
||||
MaxAge int64 `json:"max_age"`
|
||||
UILocales []language.Tag `json:"ui_locales"`
|
||||
LoginHint string `json:"login_hint"`
|
||||
ACRValues []string `json:"acr_values"`
|
||||
|
||||
CodeChallenge string `json:"code_challenge"`
|
||||
CodeChallengeMethod string `json:"code_challenge_method"`
|
||||
|
||||
Done bool `json:"done"`
|
||||
Audience []string `json:"audience"`
|
||||
}
|
||||
Reference in New Issue
Block a user