使用oauth客户端和IdentityServer4返回URL编码的问题

时间:2020-10-16 20:40:57

标签: angular oauth identityserver4

我在使用角度客户端和IdentityServer4时遇到了一个奇怪的问题。 我正在为angular客户使用angular-auth-oidc-client,为服务器使用ubuntu 16的apache2。

在调用oidcSecurityService.authorize()时,将以编码方式发送redirectUrl,并且IS4会以“格式错误的redirect_uri”错误作为响应。

请求: https://epmid.xxxxxxx.com/connect/authorize?client_id=e3m&redirect_uri=https%3A%2F%2Fe3m.xxxxxxx.com&response_type=code&scope=openid%20profile%20roles%20offline_access%20E3MApi&nonce=cff811f389293bc3bd905bfdc6c8614a02za6ShIX&state=a72e68d561a3777c10db97fc7898f754acYqmZJK1&code_challenge=qaXRF4swipqQn5ED7uJKAK_I0ErTOkx0Na7hvLaeFRY&code_challenge_method=S256

感谢您的帮助

1 个答案:

答案 0 :(得分:0)

重定向URL似乎被URLEncode两次了?