How to configure UseJwtBearerAuthentication on multiple application to use same token for authentication?
See original GitHub issueI am following this example - http://capesean.co.za/blog/asp-net-5-jwt-tokens/.
Now I have App1 which is giving token through /Connect/Token/
endpoint (in App1). I will call this App1 endpoint and get token from App2 (i enabled CORS on App1). Now I want to use the same token to authenticate the call for Web API which is present in App2.
So basically I want to use Token (which I get from App1) in App2 Web Api through Authorize attribute. Please guide me on how to do that?
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
c# - Use multiple JWT Bearer Authentication
I can have multiple issuers and audiences, but I can't set several Authorities. ... AFAIK you may add any number of properties to...
Read more >SPA using token to call another API
So I configure my API like this: app.UseJwtBearerAuthentication( new ... method to get tokens to use for multiple APIs from our SPA.
Read more >Securing a Web API using multiple token servers
This article shows how a single secure Web API could be used together with multiple secure token servers. The API uses JWT Bearer...
Read more >JWT Validation and Authorization in ASP.NET Core
In this post, I'm going to cover the other end of token use on ASP.NET Core – how to validate JWT tokens and...
Read more >Supporting JWT and Cookie based Auth scheme in one . ...
In this tutorial, I am going to show how can we achieve both authentication in same webapi project. Let's start by making changes...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The
resource
parameter supports multiple endpoints, just separate them with spaces and you’ll get an access token targeting multiple audiences (= APIs)e.g
resource=http://app1.domain.com/ http://app2.domain.com/
Could you provide your whole startup? I’m stuck on this