A hosting service for Identity Server 4
- a central OAuth2 authorization server for internal services communications
- an OIDC intermediate provider for BC Services Card Auth code flow + PKCE
- can use redis or sqlite as the cache and operational store
- Supports a predefined test users list which can be used as part of load testing or automated testing
API Env vars:
APP_NAME=oauth-server
ASPNETCORE_ENVIRONMENT=development
IDENTITYSERVER_REDIS_KEY_PREFIX=
IDENTITYSERVER_REDIS_OPERATIONALSTORE=false
IDENTITYSERVER_REDIS_CACHE=false
IDENTITYSERVER_CONFIG_FILE=./Data/config.json
IDENTITYSERVER_TESTUSERS_FILE=./Data/test_users.json
API secret env vars:
REDIS_CONNECTIONSTRING=<optional redis connection string>
identityProviders__bcsc__clientId=<BCSC client id>
identityProviders__bcsc__clientSecret=<BCSC client secret>
identityProviders__bcsc__metadataAddress=<BCSC well known oidc metadata endpoint url>
SPLUNK_URL=<optional Splunk collector url>
SPLUNK_TOKEN=<optional Splunk token>
ConnectionStrings__DefaultConnection=Data Source=./Data/IdentityServer.db;
- set the above env vars in the API project's secrets.json file
- change all configuration variables in registrants, responders portals, and ESS backend that references
https://era-oauth-dev.apps.silver.devops.gov.bc.ca
tohttps://localhost:8020
- ensure
oauth-server\src\API\OAuthServer\Data\config.json
has the matching client ids and secrets - in
oauth-server/src/api/OAuthServer
, rundotnet watch
- run the portals and backend service