Forward fresh-login requirements to the authentication provider
All checks were successful
Build and Publish Container Image / build-and-push (push) Successful in 44s
All checks were successful
Build and Publish Container Image / build-and-push (push) Successful in 44s
Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a092fe-13b1-7f12-ac74-7d258af4d79c
This commit is contained in:
parent
139994cfac
commit
8d4336e944
7 changed files with 103 additions and 3 deletions
|
|
@ -8,6 +8,7 @@ import (
|
|||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
|
|
@ -54,6 +55,12 @@ func (a *AutheliaAdapter) AuthorizeURL(_ context.Context, req domain.AuthRequest
|
|||
q.Set("response_type", "code")
|
||||
q.Set("state", req.State)
|
||||
q.Set("scope", "openid profile email groups")
|
||||
if req.PromptLogin {
|
||||
q.Set("prompt", "login")
|
||||
}
|
||||
if req.MaxAge != nil {
|
||||
q.Set("max_age", strconv.FormatInt(int64(req.MaxAge.Seconds()), 10))
|
||||
}
|
||||
|
||||
return base + "?" + q.Encode(), nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue