@remus.ivan well… that is indeed a problem for me, because even while I will implement also a Identity handling in my application, I will defintly need some oAuth2 to that external api which does require this.
I mean, its great, that there are so many packages (yours including) that allow me to do that oidc of the user in my own app, but I am lost on getting the oAuth2 flow established to the Authentication and token endpoint of that external api to get the token to interact with that api. I do have a shared secret and keystring aka api key from them, but I am searching for any package, that will allow me to do that flow with just providing those values in the hostbuilder, like with the:
global using Microsoft.AspNetCore.Authentication.OAuth;
and the
services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
.AddCookie()
.AddOAuth("ExternalApiName", options =>
{
but as this extension does neither has any sample documentation and only the api without sample code (where and how to call that challenge?) it seems to me as not usable