handle response mode
This commit is contained in:
parent
f067d723f2
commit
484182a0f8
5 changed files with 49 additions and 15 deletions
|
@ -42,6 +42,9 @@ const (
|
|||
DisplayTouch Display = "touch"
|
||||
DisplayWAP Display = "wap"
|
||||
|
||||
ResponseModeQuery ResponseMode = "query"
|
||||
ResponseModeFragment ResponseMode = "fragment"
|
||||
|
||||
//PromptNone (`none`) disallows the Authorization Server to display any authentication or consent user interface pages.
|
||||
//An error (login_required, interaction_required, ...) will be returned if the user is not already authenticated or consent is needed
|
||||
PromptNone = "none"
|
||||
|
|
|
@ -67,6 +67,8 @@ type Prompt SpaceDelimitedArray
|
|||
|
||||
type ResponseType string
|
||||
|
||||
type ResponseMode string
|
||||
|
||||
func (s SpaceDelimitedArray) Encode() string {
|
||||
return strings.Join(s, " ")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue