Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Something broken when using with dotnet cli? #84

Closed
Gillardo opened this issue Apr 11, 2016 · 2 comments
Closed

Something broken when using with dotnet cli? #84

Gillardo opened this issue Apr 11, 2016 · 2 comments

Comments

@Gillardo
Copy link

Like everyone i have now changed to use the dotnet cli and changed my target frameworks from dnx451 to net451. Since doing this, restoring the latest packages etc, openiddict no longer works.

If i use postman and connect to http://localhost:5000/connect/token with a username and password, this returns an access_token. Now if i use that access token, i always get a 401 error?

Apart from the url changing to localhost:5000 (which i have updated in my Applications table), nothing else apart from the version has changed.

Upon debugging it seems that the access_token that i am passing it never generates a valid identity on a request? The IsAuthenticated property is always false and even the username is null.

@kevinchalet
Copy link
Member

It's not caused by CLI, but by a bug in IdentityModel.

More context:
capesean/openiddict-test#8
aspnet-contrib/AspNet.Security.OpenIdConnect.Server#232
AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet#360

The bug was fixed recently by the AzureAD team, but the updated package is not on the aspnetcidev feed we use. I hope it will be fixed soon by the ASP.NET team.

@kevinchalet
Copy link
Member

The aspnet-contrib feed is now mirroring the Azure AD feed and ASOS was just updated to use the latest IdentityModel packages: aspnet-contrib/AspNet.Security.OpenIdConnect.Server@e3a8781.

The JWT issue you're seeing should disappear when updating your packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants