@dereekb/dbx-firebase 13.7.0 → 13.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/dereekb-dbx-firebase-oidc.mjs +198 -171
- package/fesm2022/dereekb-dbx-firebase-oidc.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-firebase.mjs +802 -657
- package/fesm2022/dereekb-dbx-firebase.mjs.map +1 -1
- package/package.json +16 -16
- package/types/dereekb-dbx-firebase-oidc.d.ts +55 -56
- package/types/dereekb-dbx-firebase.d.ts +234 -41
|
@@ -9,7 +9,7 @@ import { DbxFirebaseAuthService, AbstractDbxFirebaseDocumentStore, firebaseDocum
|
|
|
9
9
|
import { HttpClient } from '@angular/common/http';
|
|
10
10
|
import { first, switchMap, of, map, BehaviorSubject, tap } from 'rxjs';
|
|
11
11
|
import * as i1 from '@dereekb/dbx-form';
|
|
12
|
-
import {
|
|
12
|
+
import { dbxForgeValueSelectionField, dbxForgeTextField, dbxForgeSearchableStringChipField, isWebsiteUrlValidator, dbxForgeGroup, dbxForgePickableChipField, pickableValueFieldValuesConfigForStaticLabeledValues, AbstractConfigAsyncForgeFormDirective, DbxForgeFormComponentImportsModule, dbxForgeFormComponentProviders, DBX_FORGE_FORM_COMPONENT_TEMPLATE, DbxActionFormDirective, DbxFormSourceDirective, DbxFormValueChangeDirective } from '@dereekb/dbx-form';
|
|
13
13
|
import { ALL_OIDC_TOKEN_ENDPOINT_AUTH_METHOD_OPTIONS, PRIVATE_KEY_JWT_TOKEN_ENDPOINT_AUTH_METHOD, OIDC_ENTRY_CLIENT_TYPE, OidcModelFunctions, OidcModelFirestoreCollections } from '@dereekb/firebase';
|
|
14
14
|
import { CommonModule } from '@angular/common';
|
|
15
15
|
|
|
@@ -35,8 +35,8 @@ class DbxFirebaseOAuthLoginViewComponent {
|
|
|
35
35
|
return typeof error === 'string' ? readableError('ERROR', error) : error;
|
|
36
36
|
}, ...(ngDevMode ? [{ debugName: "resolvedError" }] : /* istanbul ignore next */ []));
|
|
37
37
|
retryClick = output();
|
|
38
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
39
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
38
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOAuthLoginViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
39
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: DbxFirebaseOAuthLoginViewComponent, isStandalone: true, selector: "dbx-firebase-oauth-login-view", inputs: { loginStateCase: { classPropertyName: "loginStateCase", publicName: "loginStateCase", isSignal: true, isRequired: true, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { retryClick: "retryClick" }, host: { classAttribute: "d-block dbx-firebase-oauth-login-view" }, ngImport: i0, template: `
|
|
40
40
|
<div class="dbx-firebase-oauth-login-view">
|
|
41
41
|
@switch (loginStateCase()) {
|
|
42
42
|
@case ('no_user') {
|
|
@@ -56,7 +56,7 @@ class DbxFirebaseOAuthLoginViewComponent {
|
|
|
56
56
|
</div>
|
|
57
57
|
`, isInline: true, dependencies: [{ kind: "component", type: DbxBasicLoadingComponent, selector: "dbx-basic-loading", inputs: ["diameter", "mode", "color", "text", "linear", "show", "loading", "error"] }, { kind: "component", type: DbxErrorComponent, selector: "dbx-error", inputs: ["error", "iconOnly"], outputs: ["popoverOpened"] }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customButtonColor", "customTextColor", "customSpinnerColor", "basic", "tonal", "raised", "stroked", "flat", "iconOnly", "fab", "customContent", "allowClickPropagation", "mode"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
58
58
|
}
|
|
59
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
59
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOAuthLoginViewComponent, decorators: [{
|
|
60
60
|
type: Component,
|
|
61
61
|
args: [{
|
|
62
62
|
selector: 'dbx-firebase-oauth-login-view',
|
|
@@ -129,8 +129,8 @@ class DbxFirebaseOAuthConsentViewComponent {
|
|
|
129
129
|
};
|
|
130
130
|
return { ...this.scopeInjectionConfig(), data };
|
|
131
131
|
}, ...(ngDevMode ? [{ debugName: "resolvedScopeInjectionConfig" }] : /* istanbul ignore next */ []));
|
|
132
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
133
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
132
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOAuthConsentViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
133
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: DbxFirebaseOAuthConsentViewComponent, isStandalone: true, selector: "dbx-firebase-oauth-consent-view", inputs: { details: { classPropertyName: "details", publicName: "details", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, scopeInjectionConfig: { classPropertyName: "scopeInjectionConfig", publicName: "scopeInjectionConfig", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { approveClick: "approveClick", denyClick: "denyClick" }, host: { classAttribute: "d-block dbx-firebase-oauth-consent-view" }, ngImport: i0, template: `
|
|
134
134
|
<div class="dbx-firebase-oauth-consent-view">
|
|
135
135
|
@if (loading()) {
|
|
136
136
|
<dbx-loading [loading]="true" text="Processing..."></dbx-loading>
|
|
@@ -161,7 +161,7 @@ class DbxFirebaseOAuthConsentViewComponent {
|
|
|
161
161
|
</div>
|
|
162
162
|
`, isInline: true, styles: [".dbx-firebase-oauth-consent-view .dbx-firebase-oauth-consent-header-info{align-items:center;gap:12px}\n"], dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }, { kind: "component", type: DbxAvatarComponent, selector: "dbx-avatar", inputs: ["context", "avatarSelector", "avatarUid", "avatarUrl", "avatarKey", "avatarIcon", "avatarStyle", "avatarSize", "avatarHideOnError"] }, { kind: "component", type: DbxLoadingComponent, selector: "dbx-loading", inputs: ["padding", "show", "text", "mode", "color", "diameter", "linear", "loading", "error", "context"] }, { kind: "component", type: DbxErrorComponent, selector: "dbx-error", inputs: ["error", "iconOnly"], outputs: ["popoverOpened"] }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customButtonColor", "customTextColor", "customSpinnerColor", "basic", "tonal", "raised", "stroked", "flat", "iconOnly", "fab", "customContent", "allowClickPropagation", "mode"] }, { kind: "directive", type: DbxButtonSpacerDirective, selector: "dbx-button-spacer,[dbxButtonSpacer]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
163
163
|
}
|
|
164
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
164
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOAuthConsentViewComponent, decorators: [{
|
|
165
165
|
type: Component,
|
|
166
166
|
args: [{ selector: 'dbx-firebase-oauth-consent-view', standalone: true, imports: [DbxInjectionComponent, DbxAvatarComponent, DbxLoadingComponent, DbxErrorComponent, DbxButtonComponent, DbxButtonSpacerDirective], template: `
|
|
167
167
|
<div class="dbx-firebase-oauth-consent-view">
|
|
@@ -228,8 +228,8 @@ class AbstractDbxFirebaseOAuthConsentScopeViewComponent {
|
|
|
228
228
|
*/
|
|
229
229
|
class DbxFirebaseOAuthConsentScopeListComponent {
|
|
230
230
|
scopes = input([], ...(ngDevMode ? [{ debugName: "scopes" }] : /* istanbul ignore next */ []));
|
|
231
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
232
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
231
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOAuthConsentScopeListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
232
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: DbxFirebaseOAuthConsentScopeListComponent, isStandalone: true, selector: "dbx-firebase-oauth-consent-scope-list", inputs: { scopes: { classPropertyName: "scopes", publicName: "scopes", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
233
233
|
@for (scope of scopes(); track scope.name) {
|
|
234
234
|
<div class="dbx-firebase-oauth-consent-scope-list-item dbx-mb2">
|
|
235
235
|
<span class="dbx-firebase-oauth-consent-scope-name dbx-pb2">{{ scope.name }}</span>
|
|
@@ -240,7 +240,7 @@ class DbxFirebaseOAuthConsentScopeListComponent {
|
|
|
240
240
|
}
|
|
241
241
|
`, isInline: true, styles: [".dbx-firebase-oauth-consent-scope-list-item{display:flex;flex-direction:column;padding:8px 12px;border-left:3px solid var(--dbx-primary-color);background:color-mix(in srgb,var(--dbx-color-current) 10%,transparent)}.dbx-firebase-oauth-consent-scope-list-item .dbx-firebase-oauth-consent-scope-name{font-weight:500}.dbx-firebase-oauth-consent-scope-list-item .dbx-firebase-oauth-consent-scope-description{font-size:.85em;opacity:.7}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
242
242
|
}
|
|
243
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
243
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOAuthConsentScopeListComponent, decorators: [{
|
|
244
244
|
type: Component,
|
|
245
245
|
args: [{ selector: 'dbx-firebase-oauth-consent-scope-list', standalone: true, template: `
|
|
246
246
|
@for (scope of scopes(); track scope.name) {
|
|
@@ -328,10 +328,10 @@ class DbxFirebaseOidcConfigService {
|
|
|
328
328
|
get consentScopeListViewClass() {
|
|
329
329
|
return this.config.consentScopeListViewClass;
|
|
330
330
|
}
|
|
331
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
332
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
331
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
332
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcConfigService });
|
|
333
333
|
}
|
|
334
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
334
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcConfigService, decorators: [{
|
|
335
335
|
type: Injectable
|
|
336
336
|
}] });
|
|
337
337
|
|
|
@@ -356,8 +356,8 @@ class DbxFirebaseOAuthConsentScopeDefaultViewComponent extends AbstractDbxFireba
|
|
|
356
356
|
...unknownScopes.map((name) => ({ name, description: 'unknown' }))
|
|
357
357
|
];
|
|
358
358
|
}, ...(ngDevMode ? [{ debugName: "mappedScopes" }] : /* istanbul ignore next */ []));
|
|
359
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
360
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
359
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOAuthConsentScopeDefaultViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
360
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.4", type: DbxFirebaseOAuthConsentScopeDefaultViewComponent, isStandalone: true, selector: "dbx-firebase-oauth-consent-scope-default-view", usesInheritance: true, ngImport: i0, template: `
|
|
361
361
|
<p>
|
|
362
362
|
<strong>{{ clientName() }}</strong>
|
|
363
363
|
is requesting these permissions:
|
|
@@ -365,7 +365,7 @@ class DbxFirebaseOAuthConsentScopeDefaultViewComponent extends AbstractDbxFireba
|
|
|
365
365
|
<dbx-firebase-oauth-consent-scope-list [scopes]="mappedScopes()"></dbx-firebase-oauth-consent-scope-list>
|
|
366
366
|
`, isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseOAuthConsentScopeListComponent, selector: "dbx-firebase-oauth-consent-scope-list", inputs: ["scopes"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
367
367
|
}
|
|
368
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
368
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOAuthConsentScopeDefaultViewComponent, decorators: [{
|
|
369
369
|
type: Component,
|
|
370
370
|
args: [{
|
|
371
371
|
selector: 'dbx-firebase-oauth-consent-scope-default-view',
|
|
@@ -427,10 +427,10 @@ class DbxFirebaseOidcInteractionService {
|
|
|
427
427
|
submitConsent(uid, approved) {
|
|
428
428
|
return this._authService.idTokenString$.pipe(first(), switchMap((idToken) => this.http.post(`${this.baseUrl}/${uid}/consent`, { idToken, approved })));
|
|
429
429
|
}
|
|
430
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
431
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
430
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcInteractionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
431
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcInteractionService, providedIn: 'root' });
|
|
432
432
|
}
|
|
433
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
433
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcInteractionService, decorators: [{
|
|
434
434
|
type: Injectable,
|
|
435
435
|
args: [{ providedIn: 'root' }]
|
|
436
436
|
}] });
|
|
@@ -505,14 +505,14 @@ class DbxFirebaseOAuthLoginComponent {
|
|
|
505
505
|
}
|
|
506
506
|
});
|
|
507
507
|
}
|
|
508
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
509
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
508
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOAuthLoginComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
509
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.4", type: DbxFirebaseOAuthLoginComponent, isStandalone: true, selector: "dbx-firebase-oauth-login", host: { classAttribute: "d-block dbx-firebase-oauth-login" }, ngImport: i0, template: `
|
|
510
510
|
<dbx-firebase-oauth-login-view [loginStateCase]="loginStateCase()" [error]="errorMessage()" (retryClick)="retry()">
|
|
511
511
|
<ng-content />
|
|
512
512
|
</dbx-firebase-oauth-login-view>
|
|
513
513
|
`, isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseOAuthLoginViewComponent, selector: "dbx-firebase-oauth-login-view", inputs: ["loginStateCase", "error"], outputs: ["retryClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
514
514
|
}
|
|
515
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
515
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOAuthLoginComponent, decorators: [{
|
|
516
516
|
type: Component,
|
|
517
517
|
args: [{
|
|
518
518
|
selector: 'dbx-firebase-oauth-login',
|
|
@@ -616,12 +616,12 @@ class DbxOAuthConsentComponent {
|
|
|
616
616
|
}
|
|
617
617
|
});
|
|
618
618
|
}
|
|
619
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
620
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.
|
|
619
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxOAuthConsentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
620
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.4", type: DbxOAuthConsentComponent, isStandalone: true, selector: "dbx-firebase-oauth-consent", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "d-block dbx-firebase-oauth-consent" }, ngImport: i0, template: `
|
|
621
621
|
<dbx-firebase-oauth-consent-view [details]="resolvedDetails()" [loading]="loading()" [error]="error()" [scopeInjectionConfig]="scopeInjectionConfig()" (approveClick)="approve()" (denyClick)="deny()"></dbx-firebase-oauth-consent-view>
|
|
622
622
|
`, isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseOAuthConsentViewComponent, selector: "dbx-firebase-oauth-consent-view", inputs: ["details", "loading", "error", "scopeInjectionConfig"], outputs: ["approveClick", "denyClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
623
623
|
}
|
|
624
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
624
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxOAuthConsentComponent, decorators: [{
|
|
625
625
|
type: Component,
|
|
626
626
|
args: [{
|
|
627
627
|
selector: 'dbx-firebase-oauth-consent',
|
|
@@ -638,220 +638,247 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImpor
|
|
|
638
638
|
}], propDecorators: { config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: false }] }] } });
|
|
639
639
|
|
|
640
640
|
/**
|
|
641
|
-
* Creates fields for the OAuth client create form.
|
|
641
|
+
* Creates forge fields for the OAuth client create form.
|
|
642
642
|
*
|
|
643
643
|
* Includes `token_endpoint_auth_method` which is immutable after creation.
|
|
644
644
|
*
|
|
645
645
|
* @param config - Optional configuration for field generation, including mode and allowed auth methods.
|
|
646
|
-
* @returns
|
|
646
|
+
* @returns A FormConfig for the client creation form.
|
|
647
647
|
*/
|
|
648
|
-
function
|
|
648
|
+
function oidcEntryClientForgeFormFields(config) {
|
|
649
649
|
const fields = [];
|
|
650
650
|
if (config?.mode === 'create') {
|
|
651
|
-
fields.push(
|
|
651
|
+
fields.push(oidcClientTokenEndpointAuthMethodForgeField(config));
|
|
652
652
|
}
|
|
653
|
-
fields.push(...
|
|
654
|
-
return fields;
|
|
653
|
+
fields.push(...oidcEntryClientUpdateForgeFormFields());
|
|
654
|
+
return { fields };
|
|
655
655
|
}
|
|
656
656
|
/**
|
|
657
|
-
* Creates a value selection field for choosing the token endpoint authentication method.
|
|
657
|
+
* Creates a forge value selection field for choosing the token endpoint authentication method.
|
|
658
658
|
*
|
|
659
659
|
* @param config - Optional configuration to filter the available auth method options.
|
|
660
|
-
* @returns A
|
|
660
|
+
* @returns A forge value selection field for the token endpoint auth method selector.
|
|
661
661
|
*/
|
|
662
|
-
function
|
|
662
|
+
function oidcClientTokenEndpointAuthMethodForgeField(config) {
|
|
663
663
|
const allowedAuthMethods = config?.tokenEndpointAuthMethods;
|
|
664
664
|
const options = allowedAuthMethods?.length ? ALL_OIDC_TOKEN_ENDPOINT_AUTH_METHOD_OPTIONS.filter((o) => allowedAuthMethods.includes(o.value)) : ALL_OIDC_TOKEN_ENDPOINT_AUTH_METHOD_OPTIONS;
|
|
665
|
-
return
|
|
665
|
+
return dbxForgeValueSelectionField({
|
|
666
666
|
key: 'token_endpoint_auth_method',
|
|
667
667
|
label: 'Token Endpoint Auth Method',
|
|
668
668
|
description: 'How the client authenticates when exchanging tokens. Cannot be changed after creation.',
|
|
669
669
|
required: true,
|
|
670
|
-
options
|
|
670
|
+
props: { options }
|
|
671
671
|
});
|
|
672
672
|
}
|
|
673
673
|
/**
|
|
674
|
-
* Creates fields for updating an existing OAuth client.
|
|
674
|
+
* Creates forge fields for updating an existing OAuth client.
|
|
675
675
|
*
|
|
676
676
|
* Excludes `token_endpoint_auth_method` (immutable after creation).
|
|
677
677
|
*
|
|
678
|
-
* @returns Array of
|
|
678
|
+
* @returns Array of forge field definitions for the client update form.
|
|
679
679
|
*/
|
|
680
|
-
function
|
|
681
|
-
return [
|
|
680
|
+
function oidcEntryClientUpdateForgeFormFields() {
|
|
681
|
+
return [oidcClientNameForgeField(), oidcClientRedirectUrisForgeField(), oidcClientJwksUriForgeField(), oidcClientLogoUriForgeField(), oidcClientHomepageUriForgeField()];
|
|
682
682
|
}
|
|
683
683
|
/**
|
|
684
|
-
* Creates a text field for the OAuth client display name.
|
|
684
|
+
* Creates a forge text field for the OAuth client display name.
|
|
685
685
|
*
|
|
686
|
-
* @returns A
|
|
686
|
+
* @returns A forge text field for the client name.
|
|
687
687
|
*/
|
|
688
|
-
function
|
|
689
|
-
return
|
|
688
|
+
function oidcClientNameForgeField() {
|
|
689
|
+
return dbxForgeTextField({
|
|
690
690
|
key: 'client_name',
|
|
691
691
|
label: 'Client Name',
|
|
692
|
-
|
|
692
|
+
hint: 'A human-readable name for this OAuth client.',
|
|
693
693
|
required: true,
|
|
694
694
|
maxLength: 200
|
|
695
695
|
});
|
|
696
696
|
}
|
|
697
697
|
/**
|
|
698
|
-
* Creates a searchable chip field for entering redirect URIs.
|
|
698
|
+
* Creates a forge searchable chip field for entering redirect URIs.
|
|
699
699
|
*
|
|
700
|
-
* @returns A
|
|
700
|
+
* @returns A forge searchable chip field for redirect URIs.
|
|
701
701
|
*/
|
|
702
|
-
function
|
|
703
|
-
return
|
|
702
|
+
function oidcClientRedirectUrisForgeField() {
|
|
703
|
+
return dbxForgeSearchableStringChipField({
|
|
704
704
|
key: 'redirect_uris',
|
|
705
705
|
label: 'Redirect URIs',
|
|
706
|
-
|
|
706
|
+
hint: 'Type a redirect URI (e.g. https://example.com/callback) and press enter to add it.',
|
|
707
707
|
required: true,
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
708
|
+
props: {
|
|
709
|
+
searchOnEmptyText: false,
|
|
710
|
+
textInputValidator: isWebsiteUrlValidator({ requirePrefix: true, allowPorts: true }),
|
|
711
|
+
search: () => of([]),
|
|
712
|
+
displayForValue: (values) => of(values.map((v) => ({ ...v, label: v.value })))
|
|
713
|
+
}
|
|
712
714
|
});
|
|
713
715
|
}
|
|
714
716
|
/**
|
|
715
|
-
* Creates a
|
|
717
|
+
* Creates a forge group containing the JWKS URI field, conditionally hidden
|
|
718
|
+
* when the token endpoint auth method is not `private_key_jwt`.
|
|
716
719
|
*
|
|
717
|
-
* @returns A
|
|
720
|
+
* @returns A forge group field with conditional visibility logic.
|
|
718
721
|
*/
|
|
719
|
-
function
|
|
720
|
-
return
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
722
|
+
function oidcClientJwksUriForgeField() {
|
|
723
|
+
return dbxForgeGroup({
|
|
724
|
+
fields: [
|
|
725
|
+
dbxForgeTextField({
|
|
726
|
+
key: 'jwks_uri',
|
|
727
|
+
label: 'JWKS URI',
|
|
728
|
+
hint: "URL where the client's public JSON Web Key Set can be fetched. Required for private_key_jwt authentication.",
|
|
729
|
+
required: true
|
|
730
|
+
})
|
|
731
|
+
],
|
|
732
|
+
logic: [
|
|
733
|
+
{
|
|
734
|
+
type: 'hidden',
|
|
735
|
+
condition: {
|
|
736
|
+
type: 'fieldValue',
|
|
737
|
+
fieldPath: 'token_endpoint_auth_method',
|
|
738
|
+
operator: 'notEquals',
|
|
739
|
+
value: PRIVATE_KEY_JWT_TOKEN_ENDPOINT_AUTH_METHOD
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
]
|
|
728
743
|
});
|
|
729
744
|
}
|
|
730
745
|
/**
|
|
731
|
-
* Creates a text field for the optional client logo URL.
|
|
746
|
+
* Creates a forge text field for the optional client logo URL.
|
|
732
747
|
*
|
|
733
|
-
* @returns A
|
|
748
|
+
* @returns A forge text field for the logo URI.
|
|
734
749
|
*/
|
|
735
|
-
function
|
|
736
|
-
return
|
|
750
|
+
function oidcClientLogoUriForgeField() {
|
|
751
|
+
return dbxForgeTextField({
|
|
737
752
|
key: 'logo_uri',
|
|
738
753
|
label: 'Logo URI',
|
|
739
|
-
|
|
754
|
+
hint: 'URL of the client logo image (optional).',
|
|
740
755
|
required: false
|
|
741
756
|
});
|
|
742
757
|
}
|
|
743
758
|
/**
|
|
744
|
-
* Creates a text field for the optional client homepage URL.
|
|
759
|
+
* Creates a forge text field for the optional client homepage URL.
|
|
745
760
|
*
|
|
746
|
-
* @returns A
|
|
761
|
+
* @returns A forge text field for the homepage URL.
|
|
747
762
|
*/
|
|
748
|
-
function
|
|
749
|
-
return
|
|
763
|
+
function oidcClientHomepageUriForgeField() {
|
|
764
|
+
return dbxForgeTextField({
|
|
750
765
|
key: 'client_uri',
|
|
751
766
|
label: 'Homepage URL',
|
|
752
|
-
|
|
767
|
+
hint: 'URL of the client homepage (optional).',
|
|
753
768
|
required: false
|
|
754
769
|
});
|
|
755
770
|
}
|
|
756
771
|
/**
|
|
757
|
-
* Assembles the form fields for the OAuth test client form.
|
|
772
|
+
* Assembles the forge form fields for the OAuth test client form.
|
|
758
773
|
*
|
|
759
774
|
* @param config - Configuration providing available redirect URIs and scopes for the test form.
|
|
760
|
-
* @returns
|
|
775
|
+
* @returns A FormConfig for the test client form.
|
|
761
776
|
*/
|
|
762
|
-
function
|
|
763
|
-
return [
|
|
777
|
+
function oidcEntryClientTestForgeFormFields(config) {
|
|
778
|
+
return { fields: [oidcClientTestClientIdForgeField(), oidcClientTestRedirectUriForgeField(config.redirectUris), oidcClientTestScopesForgeField(config.availableScopes)] };
|
|
764
779
|
}
|
|
765
780
|
/**
|
|
766
|
-
* Creates a read-only text field displaying the OAuth client ID.
|
|
781
|
+
* Creates a read-only forge text field displaying the OAuth client ID.
|
|
767
782
|
*
|
|
768
|
-
* @returns A
|
|
783
|
+
* @returns A read-only forge text field for the client ID.
|
|
769
784
|
*/
|
|
770
|
-
function
|
|
771
|
-
return
|
|
785
|
+
function oidcClientTestClientIdForgeField() {
|
|
786
|
+
return dbxForgeTextField({
|
|
772
787
|
key: 'client_id',
|
|
773
788
|
label: 'Client ID',
|
|
774
789
|
readonly: true
|
|
775
790
|
});
|
|
776
791
|
}
|
|
777
792
|
/**
|
|
778
|
-
* Creates a selection field for choosing one of the client's registered redirect URIs for testing.
|
|
793
|
+
* Creates a forge selection field for choosing one of the client's registered redirect URIs for testing.
|
|
779
794
|
*
|
|
780
795
|
* @param redirectUris - The registered redirect URIs to display as options.
|
|
781
|
-
* @returns A
|
|
796
|
+
* @returns A forge selection field for the redirect URI.
|
|
782
797
|
*/
|
|
783
|
-
function
|
|
798
|
+
function oidcClientTestRedirectUriForgeField(redirectUris) {
|
|
784
799
|
const options = redirectUris.map((uri) => ({ label: uri, value: uri }));
|
|
785
|
-
return
|
|
800
|
+
return dbxForgeValueSelectionField({
|
|
786
801
|
key: 'redirect_uri',
|
|
787
802
|
label: 'Redirect URI',
|
|
788
803
|
description: 'Select the redirect URI to use for the test flow.',
|
|
789
804
|
required: true,
|
|
790
|
-
options
|
|
805
|
+
props: { options }
|
|
791
806
|
});
|
|
792
807
|
}
|
|
793
808
|
/**
|
|
794
|
-
* Creates a pickable chip field for selecting scopes to request during the test flow.
|
|
809
|
+
* Creates a forge pickable chip field for selecting scopes to request during the test flow.
|
|
795
810
|
*
|
|
796
811
|
* @param availableScopes - The available scopes to display as selectable options.
|
|
797
|
-
* @returns A
|
|
812
|
+
* @returns A forge pickable chip field for scope selection.
|
|
798
813
|
*/
|
|
799
|
-
function
|
|
800
|
-
return
|
|
814
|
+
function oidcClientTestScopesForgeField(availableScopes) {
|
|
815
|
+
return dbxForgePickableChipField({
|
|
801
816
|
key: 'scopes',
|
|
802
817
|
label: 'Scopes',
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
818
|
+
hint: 'Select the scopes to request.',
|
|
819
|
+
props: {
|
|
820
|
+
showSelectAllButton: true,
|
|
821
|
+
...pickableValueFieldValuesConfigForStaticLabeledValues(availableScopes)
|
|
822
|
+
}
|
|
806
823
|
});
|
|
807
824
|
}
|
|
808
825
|
|
|
809
826
|
/**
|
|
810
|
-
* Configurable form component for creating or updating an OAuth client.
|
|
827
|
+
* Configurable forge form component for creating or updating an OAuth client.
|
|
811
828
|
*
|
|
812
829
|
* Pass `{ mode: 'create' }` to show all fields including `token_endpoint_auth_method`.
|
|
813
830
|
* Pass `{ mode: 'update' }` to exclude `token_endpoint_auth_method` (immutable after creation).
|
|
814
831
|
*
|
|
815
832
|
* Token endpoint auth methods are pulled from the injected {@link DbxFirebaseOidcConfigService}.
|
|
816
833
|
*/
|
|
817
|
-
class
|
|
834
|
+
class DbxFirebaseOidcEntryClientForgeFormComponent extends AbstractConfigAsyncForgeFormDirective {
|
|
818
835
|
_oidcConfigService = inject(DbxFirebaseOidcConfigService);
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
836
|
+
formConfig$ = this.currentConfig$.pipe(map((config) => {
|
|
837
|
+
if (!config) {
|
|
838
|
+
return undefined;
|
|
839
|
+
}
|
|
840
|
+
return oidcEntryClientForgeFormFields({
|
|
841
|
+
...config,
|
|
842
|
+
tokenEndpointAuthMethods: this._oidcConfigService.tokenEndpointAuthMethods
|
|
843
|
+
});
|
|
844
|
+
}));
|
|
845
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientForgeFormComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
846
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.4", type: DbxFirebaseOidcEntryClientForgeFormComponent, isStandalone: true, selector: "dbx-firebase-oidc-client-forge-form", providers: dbxForgeFormComponentProviders(), usesInheritance: true, ngImport: i0, template: "<dbx-forge></dbx-forge>", isInline: true, dependencies: [{ kind: "ngmodule", type: DbxForgeFormComponentImportsModule }, { kind: "component", type: i1.DbxForgeFormComponent, selector: "dbx-forge" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
825
847
|
}
|
|
826
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
848
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientForgeFormComponent, decorators: [{
|
|
827
849
|
type: Component,
|
|
828
850
|
args: [{
|
|
829
|
-
selector: 'dbx-firebase-oidc-client-form',
|
|
830
|
-
template:
|
|
831
|
-
providers:
|
|
832
|
-
imports: [
|
|
851
|
+
selector: 'dbx-firebase-oidc-client-forge-form',
|
|
852
|
+
template: DBX_FORGE_FORM_COMPONENT_TEMPLATE,
|
|
853
|
+
providers: dbxForgeFormComponentProviders(),
|
|
854
|
+
imports: [DbxForgeFormComponentImportsModule],
|
|
833
855
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
834
856
|
standalone: true
|
|
835
857
|
}]
|
|
836
858
|
}] });
|
|
837
859
|
|
|
838
860
|
/**
|
|
839
|
-
*
|
|
861
|
+
* Forge form component for configuring an OAuth test authorization request.
|
|
840
862
|
*
|
|
841
|
-
* Displays read-only client_id
|
|
863
|
+
* Displays read-only client_id, a redirect URI selector, and scope picker.
|
|
842
864
|
*/
|
|
843
|
-
class
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
865
|
+
class DbxFirebaseOidcEntryClientTestForgeFormComponent extends AbstractConfigAsyncForgeFormDirective {
|
|
866
|
+
formConfig$ = this.currentConfig$.pipe(map((config) => {
|
|
867
|
+
if (!config) {
|
|
868
|
+
return undefined;
|
|
869
|
+
}
|
|
870
|
+
return oidcEntryClientTestForgeFormFields(config);
|
|
871
|
+
}));
|
|
872
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientTestForgeFormComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
873
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.4", type: DbxFirebaseOidcEntryClientTestForgeFormComponent, isStandalone: true, selector: "dbx-firebase-oidc-client-test-forge-form", providers: dbxForgeFormComponentProviders(), usesInheritance: true, ngImport: i0, template: "<dbx-forge></dbx-forge>", isInline: true, dependencies: [{ kind: "ngmodule", type: DbxForgeFormComponentImportsModule }, { kind: "component", type: i1.DbxForgeFormComponent, selector: "dbx-forge" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
847
874
|
}
|
|
848
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
875
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientTestForgeFormComponent, decorators: [{
|
|
849
876
|
type: Component,
|
|
850
877
|
args: [{
|
|
851
|
-
selector: 'dbx-firebase-oidc-client-test-form',
|
|
852
|
-
template:
|
|
853
|
-
providers:
|
|
854
|
-
imports: [
|
|
878
|
+
selector: 'dbx-firebase-oidc-client-test-forge-form',
|
|
879
|
+
template: DBX_FORGE_FORM_COMPONENT_TEMPLATE,
|
|
880
|
+
providers: dbxForgeFormComponentProviders(),
|
|
881
|
+
imports: [DbxForgeFormComponentImportsModule],
|
|
855
882
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
856
883
|
standalone: true
|
|
857
884
|
}]
|
|
@@ -864,10 +891,10 @@ class DbxFirebaseOidcEntryClientListComponent extends AbstractDbxSelectionListWr
|
|
|
864
891
|
defaultSelectionMode: 'view'
|
|
865
892
|
});
|
|
866
893
|
}
|
|
867
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
868
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
894
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
895
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.4", type: DbxFirebaseOidcEntryClientListComponent, isStandalone: true, selector: "dbx-firebase-oidc-client-list", providers: provideDbxListViewWrapper(DbxFirebaseOidcEntryClientListComponent), usesInheritance: true, ngImport: i0, template: "\n <dbx-list [state]=\"currentState$\" [config]=\"configSignal()\" [hasMore]=\"hasMore()\" [disabled]=\"disabledSignal()\" [selectionMode]=\"selectionModeSignal()\">\n <ng-content top select=\"[top]\"></ng-content>\n <ng-content bottom select=\"[bottom]\"></ng-content>\n <ng-content empty select=\"[empty]\"></ng-content>\n <ng-content emptyLoading select=\"[emptyLoading]\"></ng-content>\n <ng-content end select=\"[end]\"></ng-content>\n </dbx-list>", isInline: true, dependencies: [{ kind: "ngmodule", type: DbxListWrapperComponentImportsModule }, { kind: "component", type: i1$1.DbxListComponent, selector: "dbx-list", inputs: ["padded", "state", "config", "disabled", "selectionMode", "hasMore"], outputs: ["contentScrolled"] }] });
|
|
869
896
|
}
|
|
870
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
897
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientListComponent, decorators: [{
|
|
871
898
|
type: Component,
|
|
872
899
|
args: [{
|
|
873
900
|
selector: 'dbx-firebase-oidc-client-list',
|
|
@@ -882,10 +909,10 @@ class DbxFirebaseOidcEntryClientListViewComponent extends AbstractDbxSelectionLi
|
|
|
882
909
|
componentClass: DbxFirebaseOidcEntryClientListViewItemComponent,
|
|
883
910
|
mapValuesToItemValues: (x) => of(x.map((y, i) => ({ ...y, key: `oidc_${i}`, itemValue: y })))
|
|
884
911
|
};
|
|
885
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
886
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
912
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientListViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
913
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.4", type: DbxFirebaseOidcEntryClientListViewComponent, isStandalone: true, selector: "dbx-firebase-oidc-client-list-view", providers: provideDbxListView(DbxFirebaseOidcEntryClientListViewComponent), usesInheritance: true, ngImport: i0, template: "<dbx-selection-list-view [config]=\"config\"></dbx-selection-list-view>", isInline: true, dependencies: [{ kind: "ngmodule", type: DbxSelectionValueListViewComponentImportsModule }, { kind: "component", type: i1$1.DbxSelectionValueListViewComponent, selector: "dbx-selection-list-view" }] });
|
|
887
914
|
}
|
|
888
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
915
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientListViewComponent, decorators: [{
|
|
889
916
|
type: Component,
|
|
890
917
|
args: [{
|
|
891
918
|
selector: 'dbx-firebase-oidc-client-list-view',
|
|
@@ -906,15 +933,15 @@ class DbxFirebaseOidcEntryClientListViewItemClientComponent {
|
|
|
906
933
|
const payload = this.entry().payload;
|
|
907
934
|
return payload?.client_id || '';
|
|
908
935
|
}
|
|
909
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
910
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.
|
|
936
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientListViewItemClientComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
937
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.4", type: DbxFirebaseOidcEntryClientListViewItemClientComponent, isStandalone: true, selector: "dbx-firebase-oidc-client-list-view-item-client", inputs: { entry: { classPropertyName: "entry", publicName: "entry", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `
|
|
911
938
|
<div>
|
|
912
939
|
<p>{{ name }}</p>
|
|
913
940
|
<p class="dbx-hint">{{ clientId }}</p>
|
|
914
941
|
</div>
|
|
915
942
|
`, isInline: true });
|
|
916
943
|
}
|
|
917
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
944
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientListViewItemClientComponent, decorators: [{
|
|
918
945
|
type: Component,
|
|
919
946
|
args: [{
|
|
920
947
|
selector: 'dbx-firebase-oidc-client-list-view-item-client',
|
|
@@ -929,14 +956,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImpor
|
|
|
929
956
|
}], propDecorators: { entry: [{ type: i0.Input, args: [{ isSignal: true, alias: "entry", required: true }] }] } });
|
|
930
957
|
class DbxFirebaseOidcEntryClientListViewItemDefaultComponent {
|
|
931
958
|
entry = input.required(...(ngDevMode ? [{ debugName: "entry" }] : /* istanbul ignore next */ []));
|
|
932
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
933
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.
|
|
959
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientListViewItemDefaultComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
960
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.4", type: DbxFirebaseOidcEntryClientListViewItemDefaultComponent, isStandalone: true, selector: "dbx-firebase-oidc-client-list-view-item-default", inputs: { entry: { classPropertyName: "entry", publicName: "entry", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `
|
|
934
961
|
<div>
|
|
935
962
|
<p>{{ entry().type }}</p>
|
|
936
963
|
</div>
|
|
937
964
|
`, isInline: true });
|
|
938
965
|
}
|
|
939
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
966
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientListViewItemDefaultComponent, decorators: [{
|
|
940
967
|
type: Component,
|
|
941
968
|
args: [{
|
|
942
969
|
selector: 'dbx-firebase-oidc-client-list-view-item-default',
|
|
@@ -950,8 +977,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImpor
|
|
|
950
977
|
}], propDecorators: { entry: [{ type: i0.Input, args: [{ isSignal: true, alias: "entry", required: true }] }] } });
|
|
951
978
|
class DbxFirebaseOidcEntryClientListViewItemComponent extends AbstractDbxValueListViewItemComponent {
|
|
952
979
|
clientType = OIDC_ENTRY_CLIENT_TYPE;
|
|
953
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
954
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
980
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientListViewItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
981
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: DbxFirebaseOidcEntryClientListViewItemComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
|
955
982
|
@switch (itemValue.type) {
|
|
956
983
|
@case (clientType) {
|
|
957
984
|
<dbx-firebase-oidc-client-list-view-item-client [entry]="itemValue"></dbx-firebase-oidc-client-list-view-item-client>
|
|
@@ -962,7 +989,7 @@ class DbxFirebaseOidcEntryClientListViewItemComponent extends AbstractDbxValueLi
|
|
|
962
989
|
}
|
|
963
990
|
`, isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseOidcEntryClientListViewItemClientComponent, selector: "dbx-firebase-oidc-client-list-view-item-client", inputs: ["entry"] }, { kind: "component", type: DbxFirebaseOidcEntryClientListViewItemDefaultComponent, selector: "dbx-firebase-oidc-client-list-view-item-default", inputs: ["entry"] }] });
|
|
964
991
|
}
|
|
965
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
992
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientListViewItemComponent, decorators: [{
|
|
966
993
|
type: Component,
|
|
967
994
|
args: [{
|
|
968
995
|
template: `
|
|
@@ -1010,10 +1037,10 @@ class OidcEntryDocumentStore extends AbstractDbxFirebaseDocumentStore {
|
|
|
1010
1037
|
}
|
|
1011
1038
|
});
|
|
1012
1039
|
deleteClient = firebaseDocumentStoreDeleteFunction(this, this.oidcModelFunctions.oidcEntry.deleteOidcEntry.client);
|
|
1013
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1014
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
1040
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OidcEntryDocumentStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1041
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OidcEntryDocumentStore });
|
|
1015
1042
|
}
|
|
1016
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1043
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OidcEntryDocumentStore, decorators: [{
|
|
1017
1044
|
type: Injectable
|
|
1018
1045
|
}], ctorParameters: () => [] });
|
|
1019
1046
|
|
|
@@ -1040,26 +1067,26 @@ class DbxFirebaseOidcEntryClientCreateComponent {
|
|
|
1040
1067
|
}
|
|
1041
1068
|
})));
|
|
1042
1069
|
};
|
|
1043
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1044
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.
|
|
1070
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientCreateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1071
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.4", type: DbxFirebaseOidcEntryClientCreateComponent, isStandalone: true, selector: "dbx-firebase-oidc-entry-client-create", inputs: { createClientOwnerTarget: { classPropertyName: "createClientOwnerTarget", publicName: "createClientOwnerTarget", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { clientCreated: "clientCreated" }, ngImport: i0, template: `
|
|
1045
1072
|
<div dbxAction dbxActionEnforceModified [dbxActionHandler]="handleCreateClient" dbxActionSnackbarError>
|
|
1046
|
-
<dbx-firebase-oidc-client-form dbxActionForm [config]="formConfig"></dbx-firebase-oidc-client-form>
|
|
1073
|
+
<dbx-firebase-oidc-client-forge-form dbxActionForm [config]="formConfig"></dbx-firebase-oidc-client-forge-form>
|
|
1047
1074
|
<dbx-button [raised]="true" dbxActionButton text="Create"></dbx-button>
|
|
1048
1075
|
</div>
|
|
1049
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: DbxActionSnackbarErrorDirective, selector: "[dbxActionSnackbarError]", inputs: ["dbxActionSnackbarError"] }, { kind: "directive", type: DbxActionDirective, selector: "dbx-action,[dbxAction]", exportAs: ["action", "dbxAction"] }, { kind: "directive", type: DbxActionEnforceModifiedDirective, selector: "[dbxActionEnforceModified]", inputs: ["dbxActionEnforceModified"] }, { kind: "directive", type: DbxActionHandlerDirective, selector: "[dbxActionHandler]", inputs: ["dbxActionHandler"] }, { kind: "directive", type: DbxActionFormDirective, selector: "[dbxActionForm]", inputs: ["dbxActionFormDisabledOnWorking", "dbxActionFormIsValid", "dbxActionFormIsEqual", "dbxActionFormIsModified", "dbxActionFormMapValue"] }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customButtonColor", "customTextColor", "customSpinnerColor", "basic", "tonal", "raised", "stroked", "flat", "iconOnly", "fab", "customContent", "allowClickPropagation", "mode"] }, { kind: "directive", type: DbxActionButtonDirective, selector: "[dbxActionButton]", inputs: ["dbxActionButtonEcho"] }, { kind: "component", type:
|
|
1076
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: DbxActionSnackbarErrorDirective, selector: "[dbxActionSnackbarError]", inputs: ["dbxActionSnackbarError"] }, { kind: "directive", type: DbxActionDirective, selector: "dbx-action,[dbxAction]", exportAs: ["action", "dbxAction"] }, { kind: "directive", type: DbxActionEnforceModifiedDirective, selector: "[dbxActionEnforceModified]", inputs: ["dbxActionEnforceModified"] }, { kind: "directive", type: DbxActionHandlerDirective, selector: "[dbxActionHandler]", inputs: ["dbxActionHandler"] }, { kind: "directive", type: DbxActionFormDirective, selector: "[dbxActionForm]", inputs: ["dbxActionFormDisabledOnWorking", "dbxActionFormIsValid", "dbxActionFormIsEqual", "dbxActionFormIsModified", "dbxActionFormMapValue"] }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customButtonColor", "customTextColor", "customSpinnerColor", "basic", "tonal", "raised", "stroked", "flat", "iconOnly", "fab", "customContent", "allowClickPropagation", "mode"] }, { kind: "directive", type: DbxActionButtonDirective, selector: "[dbxActionButton]", inputs: ["dbxActionButtonEcho"] }, { kind: "component", type: DbxFirebaseOidcEntryClientForgeFormComponent, selector: "dbx-firebase-oidc-client-forge-form" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1050
1077
|
}
|
|
1051
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1078
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientCreateComponent, decorators: [{
|
|
1052
1079
|
type: Component,
|
|
1053
1080
|
args: [{
|
|
1054
1081
|
selector: 'dbx-firebase-oidc-entry-client-create',
|
|
1055
1082
|
template: `
|
|
1056
1083
|
<div dbxAction dbxActionEnforceModified [dbxActionHandler]="handleCreateClient" dbxActionSnackbarError>
|
|
1057
|
-
<dbx-firebase-oidc-client-form dbxActionForm [config]="formConfig"></dbx-firebase-oidc-client-form>
|
|
1084
|
+
<dbx-firebase-oidc-client-forge-form dbxActionForm [config]="formConfig"></dbx-firebase-oidc-client-forge-form>
|
|
1058
1085
|
<dbx-button [raised]="true" dbxActionButton text="Create"></dbx-button>
|
|
1059
1086
|
</div>
|
|
1060
1087
|
`,
|
|
1061
1088
|
standalone: true,
|
|
1062
|
-
imports: [DbxActionSnackbarErrorDirective, DbxActionDirective, DbxActionEnforceModifiedDirective, DbxActionHandlerDirective, DbxActionFormDirective, DbxButtonComponent, DbxActionButtonDirective,
|
|
1089
|
+
imports: [DbxActionSnackbarErrorDirective, DbxActionDirective, DbxActionEnforceModifiedDirective, DbxActionHandlerDirective, DbxActionFormDirective, DbxButtonComponent, DbxActionButtonDirective, DbxFirebaseOidcEntryClientForgeFormComponent],
|
|
1063
1090
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1064
1091
|
}]
|
|
1065
1092
|
}], propDecorators: { createClientOwnerTarget: [{ type: i0.Input, args: [{ isSignal: true, alias: "createClientOwnerTarget", required: false }] }], clientCreated: [{ type: i0.Output, args: ["clientCreated"] }] } });
|
|
@@ -1184,10 +1211,10 @@ class DbxFirebaseOidcEntryClientTestComponent {
|
|
|
1184
1211
|
this.codeChallenge.set(challenge);
|
|
1185
1212
|
});
|
|
1186
1213
|
}
|
|
1187
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1188
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
1214
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientTestComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1215
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: DbxFirebaseOidcEntryClientTestComponent, isStandalone: true, selector: "dbx-firebase-oidc-entry-client-test", inputs: { availableScopes: { classPropertyName: "availableScopes", publicName: "availableScopes", isSignal: true, isRequired: false, transformFunction: null }, oidcAuthorizationEndpointApiPath: { classPropertyName: "oidcAuthorizationEndpointApiPath", publicName: "oidcAuthorizationEndpointApiPath", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
1189
1216
|
@if (formConfig()) {
|
|
1190
|
-
<dbx-firebase-oidc-client-test-form [dbxFormSource]="formTemplate$" dbxFormSourceMode="always" [config]="formConfig()" (dbxFormValueChange)="onFormValueChange($event)"></dbx-firebase-oidc-client-test-form>
|
|
1217
|
+
<dbx-firebase-oidc-client-test-forge-form [dbxFormSource]="formTemplate$" dbxFormSourceMode="always" [config]="formConfig()" (dbxFormValueChange)="onFormValueChange($event)"></dbx-firebase-oidc-client-test-forge-form>
|
|
1191
1218
|
<dbx-content-pit class="dbx-block dbx-mb3" [rounded]="true">
|
|
1192
1219
|
<dbx-detail-block class="dbx-pb4" icon="link" header="Authorization URL">
|
|
1193
1220
|
@if (authorizationUrlSignal()) {
|
|
@@ -1207,15 +1234,15 @@ class DbxFirebaseOidcEntryClientTestComponent {
|
|
|
1207
1234
|
<dbx-button class="dbx-ml2" text="Regenerate PKCE" icon="refresh" (buttonClick)="regeneratePkce()"></dbx-button>
|
|
1208
1235
|
</div>
|
|
1209
1236
|
}
|
|
1210
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type:
|
|
1237
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DbxFirebaseOidcEntryClientTestForgeFormComponent, selector: "dbx-firebase-oidc-client-test-forge-form" }, { kind: "directive", type: DbxFormSourceDirective, selector: "[dbxFormSource]", inputs: ["dbxFormSourceMode", "dbxFormSource"] }, { kind: "directive", type: DbxFormValueChangeDirective, selector: "[dbxFormValueChange]", outputs: ["dbxFormValueChange"] }, { kind: "directive", type: DbxContentPitDirective, selector: "dbx-content-pit, [dbxContentPit]", inputs: ["scrollable", "rounded"] }, { kind: "component", type: DbxDetailBlockComponent, selector: "dbx-detail-block", inputs: ["icon", "header", "alignHeader", "bigHeader"] }, { kind: "component", type: DbxClickToCopyTextComponent, selector: "dbx-click-to-copy-text", inputs: ["copyText", "showIcon", "highlighted", "clipboardSnackbarMessagesConfig", "clipboardSnackbarMessagesEnabled", "clickToCopyIcon", "clickIconToCopyOnly"] }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customButtonColor", "customTextColor", "customSpinnerColor", "basic", "tonal", "raised", "stroked", "flat", "iconOnly", "fab", "customContent", "allowClickPropagation", "mode"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1211
1238
|
}
|
|
1212
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1239
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientTestComponent, decorators: [{
|
|
1213
1240
|
type: Component,
|
|
1214
1241
|
args: [{
|
|
1215
1242
|
selector: 'dbx-firebase-oidc-entry-client-test',
|
|
1216
1243
|
template: `
|
|
1217
1244
|
@if (formConfig()) {
|
|
1218
|
-
<dbx-firebase-oidc-client-test-form [dbxFormSource]="formTemplate$" dbxFormSourceMode="always" [config]="formConfig()" (dbxFormValueChange)="onFormValueChange($event)"></dbx-firebase-oidc-client-test-form>
|
|
1245
|
+
<dbx-firebase-oidc-client-test-forge-form [dbxFormSource]="formTemplate$" dbxFormSourceMode="always" [config]="formConfig()" (dbxFormValueChange)="onFormValueChange($event)"></dbx-firebase-oidc-client-test-forge-form>
|
|
1219
1246
|
<dbx-content-pit class="dbx-block dbx-mb3" [rounded]="true">
|
|
1220
1247
|
<dbx-detail-block class="dbx-pb4" icon="link" header="Authorization URL">
|
|
1221
1248
|
@if (authorizationUrlSignal()) {
|
|
@@ -1237,7 +1264,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImpor
|
|
|
1237
1264
|
}
|
|
1238
1265
|
`,
|
|
1239
1266
|
standalone: true,
|
|
1240
|
-
imports: [CommonModule,
|
|
1267
|
+
imports: [CommonModule, DbxFirebaseOidcEntryClientTestForgeFormComponent, DbxFormSourceDirective, DbxFormValueChangeDirective, DbxContentPitDirective, DbxDetailBlockComponent, DbxClickToCopyTextComponent, DbxButtonComponent],
|
|
1241
1268
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1242
1269
|
}]
|
|
1243
1270
|
}], ctorParameters: () => [], propDecorators: { availableScopes: [{ type: i0.Input, args: [{ isSignal: true, alias: "availableScopes", required: false }] }], oidcAuthorizationEndpointApiPath: [{ type: i0.Input, args: [{ isSignal: true, alias: "oidcAuthorizationEndpointApiPath", required: false }] }] } });
|
|
@@ -1269,26 +1296,26 @@ class DbxFirebaseOidcEntryClientUpdateComponent {
|
|
|
1269
1296
|
const params = value;
|
|
1270
1297
|
context.startWorkingWithLoadingStateObservable(this.oidcEntryDocumentStore.updateClient(params));
|
|
1271
1298
|
};
|
|
1272
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1273
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
1299
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientUpdateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1300
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.4", type: DbxFirebaseOidcEntryClientUpdateComponent, isStandalone: true, selector: "dbx-firebase-oidc-entry-client-update", ngImport: i0, template: `
|
|
1274
1301
|
<div dbxAction dbxActionEnforceModified [dbxActionHandler]="handleUpdateClient" dbxActionSnackbarError>
|
|
1275
|
-
<dbx-firebase-oidc-client-form dbxActionForm [dbxFormSource]="formTemplate$" [config]="formConfig"></dbx-firebase-oidc-client-form>
|
|
1302
|
+
<dbx-firebase-oidc-client-forge-form dbxActionForm [dbxFormSource]="formTemplate$" [config]="formConfig"></dbx-firebase-oidc-client-forge-form>
|
|
1276
1303
|
<dbx-button [raised]="true" dbxActionButton text="Save"></dbx-button>
|
|
1277
1304
|
</div>
|
|
1278
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: DbxActionSnackbarErrorDirective, selector: "[dbxActionSnackbarError]", inputs: ["dbxActionSnackbarError"] }, { kind: "directive", type: DbxActionDirective, selector: "dbx-action,[dbxAction]", exportAs: ["action", "dbxAction"] }, { kind: "directive", type: DbxActionEnforceModifiedDirective, selector: "[dbxActionEnforceModified]", inputs: ["dbxActionEnforceModified"] }, { kind: "directive", type: DbxActionHandlerDirective, selector: "[dbxActionHandler]", inputs: ["dbxActionHandler"] }, { kind: "directive", type: DbxActionFormDirective, selector: "[dbxActionForm]", inputs: ["dbxActionFormDisabledOnWorking", "dbxActionFormIsValid", "dbxActionFormIsEqual", "dbxActionFormIsModified", "dbxActionFormMapValue"] }, { kind: "directive", type: DbxFormSourceDirective, selector: "[dbxFormSource]", inputs: ["dbxFormSourceMode", "dbxFormSource"] }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customButtonColor", "customTextColor", "customSpinnerColor", "basic", "tonal", "raised", "stroked", "flat", "iconOnly", "fab", "customContent", "allowClickPropagation", "mode"] }, { kind: "directive", type: DbxActionButtonDirective, selector: "[dbxActionButton]", inputs: ["dbxActionButtonEcho"] }, { kind: "component", type:
|
|
1305
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: DbxActionSnackbarErrorDirective, selector: "[dbxActionSnackbarError]", inputs: ["dbxActionSnackbarError"] }, { kind: "directive", type: DbxActionDirective, selector: "dbx-action,[dbxAction]", exportAs: ["action", "dbxAction"] }, { kind: "directive", type: DbxActionEnforceModifiedDirective, selector: "[dbxActionEnforceModified]", inputs: ["dbxActionEnforceModified"] }, { kind: "directive", type: DbxActionHandlerDirective, selector: "[dbxActionHandler]", inputs: ["dbxActionHandler"] }, { kind: "directive", type: DbxActionFormDirective, selector: "[dbxActionForm]", inputs: ["dbxActionFormDisabledOnWorking", "dbxActionFormIsValid", "dbxActionFormIsEqual", "dbxActionFormIsModified", "dbxActionFormMapValue"] }, { kind: "directive", type: DbxFormSourceDirective, selector: "[dbxFormSource]", inputs: ["dbxFormSourceMode", "dbxFormSource"] }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customButtonColor", "customTextColor", "customSpinnerColor", "basic", "tonal", "raised", "stroked", "flat", "iconOnly", "fab", "customContent", "allowClickPropagation", "mode"] }, { kind: "directive", type: DbxActionButtonDirective, selector: "[dbxActionButton]", inputs: ["dbxActionButtonEcho"] }, { kind: "component", type: DbxFirebaseOidcEntryClientForgeFormComponent, selector: "dbx-firebase-oidc-client-forge-form" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1279
1306
|
}
|
|
1280
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1307
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientUpdateComponent, decorators: [{
|
|
1281
1308
|
type: Component,
|
|
1282
1309
|
args: [{
|
|
1283
1310
|
selector: 'dbx-firebase-oidc-entry-client-update',
|
|
1284
1311
|
template: `
|
|
1285
1312
|
<div dbxAction dbxActionEnforceModified [dbxActionHandler]="handleUpdateClient" dbxActionSnackbarError>
|
|
1286
|
-
<dbx-firebase-oidc-client-form dbxActionForm [dbxFormSource]="formTemplate$" [config]="formConfig"></dbx-firebase-oidc-client-form>
|
|
1313
|
+
<dbx-firebase-oidc-client-forge-form dbxActionForm [dbxFormSource]="formTemplate$" [config]="formConfig"></dbx-firebase-oidc-client-forge-form>
|
|
1287
1314
|
<dbx-button [raised]="true" dbxActionButton text="Save"></dbx-button>
|
|
1288
1315
|
</div>
|
|
1289
1316
|
`,
|
|
1290
1317
|
standalone: true,
|
|
1291
|
-
imports: [DbxActionSnackbarErrorDirective, DbxActionDirective, DbxActionEnforceModifiedDirective, DbxActionHandlerDirective, DbxActionFormDirective, DbxFormSourceDirective, DbxButtonComponent, DbxActionButtonDirective,
|
|
1318
|
+
imports: [DbxActionSnackbarErrorDirective, DbxActionDirective, DbxActionEnforceModifiedDirective, DbxActionHandlerDirective, DbxActionFormDirective, DbxFormSourceDirective, DbxButtonComponent, DbxActionButtonDirective, DbxFirebaseOidcEntryClientForgeFormComponent],
|
|
1292
1319
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1293
1320
|
}]
|
|
1294
1321
|
}] });
|
|
@@ -1311,8 +1338,8 @@ class DbxFirebaseOidcEntryClientViewComponent {
|
|
|
1311
1338
|
handleRotateClientSecret = (_, context) => {
|
|
1312
1339
|
context.startWorkingWithLoadingStateObservable(this.oidcEntryDocumentStore.rotateClientSecret({}));
|
|
1313
1340
|
};
|
|
1314
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1315
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
1341
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1342
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: DbxFirebaseOidcEntryClientViewComponent, isStandalone: true, selector: "dbx-firebase-oidc-entry-client-view", ngImport: i0, template: `
|
|
1316
1343
|
<dbx-content-pit [rounded]="true">
|
|
1317
1344
|
<dbx-detail-block class="dbx-pb4" icon="key" header="Client ID">
|
|
1318
1345
|
<dbx-click-to-copy-text [copyText]="clientIdSignal()">{{ clientIdSignal() }}</dbx-click-to-copy-text>
|
|
@@ -1331,7 +1358,7 @@ class DbxFirebaseOidcEntryClientViewComponent {
|
|
|
1331
1358
|
</dbx-content-pit>
|
|
1332
1359
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: DbxContentPitDirective, selector: "dbx-content-pit, [dbxContentPit]", inputs: ["scrollable", "rounded"] }, { kind: "component", type: DbxDetailBlockComponent, selector: "dbx-detail-block", inputs: ["icon", "header", "alignHeader", "bigHeader"] }, { kind: "component", type: DbxClickToCopyTextComponent, selector: "dbx-click-to-copy-text", inputs: ["copyText", "showIcon", "highlighted", "clipboardSnackbarMessagesConfig", "clipboardSnackbarMessagesEnabled", "clickToCopyIcon", "clickIconToCopyOnly"] }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customButtonColor", "customTextColor", "customSpinnerColor", "basic", "tonal", "raised", "stroked", "flat", "iconOnly", "fab", "customContent", "allowClickPropagation", "mode"] }, { kind: "directive", type: DbxActionDirective, selector: "dbx-action,[dbxAction]", exportAs: ["action", "dbxAction"] }, { kind: "directive", type: DbxActionHandlerDirective, selector: "[dbxActionHandler]", inputs: ["dbxActionHandler"] }, { kind: "directive", type: DbxActionButtonDirective, selector: "[dbxActionButton]", inputs: ["dbxActionButtonEcho"] }, { kind: "directive", type: DbxActionConfirmDirective, selector: "[dbxActionConfirm]", inputs: ["dbxActionConfirm", "dbxActionConfirmSkip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1333
1360
|
}
|
|
1334
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1361
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientViewComponent, decorators: [{
|
|
1335
1362
|
type: Component,
|
|
1336
1363
|
args: [{
|
|
1337
1364
|
selector: 'dbx-firebase-oidc-entry-client-view',
|
|
@@ -1366,10 +1393,10 @@ class OidcEntryCollectionStore extends AbstractDbxFirebaseCollectionStore {
|
|
|
1366
1393
|
constructor() {
|
|
1367
1394
|
super({ firestoreCollection: inject(OidcModelFirestoreCollections).oidcEntryCollection });
|
|
1368
1395
|
}
|
|
1369
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1370
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
1396
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OidcEntryCollectionStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1397
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OidcEntryCollectionStore });
|
|
1371
1398
|
}
|
|
1372
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1399
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OidcEntryCollectionStore, decorators: [{
|
|
1373
1400
|
type: Injectable
|
|
1374
1401
|
}], ctorParameters: () => [] });
|
|
1375
1402
|
|
|
@@ -1380,10 +1407,10 @@ class OidcEntryCollectionStoreDirective extends DbxFirebaseCollectionStoreDirect
|
|
|
1380
1407
|
constructor() {
|
|
1381
1408
|
super(inject(OidcEntryCollectionStore));
|
|
1382
1409
|
}
|
|
1383
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1384
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
1410
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OidcEntryCollectionStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1411
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.4", type: OidcEntryCollectionStoreDirective, isStandalone: true, selector: "[dbxOidcEntryCollection]", providers: provideDbxFirebaseCollectionStoreDirective(OidcEntryCollectionStoreDirective, OidcEntryCollectionStore), usesInheritance: true, ngImport: i0 });
|
|
1385
1412
|
}
|
|
1386
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1413
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OidcEntryCollectionStoreDirective, decorators: [{
|
|
1387
1414
|
type: Directive,
|
|
1388
1415
|
args: [{
|
|
1389
1416
|
selector: '[dbxOidcEntryCollection]',
|
|
@@ -1399,10 +1426,10 @@ class OidcEntryDocumentStoreDirective extends DbxFirebaseDocumentStoreDirective
|
|
|
1399
1426
|
constructor() {
|
|
1400
1427
|
super(inject(OidcEntryDocumentStore));
|
|
1401
1428
|
}
|
|
1402
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1403
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
1429
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OidcEntryDocumentStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1430
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.4", type: OidcEntryDocumentStoreDirective, isStandalone: true, selector: "[dbxOidcEntryDocument]", providers: provideDbxFirebaseDocumentStoreDirective(OidcEntryDocumentStoreDirective, OidcEntryDocumentStore), usesInheritance: true, ngImport: i0 });
|
|
1404
1431
|
}
|
|
1405
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1432
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OidcEntryDocumentStoreDirective, decorators: [{
|
|
1406
1433
|
type: Directive,
|
|
1407
1434
|
args: [{
|
|
1408
1435
|
selector: '[dbxOidcEntryDocument]',
|
|
@@ -1459,5 +1486,5 @@ function provideDbxFirebaseOidc(config) {
|
|
|
1459
1486
|
* Generated bundle index. Do not edit.
|
|
1460
1487
|
*/
|
|
1461
1488
|
|
|
1462
|
-
export { AbstractDbxFirebaseOAuthConsentScopeViewComponent, DEFAULT_OIDC_AUTHORIZATION_ENDPOINT_PATH, DEFAULT_OIDC_CLIENT_ID_PARAM_KEY, DEFAULT_OIDC_CLIENT_NAME_PARAM_KEY, DEFAULT_OIDC_CLIENT_URI_PARAM_KEY, DEFAULT_OIDC_INTERACTION_ENDPOINT_PATH, DEFAULT_OIDC_INTERACTION_UID_PARAM_KEY, DEFAULT_OIDC_LOGO_URI_PARAM_KEY, DEFAULT_OIDC_SCOPES_PARAM_KEY, DEFAULT_OIDC_TOKEN_ENDPOINT_AUTH_METHODS, DbxFirebaseOAuthConsentScopeDefaultViewComponent, DbxFirebaseOAuthConsentScopeListComponent, DbxFirebaseOAuthConsentViewComponent, DbxFirebaseOAuthLoginComponent, DbxFirebaseOAuthLoginViewComponent, DbxFirebaseOidcConfig, DbxFirebaseOidcConfigService, DbxFirebaseOidcEntryClientCreateComponent,
|
|
1489
|
+
export { AbstractDbxFirebaseOAuthConsentScopeViewComponent, DEFAULT_OIDC_AUTHORIZATION_ENDPOINT_PATH, DEFAULT_OIDC_CLIENT_ID_PARAM_KEY, DEFAULT_OIDC_CLIENT_NAME_PARAM_KEY, DEFAULT_OIDC_CLIENT_URI_PARAM_KEY, DEFAULT_OIDC_INTERACTION_ENDPOINT_PATH, DEFAULT_OIDC_INTERACTION_UID_PARAM_KEY, DEFAULT_OIDC_LOGO_URI_PARAM_KEY, DEFAULT_OIDC_SCOPES_PARAM_KEY, DEFAULT_OIDC_TOKEN_ENDPOINT_AUTH_METHODS, DbxFirebaseOAuthConsentScopeDefaultViewComponent, DbxFirebaseOAuthConsentScopeListComponent, DbxFirebaseOAuthConsentViewComponent, DbxFirebaseOAuthLoginComponent, DbxFirebaseOAuthLoginViewComponent, DbxFirebaseOidcConfig, DbxFirebaseOidcConfigService, DbxFirebaseOidcEntryClientCreateComponent, DbxFirebaseOidcEntryClientForgeFormComponent, DbxFirebaseOidcEntryClientListComponent, DbxFirebaseOidcEntryClientListViewComponent, DbxFirebaseOidcEntryClientListViewItemClientComponent, DbxFirebaseOidcEntryClientListViewItemComponent, DbxFirebaseOidcEntryClientListViewItemDefaultComponent, DbxFirebaseOidcEntryClientTestComponent, DbxFirebaseOidcEntryClientTestForgeFormComponent, DbxFirebaseOidcEntryClientUpdateComponent, DbxFirebaseOidcEntryClientViewComponent, DbxFirebaseOidcInteractionService, DbxOAuthConsentComponent, OidcEntryCollectionStore, OidcEntryCollectionStoreDirective, OidcEntryDocumentStore, OidcEntryDocumentStoreDirective, generatePkceCodeChallenge, generatePkceCodeVerifier, oidcClientHomepageUriForgeField, oidcClientJwksUriForgeField, oidcClientLogoUriForgeField, oidcClientNameForgeField, oidcClientRedirectUrisForgeField, oidcClientTestClientIdForgeField, oidcClientTestRedirectUriForgeField, oidcClientTestScopesForgeField, oidcClientTokenEndpointAuthMethodForgeField, oidcEntryClientForgeFormFields, oidcEntryClientTestForgeFormFields, oidcEntryClientUpdateForgeFormFields, provideDbxFirebaseOidc, provideOidcModelFirestoreCollections };
|
|
1463
1490
|
//# sourceMappingURL=dereekb-dbx-firebase-oidc.mjs.map
|