feat: support for the prompt parameter in the oidc flow (#948)

This commit is contained in:
Stavros
2026-06-20 00:04:41 +03:00
committed by GitHub
parent 6ccc894570
commit 7f18b45e21
6 changed files with 131 additions and 29 deletions
+2
View File
@@ -25,6 +25,7 @@ const (
type UserContext struct {
Authenticated bool
Provider ProviderType
AuthTime int64
Local *LocalContext
OAuth *OAuthContext
LDAP *LDAPContext
@@ -110,6 +111,7 @@ func (c *UserContext) NewFromGin(ginctx *gin.Context) (*UserContext, error) {
func (c *UserContext) NewFromSession(session *repository.Session) (*UserContext, error) {
*c = UserContext{
Authenticated: !session.TotpPending,
AuthTime: session.CreatedAt,
}
switch session.Provider {