Dotnetnuke (DNN) SAML Single Sign-On (SSO) Installation Guide

Step 1 : Install Dotnetnuke (DNN) SAML Single Sign-On (SSO) Module.

  • Login to DNN using the Admin Credentials
  • Go to Settings >> Extensions >> Install Extension
  • Upload the sso_1.0.0_Install.zip & Install the Module.

 

Step 2 : Add Module to a Page

  • Create a Page in DNN with view Permissions to All Users. Example https://dnndev.me/sso
  • Go to Edit Mode >> Add a Module >> Select SSO
  • Place the Module in Content Plane area.

 

Step 3 : Configure the Module.

  • On the page https://dnndev.me/sso
  • Go to Edit Mode >> SSO Module Settings >> Develop
  • Edit sso.ascx
  • Add Entity Id, Assertion Url, Saml End Point, X509Certificate of our Identity Provider.

 

Example :

var samlEndpoint = “https://dev-732416.okta.com/app/authdigitaldev732416_httpsempdevlasvegasnevadagov_1/exkfq9skbA3sECRkW356/sso/saml”;
var request = new AuthRequest( “https://empdev.lasvegasnevada.gov/”, “https://empdev.lasvegasnevada.gov/SSO” );

 

 

string samlCertificate = “—–BEGIN CERTIFICATE—–“+
“MIIDpDCCAoygAwIBAgIGAWnpbILoMA0GCSqGSIb3DQEBCwUAMIGSMQswCQYDVQQGEwJVUzETMBEG”+
“A1UECAwKQ2FsaWZvcm5pYTEWMBQGA1UEBwwNU2FuIEZyYW5jaXNjbzENMAsGA1UECgwET2t0YTEU”+
“MBIGA1UECwwLU1NPUHJvdmlkZXIxEzARBgNVBAMMCmRldi03MzI0MTYxHDAaBgkqhkiG9w0BCQEW”+
“DWluZm9Ab2t0YS5jb20wHhcNMTkwNDA0MTczNTM2WhcNMjkwNDA0MTczNjM2WjCBkjELMAkGA1UE”+
“BhMCVVMxEzARBgNVBAgMCkNhbGlmb3JuaWExFjAUBgNVBAcMDVNhbiBGcmFuY2lzY28xDTALBgNV”+
“BAoMBE9rdGExFDASBgNVBAsMC1NTT1Byb3ZpZGVyMRMwEQYDVQQDDApkZXYtNzMyNDE2MRwwGgYJ”+
“KoZIhvcNAQkBFg1pbmZvQG9rdGEuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA”+
“gXdvfrLb32muFyVHQ5J+Yi8lqzxaEbAbd2WznPVIWbcwG9WgtvlTLYi1RZnKjsTWtnHIKuVi7Adw”+
“NyhgPRz1pD9+hpX8qoY0aBH0UZpICcax+c7Cp6ShxOjffzkZpmg8vhEdX6iW2vLYOt4vakt2Cxs/”+
“0iffNqhcukeLzd4hzPdMa4RVSocBQj/DJYgZ1aGv3laVlt0Cw+p+GoKldq2AboSOt+KZ7A/H/wvw”+
“ASjHLQTmeAV89nQ2WK7XSiv3UpC/P/ahwGb2pBPWtf7AT08eFiLyeGiOqvEZzb4vqbTNH5KWYtlB”+
“ygcKaAG13YMr9rFO0E3/f09KaN4VpzfMB4toGwIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQAoHyPm”+
“/YVwQs2Xi9mLoiQJdtTQ8cNhkCHvLgzB5m9woovn5gqs5sXvCyl4tuzgVJp6gTJu/cAHY2eeHu6V”+
“nMC79+AIs86jR2FD81HgztwZfSCCnoN6XCsArBnZF0mzlRtrspWLLdunPqWIh1s5M8nUikJLtkel”+
“TYBXaQsVAgbGUOWWZP93bahVKAiD0YhYlQIVNm6JdEnfkVfubEB3fuh7LGtoUVVGNqR1MizKQYxV”+
“ho+r9TSjet/bGJEOlniVXuJW0Wdi4PiQGwQqcXmif6OSyaw06wh2hf/mg2Lz/BqB4zYI1unZOtOM”+
“4E31j0bqDoq4TSpLaN1A2lNKsvZ1lEhW”+
“—–END CERTIFICATE—–“;

 

Step 4 : Configure the Identity Provider.

  • Create a application.
  • Single sign on URL : https://empdev.lasvegasnevada.gov/sso
  • Audience URI (SP Entity ID): https://empdev.lasvegasnevada.gov/
  • Create & Add user to the Application.

 

Step 5 : Create User in DNN.

  • In DNN Admin Panel Go to Manage >> User >> Add Users
  • Create a User in DNN.

 

Step 6 : Test the Module.

  • Logout and go to the page https://dnndev.me/sso
  • It will redirect you to your Identity Provider
  • Enter your credentials & you will be logged in.