4

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

ravi punjwani
  • 496
  • 4
  • 12
  • It stated in the aspnetcore branch README that it's still under development and does not build yet. Did you simply grabbed the middleware part and use it in Idsrv4? – noriMonsta May 12 '17 at 14:39
  • 1
    any updates, or an other way to use SSO with Idsrv4? we're currently deciding whether to use Idsrv3 (because of SSO support) or a cloud service (Auth0) – Tomer Yoskovich Aug 16 '17 at 12:21

0 Answers0