1

So, I went through the answer/comment on this post and made an exactly similar project in ASP.NET core. But my Problem is that I have seperate resource server project under the same src folder. and although the [Authorize("Bearer")] attribute works for the controller methods in the authorize server project it does not work in the resource server project.

The code would be the same as mentioned on the link above but if required, I could post.

1
  • Indeed please post your code. That will help when the link ever goes down. Commented Feb 26, 2016 at 8:09

1 Answer 1

3

If anyone would like to know how I solved this issue can read further.

The two projects would generate different private keys, so the Resource server would reject the token/public key generated by the Authorize Server.

To solve this issue I would basically store the private key generated by the Auth Server in a common place(file) and access that key in the Resource Server. So the same key is accessed by both the servers for authorization.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.