I have this environment file in angular :
export const environment = {
production: false,
apiVersion: ‘v1’,
apiBaseUrl: ‘http://localhost:8080/api’,
Access_Control_Allow_Origin: ‘http://sn1u1-i-oasis-back:8080’,
oidc: {
authority: ”,
redirectUrl: window.location.origin,
postLogoutRedirectUri: window.location.origin,
clientId: ”,
scope: ‘openid profile email offline_access’,
responseType: ‘code’,
silentRenew: false,
useRefreshToken: true,
renewTimeBeforeTokenExpiresInSeconds: 30,
logLevel: LogLevel.Debug,
secureRoutes: [‘/api/’],
autoUserInfo: false,
},
};
i want to set the authority and client_id values using http request please, thanks.
i don’t know how to achieve this in angular, i saw examples using services but didn’t work for me
amin hlel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.