Name: SSO-ID3
Owner: 3Pillar Global Open Source
Description: Simple example demonstrating identity server capabilities for SSO and token based authentication and authorization
Created: 2015-12-09 07:32:04.0
Updated: 2016-07-18 10:03:46.0
Pushed: 2016-01-06 07:09:51.0
Homepage:
null
Size: 434
Language: C#
GitHub Committers
User | Most Recent Commit | # Commits |
Other Committers
User | Email | Most Recent Commit | # Commits |
README
SSO with Identity Server3
Simple example demonstrating identity server capabilities for SSO and token based authentication and authorization
Setup
Database setup
- Create a database with name ?idsvr3?
- Run the script available at https://github.com/3pillarlabs/SSO-ID3/blob/master/sql/Create_db.sql
IIS Setup
Identity Server 3
- Clone the repository
- Create a X509Certificate2 with name idsrv3test
- Configure ?Default Web Site? on SSL. Refer https://technet.microsoft.com/en-us/library/cc732230(v=ws.10).aspx
- Keep the certificate in following certificate store
- Current User
- Personal
- Trusted Root Certification Authority
- Local Computer
- Personal
- Trusted Root Certification Authority
- Extract the certificate into idsrv3test.pfx file. Keep the password idsrv3test
- Copy the certificate to https://github.com/3pillarlabs/SSO-ID3/blob/master/IdentityServer3/Host/Configuration/idsrv3test.pfx
- Create a new Web Application ?idsvr3? under ?Default Web Site? and point it to
https://github.com/3pillarlabs/SSO-ID3/tree/master/IdentityServer3/Host
Make sure all the configuration entries web.config for "host" are correctly setup as per the local settings.
- Access https://localhost/idsvr3/Admin or https://machine-name/idsvr3/Admin
- Configure clients on IdentityServer3
- Now under ?cli? project, make sure app.config entries are all correctly setup as per your local settings. Also local.json entries to be updated for RedirectUris
- Build the cli project. Browse to its build folder.
- Configure IdentityServer database with clients and scopes by running following command from command promt
- IdSvr3EfCli.exe -c IdSvr3Config -f local.json
WebClient
- Create a new Web Application ?WebClient? under ?Default Web Site? and point it to
https://github.com/3pillarlabs/SSO-ID3/tree/master/WebClient/WebClient
- SSL is already setup of ?Default Web Site?
- Make sure to setup the web.config settings appropriately
WebApi
- Create a new Web Application ?WebApi? under ?Default Web Site? and point it to
https://github.com/3pillarlabs/SSO-ID3/tree/master/WebClient/WebApi
- SSL is already setup of ?Default Web Site?
- Make sure to setup the web.config settings appropriately
Environment
- SQL Server 2008 R2
- IIS 7.5
- MS Visual Studio 2013
Run the application
Identity Server 3
- Access the ID3 https:///idsvr3/admin
- Login with username=admin and password=India@123
- Create 2 different roles
- ExternalUsers
- InternalUsers
- Create 2 different Users
- ExternalSiteUser
- Assign role to ExternalUsers
- InternalSiteUser
- Assign role to InternalUsers
c. Run WebClient and WebApi and browse different section with ExternalSiteUser and InternalSiteUser
About this project
SSO-ID3 is developed and maintained by 3Pillar Global.