Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have MVC web application that use roles in Authorization , Now i want to use SSO with other applications that may or may not use roles

What I have tried:

I try simple implementation for SSO
XML
<pre><machineKey validationKey="E4451576F51E0562D91A1748DF7AB3027FEF3C2CCAC46D
  756C833E1AF20C7BAEFFACF97C7081ADA4648918E0B56BF27D1699A6EB2D9B6967A562CAD14767F163"
              decryptionKey="6159C46C9E288028ED26F5A65CED7317A83CB3485DE8C592"
              validation="HMACSHA256" decryption="AES" />



XML
<authentication mode="Forms">
  <forms name="SingleSignOn"
  loginUrl="http://localhost/SSO/Account/Login"
  timeout="480" slidingExpiration="true">
    <credentials passwordFormat="SHA1">
      <user name="demo"
      password="89e495e7941cf9e40e6980d14a16bf023ccd4c91"/>
      <!--password = demo-->
    </credentials>
  </forms>
</authentication>
Posted
Updated 2-Feb-20 20:08pm
v3
Comments
Richard Deeming 3-Feb-20 11:34am    
NB: Don't store the user's credentials in the config file, and don't store them using SHA1.

SHA1 has been broken since 2005, and completely dead since 2016.

You should also choose more secure passwords, and don't store a plain-text copy of the password in the config file.

1 solution

Quote:
Now i want to use SSO with other applications that may or may not use roles


If the application doesn't use role based management system, SSO is useless, because anyone can access to the application. In other words, there's no matter what user and what role he has.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900