1

I know you can add custom parameters to the authorize call as:

const parameters: any = { resource: "ABCD" };
this.oidcSecurity.setCustomRequestParameters(parameters);

How to add custom request headers? I am using response_type: 'code'. Nothing about this mentioned here https://www.npmjs.com/package/angular-auth-oidc-client Any help is appreciated. Thanks

Amel Jose
  • 873
  • 2
  • 9
  • 22
  • Note that this example code above may be outdated now. You set it in the [config](https://nice-hill-002425310.azurestaticapps.net/docs/documentation/custom-parameters) – Zze Jan 10 '22 at 00:15

1 Answers1

0

you can add custom header for this request in the method itself as a parameter https://nice-hill-002425310.azurestaticapps.net/docs/documentation/public-api#authorizeconfigid-string-authoptions-authoptions and you can configure them to be applied every time here https://nice-hill-002425310.azurestaticapps.net/docs/documentation/configuration#customparamsauthrequest

FabianGosebrink
  • 305
  • 2
  • 12