- GIT command line
- Supported IDE (ex: Visual Studio Code)
git clone https://github.com/EnsurityTechnologies/XSense-Angular-OIDC-Client.git
- Navigate to the folder
- Open the folder contents in any IDE (ex: Visual Studio Code)
-
Modify the values in
src\app\services\auth.service.ts\getClientSettings()
method -
The following values has to be changed as per the hosted web app.
-
The template data is as follows
authority: 'https://<<tenant>>.ensurityzts.com/', client_id: '<<Client ID>>', client_secret:'<<GUID>>', redirect_uri: 'https://<<application URL>>/auth-callback', post_logout_redirect_uri: 'https://<<application redirection URL>>/',
-
The sample data is as follows
client_id: 'angular_spa', client_secret:'fd543361-24ab-469d-ae85-34cb13685547', redirect_uri: 'https://xsense-demo-sp.azurewebsites.net/auth-callback', post_logout_redirect_uri: 'https://xsense-demo-sp.azurewebsites.net/',
- Navigate to
\src\app\app-routing.module.ts
- Update
Routes
variable with relevant paths
Host the application in any cloud or on-prem server
Make sure the configuration matches to configured OpenID client settings
- With SP OpenID client details configure the IdP
- Create users on XSense IdP
- Open the URL
- Click on “Login with XSense”
- Browser redirects to “XSense IdP”
- User performs the authentication with XSense
- Successful authentication navigates to SP Home page