I have a legacy web api that uses something like the below in a .net 4.5.2 web api:
OAuthBearerOptions = new OAuthBearerAuthenticationOptions();
app.UseOAuthBearerAuthentication(OAuthBearerOptions);
We are rebuilding the api in .net core 2.2 right now and I would like to reuse the same oauth token. The response from the old auth endpoint looks like:
{
"access_token":"",
"refresh_token":""
"token_type":"bearer",
"expires_in":12345,
"as:client_id":"client",
"userName":"email",
"userId":"12345",
"role":"role_id",
"permissions":[],
".issued":"",
".expires":""
}
In all my searching it looks like .net core is focused on JWTs opposed to the legacy style oauth tokens. Is it possible to configure .net core web apis to reuse the same shape of data that was in 4.5.2 web apis?