Use encrypted cookie sessions
This commit is contained in:
parent
a7b0352d3c
commit
d84a885fdb
9 changed files with 131 additions and 27 deletions
|
|
@ -481,7 +481,9 @@ def _auth_payload(
|
|||
settings: Settings,
|
||||
) -> dict[str, object]:
|
||||
oauth_configured = bool(
|
||||
settings.forgejo_oauth_client_id and settings.forgejo_oauth_client_secret
|
||||
settings.auth_secret_key
|
||||
and settings.forgejo_oauth_client_id
|
||||
and settings.forgejo_oauth_client_secret
|
||||
)
|
||||
if not user:
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue