Skip to content

Commit

Permalink
Merge pull request #183 from contember/pr/idp-support-different-flows
Browse files Browse the repository at this point in the history
Admin server: Support different OIDC response_types
  • Loading branch information
matej21 authored Feb 16, 2022
2 parents b297f0e + 34937c4 commit aaee54d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/admin/src/components/Login/LoginEntrypoint.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const LoginContainer = ({ identityProviders }: {

const hasOauthResponse = useMemo(() => {
const params = new URLSearchParams(window.location.search)
return params.has('state') && params.has('code') && params.has('scope')
return params.has('state') && (params.has('code') || params.has('id_token'))
}, [])

if (hasOauthResponse) {
Expand Down

0 comments on commit aaee54d

Please sign in to comment.