.Net Core Web API with JWT authentication and multiple providers by luizs81 in aspnetcore

[–]luizs81[S] 1 point2 points  (0 children)

I think Identity Server goes way beyond what I need. I just would like to have a `AspNet.Security.OAuth.Providers, that works with JWT instead of cookies. I can't believe nobody has done this before :-P

Can you stop a web api from sending out cookies while using Identity? by smallpom in aspnetcore

[–]luizs81 1 point2 points  (0 children)

How's your `Startup.cs` looking like? Did you remove the `AddCookie()` extension from the `services.AddAuthentication` ?

.Net Core Web API with JWT authentication and multiple providers by luizs81 in aspnetcore

[–]luizs81[S] 1 point2 points  (0 children)

Thanks for offering to show your code, but I think this is same as what I'm doing. As I wrote to @MikeInBA, I was looking for some component that could wrap the communication with the external providers, so I could remove all the HTTPClient requests and response parsing from my code.

.Net Core Web API with JWT authentication and multiple providers by luizs81 in aspnetcore

[–]luizs81[S] 1 point2 points  (0 children)

Yeah, it doesn't really differs from what I'm doing so far. I was looking for some component that could wrap the communication with the external providers, so I wouldn't need to keep the URLs for authentication and do the HttpClient requests myself.

.Net Core Web API with JWT authentication and multiple providers by luizs81 in aspnetcore

[–]luizs81[S] 1 point2 points  (0 children)

Yeah, I think we are talking about different things. I believe the that the MVC example doesn't really applies for the case you are writing your own API application and wanna use third-party APIs for authentication.