diff --git a/src/features/AuthStore/helpers.tsx b/src/features/AuthStore/helpers.tsx index 4edfec33..4f9b3037 100644 --- a/src/features/AuthStore/helpers.tsx +++ b/src/features/AuthStore/helpers.tsx @@ -5,6 +5,7 @@ import { client } from 'config/clients' import { AUTH_SERVICE } from 'config/routes' import { ClientIds, ClientNames } from 'config/clients/types' import { ENV, stageENV } from 'config/env' +import { metaData } from './metaData' export interface Settings extends UserManagerSettings { client_id: ClientIds, @@ -48,7 +49,7 @@ export const getClientSettings = (): Settings => ({ client_id: client.auth.clientId, filterProtocolClaims: false, loadUserInfo: false, - metadataUrl: `${AUTH_SERVICE}/.well-known/openid-configuration${client.auth.metaDataUrlParams || ''}`, + metadata: metaData, redirect_uri: redirectUrl(), response_mode: 'query', response_type: 'id_token token', diff --git a/src/features/AuthStore/metaData.tsx b/src/features/AuthStore/metaData.tsx new file mode 100644 index 00000000..d6725ff4 --- /dev/null +++ b/src/features/AuthStore/metaData.tsx @@ -0,0 +1,42 @@ +import type { OidcMetadata } from 'oidc-client' + +/* eslint-disable sort-keys */ +export const metaData: OidcMetadata = { + issuer: 'https://www.auth.test.insports.tv', + authorization_endpoint: 'https://www.auth.test.insports.tv/authorize', + // device_authorization_endpoint: null, + token_endpoint: 'https://www.auth.test.insports.tv/token', + userinfo_endpoint: 'https://www.auth.test.insports.tv/userinfo', + revocation_endpoint: 'https://www.auth.test.insports.tv/certs', + jwks_uri: 'https://www.auth.test.insports.tv/certs', + response_types_supported: ['id_token token', 'id_token'], + subject_types_supported: [], + id_token_signing_alg_values_supported: ['RS256'], + scopes_supported: ['openid', 'email', 'actions', 'meta'], + token_endpoint_auth_methods_supported: ['client_secret_post', 'client_secret_basic', 'none'], + claims_supported: ['email', 'iat', 'iss', 'name', 'sub'], + code_challenge_methods_supported: [], + grant_types_supported: ['refresh_token', 'password'], + end_session_endpoint: 'https://www.auth.test.insports.tv/logout', + token_endpoint_auth_signing_alg_values_supported: [], + check_session_iframe: '', + registration_endpoint: '', + acr_values_supported: [], + userinfo_signing_alg_values_supported: [], + userinfo_encryption_alg_values_supported: [], + userinfo_encryption_enc_values_supported: [], + id_token_encryption_alg_values_supported: [], + id_token_encryption_enc_values_supported: [], + request_object_signing_alg_values_supported: [], + display_values_supported: [], + claim_types_supported: [], + claims_parameter_supported: false, + service_documentation: '', + ui_locales_supported: [], + introspection_endpoint: '', + frontchannel_logout_supported: false, + frontchannel_logout_session_supported: false, + backchannel_logout_supported: false, + backchannel_logout_session_supported: false, + response_modes_supported: [], +}