Add support for auth.keyStore in application config

Signed-off-by: Marcus Eide <eide@spotify.com>
This commit is contained in:
Marcus Eide
2021-10-12 16:11:29 +02:00
parent 35b7a0bbd5
commit d8ea1edcdb
2 changed files with 27 additions and 0 deletions
+9
View File
@@ -292,6 +292,15 @@ scaffolder:
visibility: public # or or 'private'
auth:
### Add auth.keyStore.provider to more granularly control how to store JWK data when running
# the auth-backend.
#
# keyStore:
# provider: firestore
# firestore:
# projectId: my-project
# path: my-sessions
environment: development
### Providing an auth.session.secret will enable session support in the auth-backend
# session:
+18
View File
@@ -31,6 +31,24 @@ export interface Config {
secret?: string;
};
/** To control how to store JWK data in auth-backend */
keyStore?: {
provider?: 'postgres' | 'memory' | 'firestore';
firestore?: {
/** The Google Cloud Project ID */
projectId?: string;
/**
* Local file containing the Service Account credentials.
* You can omit this value to automatically read from
* GOOGLE_APPLICATION_CREDENTIALS env which is useful for local
* development.
*/
keyFilename?: string;
/** The path to use for the collection. Defaults to 'sessions' */
path?: string;
};
};
/**
* The available auth-provider options and attributes
*/