-
Notifications
You must be signed in to change notification settings - Fork 551
Closed
Description
Describe the bug
AspNet.Security.OAuth.Apple
does not work with Microsoft.IdentityModel.Protocols.OpenIdConnect
version 6.18.0
.
The issue is in the newly introduced JWT header cty
. Apple does not accept JWT with this header. It results in this error:
System.Exception
OAuth token endpoint failure: Status: BadRequest;Headers: Server: Apple
Date: Wed, 01 Jun 2022 13:03:49 GMT
Connection: keep-alive
Cache-Control: no-store
Pragma: no-cache
;Body: {"error":"invalid_client"};
Steps To reproduce
- Add
AspNet.Security.OAuth.Apple=6.0.6
as dependency - Bind transitive dependency
Microsoft.IdentityModel.Protocols.OpenIdConnect
to the version6.18.0
- Add required configuration for apple login
- Trigger Apple login
- The exception above is produced
Expected behaviour
The login (Apple OAuth) succeed.
I.e. JWT header does not contain the cty
header.
Actual behaviour
JWT header contains the cty
header.
System information
- OS: Windows 10, Alpine
- Library Version 6.0.6
- .NET version 6.0.5