Starting with 1st of August 2023, new linkedin applications only have the following product:
Sign In with LinkedIn using OpenID Connect
This product is not supported by AspNet.Security.OAuth.LinkedIn, as it uses different set of scopes, and the scopes requested by the current version of the package (r_liteprofile, r_emailaddress) are not supported.
In order to make it work, I had to overwrite the scopes and to implement the CreateTicketAsync method to use the new endpoint:
Starting with 1st of August 2023, new linkedin applications only have the following product: Sign In with LinkedIn using OpenID Connect
This product is not supported by AspNet.Security.OAuth.LinkedIn, as it uses different set of scopes, and the scopes requested by the current version of the package (r_liteprofile, r_emailaddress) are not supported.
In order to make it work, I had to overwrite the scopes and to implement the CreateTicketAsync method to use the new endpoint:
Here is the ApplicationLinkedInAuthenticationHandler class