[keycloak-user] Help

Biradar, Mallikarjuna (HYD) Mallikarjuna.Biradar_HCL at kantar.com
Thu Oct 25 02:21:19 EDT 2018


Hi Team,

I have implemented cookie based Keycloak Authentication in my Asp.net MVC with C# & Jquery application. It's WORKING FINE in LOCAL when run from Visual Studio but not working when DEPLOYED to Web Server Hosted environment.
1.Accessing the Web Sever domain hosted Url, I am able to get KeyCloak Login screen as shown below.
[cid:image001.png at 01D46C4D.60B3BA60]
2.Enter Username & Password that are configured for a user in Keycloak server and click on 'Access'.
   Authentication is successful but I get error as shown in below screenshot instead of redirecting to View/Page or Action method  in Controller class that has been set attribute [Authorize] and same Action method is set
   as default in Gloabal.asx.cs fle.
    [cid:image002.png at 01D46C4D.E69C1FA0]
Please help me to resolve this issue.

My implementation:

1.       startup.cs code
                [cid:image003.png at 01D46C4E.13D63000]


2.       Global.asax.cs code:

[cid:image004.png at 01D46C4E.613F6320]



3.       Controller class - Action method

[cid:image005.png at 01D46C4E.613F6320]

Regards,
Mallikarjun Biradar


Kantar Disclaimer<http://www.kantar.com/disclaimer.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 16586 bytes
Desc: image001.png
Url : http://lists.jboss.org/pipermail/keycloak-user/attachments/20181025/81cb88fb/attachment-0005.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 16753 bytes
Desc: image002.png
Url : http://lists.jboss.org/pipermail/keycloak-user/attachments/20181025/81cb88fb/attachment-0006.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 53547 bytes
Desc: image003.png
Url : http://lists.jboss.org/pipermail/keycloak-user/attachments/20181025/81cb88fb/attachment-0007.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 17805 bytes
Desc: image004.png
Url : http://lists.jboss.org/pipermail/keycloak-user/attachments/20181025/81cb88fb/attachment-0008.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.png
Type: image/png
Size: 43766 bytes
Desc: image005.png
Url : http://lists.jboss.org/pipermail/keycloak-user/attachments/20181025/81cb88fb/attachment-0009.png 


More information about the keycloak-user mailing list