Skip to content

Commit

Permalink
Merge pull request #34 from torbenraab/v0.22-oidc
Browse files Browse the repository at this point in the history
Fix Response Type and Provider ID Error
  • Loading branch information
torbenraab committed Sep 11, 2024
2 parents e461af2 + 85043f9 commit ca64565
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apiserver/plane/authentication/provider/oauth/oidc.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def __init__(self, request, code=None, state=None, callback=None):
"redirect_uri": redirect_uri,
"scope": self.scope,
"state": state,
"response_type": "code id_token"
}
auth_url = (
f"{OIDC_URL_AUTHORIZATION}?{urlencode(url_params)}"
Expand Down Expand Up @@ -130,7 +131,7 @@ def set_user_data(self):
{
"email": email,
"user": {
"provider_id": user_info_response.get("id"),
"provider_id": user_info_response.get("sub"),
"email": email,
"avatar": user_info_response.get("avatar_url", ""),
"first_name": user_info_response.get("name", ""),
Expand Down

0 comments on commit ca64565

Please sign in to comment.