I need to pass some configuration settings to the identity provider. My identity provider supports sending these settings through acr_values.
How can I send parameters through acr_values in angular-oauth2-oidc?
You could try to use customQueryParams on AuthConfig and see if that works? For example:
export const authConfig: AuthConfig = {
issuer: 'https://steyer-identity-server.azurewebsites.net/identity',
clientId: 'spa-demo',
redirectUri: window.location.origin + '/index.html',
silentRefreshRedirectUri: window.location.origin + '/silent-refresh.html',
scope: 'openid profile email',
customQueryParams: {
acr_values: 'tenant:abc',
}
};
I'm not sure if this is what you're after, and if it is how you'd send multiple different values though.
Thank you very much @jeroenheijmans. I'll test that.
Most helpful comment
You could try to use
customQueryParamsonAuthConfigand see if that works? For example:I'm not sure if this is what you're after, and if it is how you'd send multiple different values though.