mirror of
https://github.com/dat515-2025/Group-8.git
synced 2026-03-22 23:20:56 +01:00
Compare commits
3 Commits
merge/fix_
...
396047574a
| Author | SHA1 | Date | |
|---|---|---|---|
| 396047574a | |||
| d926168ef9 | |||
| 41956b8e0c |
@@ -11,7 +11,7 @@ class MojeIDOAuth(CustomOpenID):
|
|||||||
super().__init__(
|
super().__init__(
|
||||||
client_id,
|
client_id,
|
||||||
client_secret,
|
client_secret,
|
||||||
"https://mojeid.regtest.nic.cz/.well-known/openid-configuration/",
|
"https://mojeid.cz/.well-known/openid-configuration/",
|
||||||
"MojeID",
|
"MojeID",
|
||||||
base_scopes=["openid", "email", "profile"],
|
base_scopes=["openid", "email", "profile"],
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ bearer_transport = BearerTransport(tokenUrl="auth/jwt/login")
|
|||||||
|
|
||||||
|
|
||||||
def get_jwt_strategy() -> JWTStrategy:
|
def get_jwt_strategy() -> JWTStrategy:
|
||||||
return JWTStrategy(secret=SECRET, lifetime_seconds=3600)
|
return JWTStrategy(secret=SECRET, lifetime_seconds=604800)
|
||||||
|
|
||||||
|
|
||||||
auth_backend = AuthenticationBackend(
|
auth_backend = AuthenticationBackend(
|
||||||
|
|||||||
Reference in New Issue
Block a user