-
-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: add screen_hint param in /authorize api for explicit signup redirection #420
Feat: add screen_hint param in /authorize api for explicit signup redirection #420
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is missing change in signup page which should also include social media buttons
server/handlers/authorize.go
Outdated
if err := memorystore.Provider.SetState(state, nonce); err != nil { | ||
log.Debug("Error setting temp code", err) | ||
} | ||
} | ||
|
||
loginURL := "/app?" + loginState | ||
authURL := "/app?" + authState |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea is to not put ?
& #
in authURL use it or declare another variable which just holds path /app
or /app/signup
and use that variable in line 140, 144, 146
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the changes and added social media buttons on signup page
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a minor suggestion overall looks good
server/constants/oauth2.go
Outdated
@@ -16,4 +16,7 @@ const ( | |||
ResponseTypeToken = "token" | |||
// For the Implicit grant of id_token, use response_type=id_token to include an identifier token. | |||
ResponseTypeIDToken = "id_token" | |||
|
|||
// Constant indicating the "signup" screen hint for customizing authentication process and redirect to a signup page. | |||
ScreenHint = "signup" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets rename this const to ScreenHintSignUp
If there is something else available for screen hint then also we can accomodate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes True,
Updated!
What does this PR do?
Enable signup redirection via screen_hint param in /authorize API
Which issue(s) does this PR fix?
If this PR affects any API reference documentation, please share the updated endpoint references
authorizerdev/docs#50