fix: use OAuthScope.offlineAccess instead of Scope.offlineAccess for logto SDK compatibility
Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/2982bcbd-abe6-474a-94ff-e7c6aabe4890 Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
@@ -17,7 +17,8 @@ from typing import Optional
|
||||
|
||||
from fastapi import Request, Response
|
||||
from jose import JWTError, jwt
|
||||
from logto import IdTokenClaims, LogtoClient, LogtoConfig, PersistKey, Scope, Storage, UserInfoScope
|
||||
from logto import IdTokenClaims, LogtoClient, LogtoConfig, PersistKey, Storage, UserInfoScope
|
||||
from logto.models.oidc import OAuthScope
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
from app.core.config import get_settings
|
||||
@@ -125,7 +126,7 @@ def make_logto_client(storage: CookieStorage) -> LogtoClient:
|
||||
scopes=[
|
||||
UserInfoScope.email,
|
||||
UserInfoScope.profile,
|
||||
Scope.offlineAccess,
|
||||
OAuthScope.offlineAccess,
|
||||
],
|
||||
),
|
||||
storage=storage,
|
||||
|
||||
Reference in New Issue
Block a user