import { hostname } from 'os' ; import { ConfigParser } from '@fc/config' ; TODO see https import { ServiceProviderAdapterEnvConfig } from '@fc/service-provider-adapter-env' ; const env = new ConfigParser ( process . env , 'ServiceProviderAdapterEnv' ) ; export default { active : true , name : hostname ( ) , redirect_uris : env . json ( 'REDIRECT_URIS' ) , post_logout_redirect_uris : env . json ( 'POST_LOGOUT_REDIRECT_URIS' ) , client_secret : env . string ( 'CLIENT_SECRET' ) , client_id : env . string ( 'CLIENT_ID' ) , scope : env . string ( 'SCOPE' ) , id_token_signed_response_alg : env . string ( 'ID_TOKEN_SIGNED_RESPONSE_ALG' ) , id_token_encrypted_response_alg : env . string ( 'ID_TOKEN_ENCRYPTED_RESPONSE_ALG' ) , id_token_encrypted_response_enc : env . string ( 'ID_TOKEN_ENCRYPTED_RESPONSE_ENC' ) , userinfo_signed_response_alg : env . string ( 'USERINFO_SIGNED_RESPONSE_ALG' ) , userinfo_encrypted_response_alg : env . string ( 'USERINFO_ENCRYPTED_RESPONSE_ALG' ) , userinfo_encrypted_response_enc : env . string ( 'USERINFO_ENCRYPTED_RESPONSE_ENC' ) , jwks_uri : env . string ( 'JWKS_URI' ) , } as ServiceProviderAdapterEnvConfig ;