1

我知道您可以将自定义参数添加到授权调用中:

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

如何添加自定义请求标头?我正在使用 response_type: 'code'。这里没有提到这个https://www.npmjs.com/package/angular-auth-oidc-client 任何帮助表示赞赏。谢谢

4

1 回答 1

0

您可以在方法本身中为此请求添加自定义标头作为参数https://nice-hill-002425310.azurestaticapps.net/docs/documentation/public-api#authorizeconfigid-string-authoptions-authoptions并且您可以将它们配置为每次都在这里应用https://nice-hill-002425310.azurestaticapps.net/docs/documentation/configuration#customparamsauthrequest

于 2021-08-18T07:06:30.797 回答