bcgov / nr-forest-client

FSA Forest Client
Apache License 2.0
3 stars 1 forks source link

FSADT1-311: Enable forest client app login #46

Closed MCatherine1994 closed 1 year ago

MCatherine1994 commented 2 years ago

FSADT1-311 Enable forest client app login

SSO doc: https://github.com/bcgov/sso-keycloak/wiki/Using-Your-SSO-Client

Setup the idir and bceid login using the Common Hosted Single Sign-on (CSS) project supported by the pathfinder team:

  1. Apply for the integration through this link to get the required credentials
  2. Using the keycloak library to do the setup, for vue3 application, use vue-keycloak package, a vue3 vite example is here, more docs from old growth
  3. Add the pkceMethod: "S256" to the init option
  4. The keycloak library we use will add a $keycloak property to the global Vue instance, to logout, could just call $keycloak.logoutFn
paulushcgcj commented 1 year ago

Implemented using keycloak and now moving to FAM