oauth 2.0 - Access Protected Resource API gives “401 Unauthorized” error -


i want add authorization project based on tutorial. i've got part of retrieving access token working. when using token access protected resource api 401 unauthorized error.

the request has authorization header scheme bearer , containing access token. in tutorial api protected [authorize] attribute. during startup setup bearer authentication

useoauthbearerauthentication(new microsoft.owin.security.oauth.oauthbearerauthenticationoptions())

it not clear me why request unauthorized. can check find cause of problem?

after trying , checking many things, noticed authorization server , resource server using different version of owin , owin.security. after updating older one, worked. tokens must have changed between 2 versions.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -