2022-10-09 14:18:13 +00:00
|
|
|
package constants
|
|
|
|
|
|
|
|
const (
|
|
|
|
// - query: for Authorization Code grant. 302 Found triggers redirect.
|
|
|
|
ResponseModeQuery = "query"
|
|
|
|
// - fragment: for Implicit grant. 302 Found triggers redirect.
|
|
|
|
ResponseModeFragment = "fragment"
|
|
|
|
// - form_post: 200 OK with response parameters embedded in an HTML form as hidden parameters.
|
|
|
|
ResponseModeFormPost = "form_post"
|
|
|
|
// - web_message: For Silent Authentication. Uses HTML5 web messaging.
|
|
|
|
ResponseModeWebMessage = "web_message"
|
|
|
|
|
|
|
|
// For the Authorization Code grant, use response_type=code to include the authorization code.
|
|
|
|
ResponseTypeCode = "code"
|
|
|
|
// For the Implicit grant, use response_type=token to include an access token.
|
|
|
|
ResponseTypeToken = "token"
|
2022-10-16 15:33:37 +00:00
|
|
|
// For the Implicit grant of id_token, use response_type=id_token to include an identifier token.
|
|
|
|
ResponseTypeIDToken = "id_token"
|
2023-11-21 07:38:32 +00:00
|
|
|
|
|
|
|
// Constant indicating the "signup" screen hint for customizing authentication process and redirect to a signup page.
|
|
|
|
ScreenHintSignUp = "signup"
|
2022-10-09 14:18:13 +00:00
|
|
|
)
|