Updated dependency version (and made appropriate changes) + added new @PATCH decorators for HTTP PATCH routes + dded generic @AuthenticatedRoute decorator
All checks were successful
Publish to Private NPM Registry / publish (push) Successful in 32s
All checks were successful
Publish to Private NPM Registry / publish (push) Successful in 32s
This commit is contained in:
parent
472e5256ec
commit
48f2e0dc02
8 changed files with 399 additions and 647 deletions
|
|
@ -11,9 +11,6 @@ import { Initializer } from '../Initializer.js';
|
|||
import { getValueFromEnvironmentVariable } from '../utils/env-vars.js';
|
||||
|
||||
import type { BridgemanAccessibleAppClaims } from './types/BridgemanAccessibleAppClaims.js';
|
||||
import type { AppSubscriptionTier } from './types/AppSubscriptionTier.js';
|
||||
import type { Addon } from './types/addons/Addon.js';
|
||||
import type { Webhook } from './types/Webhook.js';
|
||||
|
||||
interface BasicOAuthAppOptions {
|
||||
// ------------------
|
||||
|
|
@ -46,8 +43,8 @@ interface BasicOAuthAppOptions {
|
|||
// Optional Mechanical Details (how the OAuth app works)
|
||||
// -----------------------------------------------------
|
||||
|
||||
/** The type of vault to use for the keystore */
|
||||
vault_type?: "azure" | "hashicorp" | "file",
|
||||
/** The type of keystore to use for managing keys */
|
||||
keystoreType?: string,
|
||||
|
||||
/** The default method for authentication */
|
||||
auth_default_method?: "query" | "form_post" | "PAR",
|
||||
|
|
@ -140,7 +137,7 @@ export class OAuthApp<TCustomClaims extends BridgemanAccessibleAppClaims> extend
|
|||
* @param options.appName The name of the app
|
||||
* @param options.contacts The email addresses of the contacts for the app
|
||||
* @param options.scopes The scopes an app token COULD ask for (token scopes would have to ask for this or a subset of this list)
|
||||
* @param options.vault_type The type of vault to use for the keystore
|
||||
* @param options.keystoreType The type of keystore to use for managing keys
|
||||
* @param options.auth_default_method The default method for authentication
|
||||
* @param options.auth_default_use_JWT Whether to use JWT as the default authentication method
|
||||
* @param options.auth_default_response_mode The default response mode for authentication
|
||||
|
|
@ -216,7 +213,7 @@ export class OAuthApp<TCustomClaims extends BridgemanAccessibleAppClaims> extend
|
|||
logo_url: this.options.logo_url,
|
||||
tos_url: this.options.tos_url,
|
||||
policy_url: this.options.policy_url,
|
||||
vault_type: this.options.vault_type,
|
||||
keystoreType: this.options.keystoreType,
|
||||
auth_default_method: this.options.auth_default_method,
|
||||
auth_default_use_JWT: this.options.auth_default_use_JWT,
|
||||
auth_default_response_mode: this.options.auth_default_response_mode,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue