KentorIT, SAML2, Okta, MVC Authentication - login issue

£可爱£侵袭症+ 提交于 2020-01-05 04:55:12

问题


I am a newbie, I have setup my MVC application that will use okta for Authentication, trying to achieve using KentorIT, when the user isn't logged-In it redirects to Okta, and but Okta sent the response back, I am getting null in loginInfo object always.

public async Task<ActionResult> ExternalLoginCallback(string returnUrl)
{
    var loginInfo = await AuthenticationManager.GetExternalLoginInfoAsync();
    if (loginInfo == null)
    {
        return RedirectToAction("Login");
    }

I have put my POC code at below Git Location,

https://github.com/psharepoint10/MVC-okta-KentorIT

I think I am doing some small mistake in configuration/settings.

Any help appreciated.

来源:https://stackoverflow.com/questions/44110144/kentorit-saml2-okta-mvc-authentication-login-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!