Compare commits
No commits in common. "940_assign_teams_via_authentik" and "main" have entirely different histories.
940_assign
...
main
2 changed files with 2 additions and 4 deletions
|
@ -14,7 +14,6 @@ export const redirectToProvider = (provider: IProvider, redirectUrl = '') => {
|
||||||
|
|
||||||
const state = createRandomID(24)
|
const state = createRandomID(24)
|
||||||
localStorage.setItem('state', state)
|
localStorage.setItem('state', state)
|
||||||
let scope = 'openid email profile'
|
|
||||||
if (provider.scope !== null) scope = provider.scope
|
window.location.href = `${provider.authUrl}?client_id=${provider.clientId}&redirect_uri=${redirectUrl}${provider.key}&response_type=code&scope=openid email profile&state=${state}`
|
||||||
window.location.href = `${provider.authUrl}?client_id=${provider.clientId}&redirect_uri=${redirectUrl}${provider.key}&response_type=code&scope=openid email profile${scope}&state=${state}`
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,5 +3,4 @@ export interface IProvider {
|
||||||
key: string;
|
key: string;
|
||||||
authUrl: string;
|
authUrl: string;
|
||||||
clientId: string;
|
clientId: string;
|
||||||
scope: string;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue