|
|
|
|
@ -1,13 +1,15 @@ |
|
|
|
|
import type { UserManagerSettings } from 'oidc-client' |
|
|
|
|
import { WebStorageStateStore } from 'oidc-client' |
|
|
|
|
|
|
|
|
|
export const AUTH_PROVIDER_URL = 'https://auth.instat.tv' |
|
|
|
|
|
|
|
|
|
export const getClientSettings = (): UserManagerSettings => ({ |
|
|
|
|
authority: 'https://auth.instat.tv/', |
|
|
|
|
authority: AUTH_PROVIDER_URL, |
|
|
|
|
automaticSilentRenew: true, |
|
|
|
|
client_id: 'ott-web', |
|
|
|
|
filterProtocolClaims: false, |
|
|
|
|
loadUserInfo: false, |
|
|
|
|
metadataUrl: 'https://auth.instat.tv/.well-known/openid-configuration', |
|
|
|
|
metadataUrl: `${AUTH_PROVIDER_URL}/.well-known/openid-configuration`, |
|
|
|
|
redirect_uri: `${window.origin}/redirect`, |
|
|
|
|
response_mode: 'query', |
|
|
|
|
response_type: 'id_token token', |
|
|
|
|
|