mirror of
https://github.com/sartography/spiffworkflow-backend.git
synced 2025-02-23 21:08:18 +00:00
pyl changes
This commit is contained in:
parent
a6112f7fb5
commit
201a6918a0
@ -148,7 +148,7 @@ def configure_sentry(app: flask.app.Flask) -> None:
|
||||
integrations=[
|
||||
FlaskIntegration(),
|
||||
],
|
||||
environment=app.config['ENV_IDENTIFIER'],
|
||||
environment=app.config["ENV_IDENTIFIER"],
|
||||
# Set traces_sample_rate to 1.0 to capture 100%
|
||||
# of transactions for performance monitoring.
|
||||
# We recommend adjusting this value in production.
|
||||
|
@ -68,7 +68,7 @@ def verify_token(token: Optional[str] = None) -> Dict[str, Optional[Union[str, i
|
||||
if user:
|
||||
refresh_token = AuthenticationService.get_refresh_token(user.id)
|
||||
if refresh_token:
|
||||
auth_token = (
|
||||
auth_token: dict = (
|
||||
AuthenticationService.get_auth_token_from_refresh_token(
|
||||
refresh_token
|
||||
)
|
||||
@ -77,7 +77,7 @@ def verify_token(token: Optional[str] = None) -> Dict[str, Optional[Union[str, i
|
||||
# redirect to original url, with auth_token?
|
||||
user_info = (
|
||||
AuthenticationService.get_user_info_from_open_id(
|
||||
auth_token['access_token']
|
||||
auth_token["access_token"]
|
||||
)
|
||||
)
|
||||
if not user_info:
|
||||
|
@ -239,7 +239,7 @@ class AuthenticationService:
|
||||
return refresh_token_object.token
|
||||
|
||||
@classmethod
|
||||
def get_auth_token_from_refresh_token(cls, refresh_token: str) -> str:
|
||||
def get_auth_token_from_refresh_token(cls, refresh_token: str) -> dict:
|
||||
"""Get a new auth_token from a refresh_token."""
|
||||
(
|
||||
open_id_server_url,
|
||||
|
Loading…
x
Reference in New Issue
Block a user