I want to use IdentiyServer4 and add KentorAuthServices middleware for SAML authentication.
From the IdentityServer4 documentation it suggests to add Microsoft.AspNetCore.Authentication.Cookies
package and use the middleware with SignIn type as IdentityServerConstants.ExternalCookieAuthenticationScheme
.
I configured the same but couldn't get the access_token in variable info
.
public async Task<IActionResult> ExternalLoginCallback(string returnUrl = null, string remoteError = null)
{
if (remoteError != null)
{
ModelState.AddModelError(string.Empty, $"Error from external provider: {remoteError}");
return View("~/Home/Index");
}
var info = await _signInManager.GetExternalLoginInfoAsync();
}
Here I get zero entries in info.AuthenticationTokens
property. Did I need some customizations in Kentor.AuthServices (aspnetcorebranch) to support access tokens or need something to configure in identityserver4