Skip to content

Commit

Permalink
fix github oauth client id and secret
Browse files Browse the repository at this point in the history
  • Loading branch information
amalshaji committed Mar 24, 2024
1 parent 0aa416f commit 04b9028
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions admin/src/portr_admin/apis/v1/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ async def github_login(request: Request):
redirect_uri = f"{settings.domain_address()}{GITHUB_CALLBACK_URL}?state={state}"

client = GithubOauth(
client_id=settings.github_app_client_id,
client_secret=settings.github_app_client_secret,
client_id=settings.github_client_id,
client_secret=settings.github_client_secret,
)

response = RedirectResponse(url=client.auth_url(state, redirect_uri))
Expand Down
4 changes: 2 additions & 2 deletions admin/src/portr_admin/services/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ class EmailFetchError(ServiceError):
@transactions.atomic()
async def get_or_create_user_from_github(code: str):
client = GithubOauth(
client_id=settings.github_app_client_id,
client_secret=settings.github_app_client_secret,
client_id=settings.github_client_id,
client_secret=settings.github_client_secret,
)
token = await client.get_access_token(code)
github_user = await client.get_user(token)
Expand Down

0 comments on commit 04b9028

Please sign in to comment.