Skip to content

Commit

Permalink
Make values in doppler work
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikhorluck committed Mar 13, 2024
1 parent c5dbae8 commit 60ab46e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/authentication/auth0.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@


def auth0_client():
issuer: str = settings.AUTH0_ISSUER
issuer: str = settings.AUTH0_ISSUER.removeprefix("https://")

get_token = GetToken(
issuer.removeprefix("https://"),
issuer,
settings.AUTH0_CLIENT_ID,
client_secret=settings.AUTH0_CLIENT_SECRET,
)
token = get_token.client_credentials(f"{settings.AUTH0_MGMT_TENANT}/api/v2/")
token = get_token.client_credentials(settings.AUTH0_MGMT_TENANT)
mgmt_api_token = token["access_token"]

return Auth0(issuer.removeprefix("https://"), mgmt_api_token)
return Auth0(issuer, mgmt_api_token)

0 comments on commit 60ab46e

Please sign in to comment.