In this Project I have identity server(Asp.net core) ,Web application(.net Framework 4.8) and api (Asp.net Core)
api in get access token from cookie in identity server
in this web application i am get access token using this method so get access token from cookie successful
var authResult = await HttpContext.GetOwinContext().Authentication.AuthenticateAsync("cookies");
var props = authResult.Properties.Dictionary;
props.TryGetValue("access_token", out var accessToken)
but this method not working in asp.net core api
this method to not get access token from cookies
there are three same cookie available in web and api
this is a cookie name below hear
.AspNetcookies idsrv.session idsrv
api in get access token from cookie
get solution in asp.net