IDS Authentication Backend and Frontend Setup

backend

  1. register IDS
    1. enable toggle button
    2. add application name
    3. Select Skip Team Check if you want to allow external users to login without checking for the team through the Active Directory OAuth strategy.
    4. Select Skip Consent if you already have an active session with the IDS and want the app to skip showing the IDS consent page.

  1. save

(ids and idsutil services will be generated)

(use IDSAuthorisedAPIs middleware in your routes)

frontend

  1. in Environments set isIDSEnabled as true.
  2. import neutrinos-oauth-client
    1. npm i neutrinos-oauth-client
    2. use Use Dependancy node in onInit to import module.

( This is the onInit of the page where you’re planning to call the login() and logout() methods.)


(make sure injectable toggle is on)
4. now we can use neutrinos-oauth-client modules methods anywhere in the page

refer these documents

8 Likes

Good work @JeevanKumar

3 Likes

@JeevanKumar fantastic one

2 Likes

Great documentation @JeevanKumar . Easy to understand.

1 Like