Add EnableSigninSession to app.

This commit is contained in:
Yang Luo
2021-12-28 17:13:45 +08:00
parent dfce1bd74c
commit 64d3b7e87f
11 changed files with 39 additions and 13 deletions

View File

@ -55,7 +55,7 @@ func (c *ApiController) HandleLoggedIn(application *object.Application, user *ob
code := object.GetOAuthCode(userId, clientId, responseType, redirectUri, scope, state, nonce)
resp = codeToResponse(code)
if application.HasPromptPage() {
if application.EnableSigninSession || application.HasPromptPage() {
// The prompt page needs the user to be signed in
c.SetSessionUsername(userId)
}