Skip to content

Authentication

Chelsea edited this page Nov 24, 2023 · 2 revisions

Home > Features > Authentication


Authentication Overview

The app includes an authentication layer for all endpoints but health check using by using the BCGov API Portal located at https://api.gov.bc.ca

Accounts will need to be generated on the portal by a user with API Provider permissions. This will generate a client id and secret for the payments API. This ID and Secret then must be used as the username/password in requests with Basic Auth.

An AuthGuard then makes a request to the API Portal using those credentials to retrieve a token if the account is valid. The AuthGuard is globally applied, except for instances defined by the @Public() decorator.

Authentication Flow

Clone this wiki locally