@dereekb/dbx-firebase 13.7.0 → 13.8.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 +181 -158
- package/fesm2022/dereekb-dbx-firebase-oidc.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-firebase.mjs +800 -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 { forgeValueSelectionField, forgeTextField, forgeSearchableStringChipField, isWebsiteUrlValidator, forgeGroup, forgePickableChipField, 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,31 +638,31 @@ 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 forgeValueSelectionField({
|
|
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.',
|
|
@@ -671,22 +671,22 @@ function oidcClientTokenEndpointAuthMethodField(config) {
|
|
|
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 forgeTextField({
|
|
690
690
|
key: 'client_name',
|
|
691
691
|
label: 'Client Name',
|
|
692
692
|
description: 'A human-readable name for this OAuth client.',
|
|
@@ -695,12 +695,12 @@ function oidcClientNameField() {
|
|
|
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 forgeSearchableStringChipField({
|
|
704
704
|
key: 'redirect_uris',
|
|
705
705
|
label: 'Redirect URIs',
|
|
706
706
|
description: 'Type a redirect URI (e.g. https://example.com/callback) and press enter to add it.',
|
|
@@ -712,28 +712,41 @@ function oidcClientRedirectUrisField() {
|
|
|
712
712
|
});
|
|
713
713
|
}
|
|
714
714
|
/**
|
|
715
|
-
* Creates a
|
|
715
|
+
* Creates a forge group containing the JWKS URI field, conditionally hidden
|
|
716
|
+
* when the token endpoint auth method is not `private_key_jwt`.
|
|
716
717
|
*
|
|
717
|
-
* @returns A
|
|
718
|
+
* @returns A forge group field with conditional visibility logic.
|
|
718
719
|
*/
|
|
719
|
-
function
|
|
720
|
-
return
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
720
|
+
function oidcClientJwksUriForgeField() {
|
|
721
|
+
return forgeGroup({
|
|
722
|
+
fields: [
|
|
723
|
+
forgeTextField({
|
|
724
|
+
key: 'jwks_uri',
|
|
725
|
+
label: 'JWKS URI',
|
|
726
|
+
description: "URL where the client's public JSON Web Key Set can be fetched. Required for private_key_jwt authentication.",
|
|
727
|
+
required: true
|
|
728
|
+
})
|
|
729
|
+
],
|
|
730
|
+
logic: [
|
|
731
|
+
{
|
|
732
|
+
type: 'hidden',
|
|
733
|
+
condition: {
|
|
734
|
+
type: 'fieldValue',
|
|
735
|
+
fieldPath: 'token_endpoint_auth_method',
|
|
736
|
+
operator: 'notEquals',
|
|
737
|
+
value: PRIVATE_KEY_JWT_TOKEN_ENDPOINT_AUTH_METHOD
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
]
|
|
728
741
|
});
|
|
729
742
|
}
|
|
730
743
|
/**
|
|
731
|
-
* Creates a text field for the optional client logo URL.
|
|
744
|
+
* Creates a forge text field for the optional client logo URL.
|
|
732
745
|
*
|
|
733
|
-
* @returns A
|
|
746
|
+
* @returns A forge text field for the logo URI.
|
|
734
747
|
*/
|
|
735
|
-
function
|
|
736
|
-
return
|
|
748
|
+
function oidcClientLogoUriForgeField() {
|
|
749
|
+
return forgeTextField({
|
|
737
750
|
key: 'logo_uri',
|
|
738
751
|
label: 'Logo URI',
|
|
739
752
|
description: 'URL of the client logo image (optional).',
|
|
@@ -741,12 +754,12 @@ function oidcClientLogoUriField() {
|
|
|
741
754
|
});
|
|
742
755
|
}
|
|
743
756
|
/**
|
|
744
|
-
* Creates a text field for the optional client homepage URL.
|
|
757
|
+
* Creates a forge text field for the optional client homepage URL.
|
|
745
758
|
*
|
|
746
|
-
* @returns A
|
|
759
|
+
* @returns A forge text field for the homepage URL.
|
|
747
760
|
*/
|
|
748
|
-
function
|
|
749
|
-
return
|
|
761
|
+
function oidcClientHomepageUriForgeField() {
|
|
762
|
+
return forgeTextField({
|
|
750
763
|
key: 'client_uri',
|
|
751
764
|
label: 'Homepage URL',
|
|
752
765
|
description: 'URL of the client homepage (optional).',
|
|
@@ -754,35 +767,35 @@ function oidcClientHomepageUriField() {
|
|
|
754
767
|
});
|
|
755
768
|
}
|
|
756
769
|
/**
|
|
757
|
-
* Assembles the form fields for the OAuth test client form.
|
|
770
|
+
* Assembles the forge form fields for the OAuth test client form.
|
|
758
771
|
*
|
|
759
772
|
* @param config - Configuration providing available redirect URIs and scopes for the test form.
|
|
760
|
-
* @returns
|
|
773
|
+
* @returns A FormConfig for the test client form.
|
|
761
774
|
*/
|
|
762
|
-
function
|
|
763
|
-
return [
|
|
775
|
+
function oidcEntryClientTestForgeFormFields(config) {
|
|
776
|
+
return { fields: [oidcClientTestClientIdForgeField(), oidcClientTestRedirectUriForgeField(config.redirectUris), oidcClientTestScopesForgeField(config.availableScopes)] };
|
|
764
777
|
}
|
|
765
778
|
/**
|
|
766
|
-
* Creates a read-only text field displaying the OAuth client ID.
|
|
779
|
+
* Creates a read-only forge text field displaying the OAuth client ID.
|
|
767
780
|
*
|
|
768
|
-
* @returns A
|
|
781
|
+
* @returns A read-only forge text field for the client ID.
|
|
769
782
|
*/
|
|
770
|
-
function
|
|
771
|
-
return
|
|
783
|
+
function oidcClientTestClientIdForgeField() {
|
|
784
|
+
return forgeTextField({
|
|
772
785
|
key: 'client_id',
|
|
773
786
|
label: 'Client ID',
|
|
774
787
|
readonly: true
|
|
775
788
|
});
|
|
776
789
|
}
|
|
777
790
|
/**
|
|
778
|
-
* Creates a selection field for choosing one of the client's registered redirect URIs for testing.
|
|
791
|
+
* Creates a forge selection field for choosing one of the client's registered redirect URIs for testing.
|
|
779
792
|
*
|
|
780
793
|
* @param redirectUris - The registered redirect URIs to display as options.
|
|
781
|
-
* @returns A
|
|
794
|
+
* @returns A forge selection field for the redirect URI.
|
|
782
795
|
*/
|
|
783
|
-
function
|
|
796
|
+
function oidcClientTestRedirectUriForgeField(redirectUris) {
|
|
784
797
|
const options = redirectUris.map((uri) => ({ label: uri, value: uri }));
|
|
785
|
-
return
|
|
798
|
+
return forgeValueSelectionField({
|
|
786
799
|
key: 'redirect_uri',
|
|
787
800
|
label: 'Redirect URI',
|
|
788
801
|
description: 'Select the redirect URI to use for the test flow.',
|
|
@@ -791,13 +804,13 @@ function oidcClientTestRedirectUriField(redirectUris) {
|
|
|
791
804
|
});
|
|
792
805
|
}
|
|
793
806
|
/**
|
|
794
|
-
* Creates a pickable chip field for selecting scopes to request during the test flow.
|
|
807
|
+
* Creates a forge pickable chip field for selecting scopes to request during the test flow.
|
|
795
808
|
*
|
|
796
809
|
* @param availableScopes - The available scopes to display as selectable options.
|
|
797
|
-
* @returns A
|
|
810
|
+
* @returns A forge pickable chip field for scope selection.
|
|
798
811
|
*/
|
|
799
|
-
function
|
|
800
|
-
return
|
|
812
|
+
function oidcClientTestScopesForgeField(availableScopes) {
|
|
813
|
+
return forgePickableChipField({
|
|
801
814
|
key: 'scopes',
|
|
802
815
|
label: 'Scopes',
|
|
803
816
|
description: 'Select the scopes to request.',
|
|
@@ -807,51 +820,61 @@ function oidcClientTestScopesField(availableScopes) {
|
|
|
807
820
|
}
|
|
808
821
|
|
|
809
822
|
/**
|
|
810
|
-
* Configurable form component for creating or updating an OAuth client.
|
|
823
|
+
* Configurable forge form component for creating or updating an OAuth client.
|
|
811
824
|
*
|
|
812
825
|
* Pass `{ mode: 'create' }` to show all fields including `token_endpoint_auth_method`.
|
|
813
826
|
* Pass `{ mode: 'update' }` to exclude `token_endpoint_auth_method` (immutable after creation).
|
|
814
827
|
*
|
|
815
828
|
* Token endpoint auth methods are pulled from the injected {@link DbxFirebaseOidcConfigService}.
|
|
816
829
|
*/
|
|
817
|
-
class
|
|
830
|
+
class DbxFirebaseOidcEntryClientForgeFormComponent extends AbstractConfigAsyncForgeFormDirective {
|
|
818
831
|
_oidcConfigService = inject(DbxFirebaseOidcConfigService);
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
832
|
+
config$ = this.currentConfig$.pipe(map((config) => {
|
|
833
|
+
if (!config) {
|
|
834
|
+
return undefined;
|
|
835
|
+
}
|
|
836
|
+
return oidcEntryClientForgeFormFields({
|
|
837
|
+
...config,
|
|
838
|
+
tokenEndpointAuthMethods: this._oidcConfigService.tokenEndpointAuthMethods
|
|
839
|
+
});
|
|
840
|
+
}));
|
|
841
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientForgeFormComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
842
|
+
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
843
|
}
|
|
826
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
844
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientForgeFormComponent, decorators: [{
|
|
827
845
|
type: Component,
|
|
828
846
|
args: [{
|
|
829
|
-
selector: 'dbx-firebase-oidc-client-form',
|
|
830
|
-
template:
|
|
831
|
-
providers:
|
|
832
|
-
imports: [
|
|
847
|
+
selector: 'dbx-firebase-oidc-client-forge-form',
|
|
848
|
+
template: DBX_FORGE_FORM_COMPONENT_TEMPLATE,
|
|
849
|
+
providers: dbxForgeFormComponentProviders(),
|
|
850
|
+
imports: [DbxForgeFormComponentImportsModule],
|
|
833
851
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
834
852
|
standalone: true
|
|
835
853
|
}]
|
|
836
854
|
}] });
|
|
837
855
|
|
|
838
856
|
/**
|
|
839
|
-
*
|
|
857
|
+
* Forge form component for configuring an OAuth test authorization request.
|
|
840
858
|
*
|
|
841
|
-
* Displays read-only client_id
|
|
859
|
+
* Displays read-only client_id, a redirect URI selector, and scope picker.
|
|
842
860
|
*/
|
|
843
|
-
class
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
861
|
+
class DbxFirebaseOidcEntryClientTestForgeFormComponent extends AbstractConfigAsyncForgeFormDirective {
|
|
862
|
+
config$ = this.currentConfig$.pipe(map((config) => {
|
|
863
|
+
if (!config) {
|
|
864
|
+
return undefined;
|
|
865
|
+
}
|
|
866
|
+
return oidcEntryClientTestForgeFormFields(config);
|
|
867
|
+
}));
|
|
868
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientTestForgeFormComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
869
|
+
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
870
|
}
|
|
848
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
871
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientTestForgeFormComponent, decorators: [{
|
|
849
872
|
type: Component,
|
|
850
873
|
args: [{
|
|
851
|
-
selector: 'dbx-firebase-oidc-client-test-form',
|
|
852
|
-
template:
|
|
853
|
-
providers:
|
|
854
|
-
imports: [
|
|
874
|
+
selector: 'dbx-firebase-oidc-client-test-forge-form',
|
|
875
|
+
template: DBX_FORGE_FORM_COMPONENT_TEMPLATE,
|
|
876
|
+
providers: dbxForgeFormComponentProviders(),
|
|
877
|
+
imports: [DbxForgeFormComponentImportsModule],
|
|
855
878
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
856
879
|
standalone: true
|
|
857
880
|
}]
|
|
@@ -864,10 +887,10 @@ class DbxFirebaseOidcEntryClientListComponent extends AbstractDbxSelectionListWr
|
|
|
864
887
|
defaultSelectionMode: 'view'
|
|
865
888
|
});
|
|
866
889
|
}
|
|
867
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
868
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
890
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
891
|
+
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]=\"disabled()\" [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
892
|
}
|
|
870
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
893
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientListComponent, decorators: [{
|
|
871
894
|
type: Component,
|
|
872
895
|
args: [{
|
|
873
896
|
selector: 'dbx-firebase-oidc-client-list',
|
|
@@ -882,10 +905,10 @@ class DbxFirebaseOidcEntryClientListViewComponent extends AbstractDbxSelectionLi
|
|
|
882
905
|
componentClass: DbxFirebaseOidcEntryClientListViewItemComponent,
|
|
883
906
|
mapValuesToItemValues: (x) => of(x.map((y, i) => ({ ...y, key: `oidc_${i}`, itemValue: y })))
|
|
884
907
|
};
|
|
885
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
886
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
908
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientListViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
909
|
+
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
910
|
}
|
|
888
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
911
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientListViewComponent, decorators: [{
|
|
889
912
|
type: Component,
|
|
890
913
|
args: [{
|
|
891
914
|
selector: 'dbx-firebase-oidc-client-list-view',
|
|
@@ -906,15 +929,15 @@ class DbxFirebaseOidcEntryClientListViewItemClientComponent {
|
|
|
906
929
|
const payload = this.entry().payload;
|
|
907
930
|
return payload?.client_id || '';
|
|
908
931
|
}
|
|
909
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
910
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.
|
|
932
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientListViewItemClientComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
933
|
+
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
934
|
<div>
|
|
912
935
|
<p>{{ name }}</p>
|
|
913
936
|
<p class="dbx-hint">{{ clientId }}</p>
|
|
914
937
|
</div>
|
|
915
938
|
`, isInline: true });
|
|
916
939
|
}
|
|
917
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
940
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientListViewItemClientComponent, decorators: [{
|
|
918
941
|
type: Component,
|
|
919
942
|
args: [{
|
|
920
943
|
selector: 'dbx-firebase-oidc-client-list-view-item-client',
|
|
@@ -929,14 +952,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImpor
|
|
|
929
952
|
}], propDecorators: { entry: [{ type: i0.Input, args: [{ isSignal: true, alias: "entry", required: true }] }] } });
|
|
930
953
|
class DbxFirebaseOidcEntryClientListViewItemDefaultComponent {
|
|
931
954
|
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.
|
|
955
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientListViewItemDefaultComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
956
|
+
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
957
|
<div>
|
|
935
958
|
<p>{{ entry().type }}</p>
|
|
936
959
|
</div>
|
|
937
960
|
`, isInline: true });
|
|
938
961
|
}
|
|
939
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
962
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientListViewItemDefaultComponent, decorators: [{
|
|
940
963
|
type: Component,
|
|
941
964
|
args: [{
|
|
942
965
|
selector: 'dbx-firebase-oidc-client-list-view-item-default',
|
|
@@ -950,8 +973,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImpor
|
|
|
950
973
|
}], propDecorators: { entry: [{ type: i0.Input, args: [{ isSignal: true, alias: "entry", required: true }] }] } });
|
|
951
974
|
class DbxFirebaseOidcEntryClientListViewItemComponent extends AbstractDbxValueListViewItemComponent {
|
|
952
975
|
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.
|
|
976
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientListViewItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
977
|
+
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
978
|
@switch (itemValue.type) {
|
|
956
979
|
@case (clientType) {
|
|
957
980
|
<dbx-firebase-oidc-client-list-view-item-client [entry]="itemValue"></dbx-firebase-oidc-client-list-view-item-client>
|
|
@@ -962,7 +985,7 @@ class DbxFirebaseOidcEntryClientListViewItemComponent extends AbstractDbxValueLi
|
|
|
962
985
|
}
|
|
963
986
|
`, 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
987
|
}
|
|
965
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
988
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientListViewItemComponent, decorators: [{
|
|
966
989
|
type: Component,
|
|
967
990
|
args: [{
|
|
968
991
|
template: `
|
|
@@ -1010,10 +1033,10 @@ class OidcEntryDocumentStore extends AbstractDbxFirebaseDocumentStore {
|
|
|
1010
1033
|
}
|
|
1011
1034
|
});
|
|
1012
1035
|
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.
|
|
1036
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OidcEntryDocumentStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1037
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OidcEntryDocumentStore });
|
|
1015
1038
|
}
|
|
1016
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1039
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OidcEntryDocumentStore, decorators: [{
|
|
1017
1040
|
type: Injectable
|
|
1018
1041
|
}], ctorParameters: () => [] });
|
|
1019
1042
|
|
|
@@ -1040,26 +1063,26 @@ class DbxFirebaseOidcEntryClientCreateComponent {
|
|
|
1040
1063
|
}
|
|
1041
1064
|
})));
|
|
1042
1065
|
};
|
|
1043
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1044
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.
|
|
1066
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientCreateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1067
|
+
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
1068
|
<div dbxAction dbxActionEnforceModified [dbxActionHandler]="handleCreateClient" dbxActionSnackbarError>
|
|
1046
|
-
<dbx-firebase-oidc-client-form dbxActionForm [config]="formConfig"></dbx-firebase-oidc-client-form>
|
|
1069
|
+
<dbx-firebase-oidc-client-forge-form dbxActionForm [config]="formConfig"></dbx-firebase-oidc-client-forge-form>
|
|
1047
1070
|
<dbx-button [raised]="true" dbxActionButton text="Create"></dbx-button>
|
|
1048
1071
|
</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:
|
|
1072
|
+
`, 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
1073
|
}
|
|
1051
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1074
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientCreateComponent, decorators: [{
|
|
1052
1075
|
type: Component,
|
|
1053
1076
|
args: [{
|
|
1054
1077
|
selector: 'dbx-firebase-oidc-entry-client-create',
|
|
1055
1078
|
template: `
|
|
1056
1079
|
<div dbxAction dbxActionEnforceModified [dbxActionHandler]="handleCreateClient" dbxActionSnackbarError>
|
|
1057
|
-
<dbx-firebase-oidc-client-form dbxActionForm [config]="formConfig"></dbx-firebase-oidc-client-form>
|
|
1080
|
+
<dbx-firebase-oidc-client-forge-form dbxActionForm [config]="formConfig"></dbx-firebase-oidc-client-forge-form>
|
|
1058
1081
|
<dbx-button [raised]="true" dbxActionButton text="Create"></dbx-button>
|
|
1059
1082
|
</div>
|
|
1060
1083
|
`,
|
|
1061
1084
|
standalone: true,
|
|
1062
|
-
imports: [DbxActionSnackbarErrorDirective, DbxActionDirective, DbxActionEnforceModifiedDirective, DbxActionHandlerDirective, DbxActionFormDirective, DbxButtonComponent, DbxActionButtonDirective,
|
|
1085
|
+
imports: [DbxActionSnackbarErrorDirective, DbxActionDirective, DbxActionEnforceModifiedDirective, DbxActionHandlerDirective, DbxActionFormDirective, DbxButtonComponent, DbxActionButtonDirective, DbxFirebaseOidcEntryClientForgeFormComponent],
|
|
1063
1086
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1064
1087
|
}]
|
|
1065
1088
|
}], propDecorators: { createClientOwnerTarget: [{ type: i0.Input, args: [{ isSignal: true, alias: "createClientOwnerTarget", required: false }] }], clientCreated: [{ type: i0.Output, args: ["clientCreated"] }] } });
|
|
@@ -1184,10 +1207,10 @@ class DbxFirebaseOidcEntryClientTestComponent {
|
|
|
1184
1207
|
this.codeChallenge.set(challenge);
|
|
1185
1208
|
});
|
|
1186
1209
|
}
|
|
1187
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1188
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
1210
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientTestComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1211
|
+
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
1212
|
@if (formConfig()) {
|
|
1190
|
-
<dbx-firebase-oidc-client-test-form [dbxFormSource]="formTemplate$" dbxFormSourceMode="always" [config]="formConfig()" (dbxFormValueChange)="onFormValueChange($event)"></dbx-firebase-oidc-client-test-form>
|
|
1213
|
+
<dbx-firebase-oidc-client-test-forge-form [dbxFormSource]="formTemplate$" dbxFormSourceMode="always" [config]="formConfig()" (dbxFormValueChange)="onFormValueChange($event)"></dbx-firebase-oidc-client-test-forge-form>
|
|
1191
1214
|
<dbx-content-pit class="dbx-block dbx-mb3" [rounded]="true">
|
|
1192
1215
|
<dbx-detail-block class="dbx-pb4" icon="link" header="Authorization URL">
|
|
1193
1216
|
@if (authorizationUrlSignal()) {
|
|
@@ -1207,15 +1230,15 @@ class DbxFirebaseOidcEntryClientTestComponent {
|
|
|
1207
1230
|
<dbx-button class="dbx-ml2" text="Regenerate PKCE" icon="refresh" (buttonClick)="regeneratePkce()"></dbx-button>
|
|
1208
1231
|
</div>
|
|
1209
1232
|
}
|
|
1210
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type:
|
|
1233
|
+
`, 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
1234
|
}
|
|
1212
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1235
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientTestComponent, decorators: [{
|
|
1213
1236
|
type: Component,
|
|
1214
1237
|
args: [{
|
|
1215
1238
|
selector: 'dbx-firebase-oidc-entry-client-test',
|
|
1216
1239
|
template: `
|
|
1217
1240
|
@if (formConfig()) {
|
|
1218
|
-
<dbx-firebase-oidc-client-test-form [dbxFormSource]="formTemplate$" dbxFormSourceMode="always" [config]="formConfig()" (dbxFormValueChange)="onFormValueChange($event)"></dbx-firebase-oidc-client-test-form>
|
|
1241
|
+
<dbx-firebase-oidc-client-test-forge-form [dbxFormSource]="formTemplate$" dbxFormSourceMode="always" [config]="formConfig()" (dbxFormValueChange)="onFormValueChange($event)"></dbx-firebase-oidc-client-test-forge-form>
|
|
1219
1242
|
<dbx-content-pit class="dbx-block dbx-mb3" [rounded]="true">
|
|
1220
1243
|
<dbx-detail-block class="dbx-pb4" icon="link" header="Authorization URL">
|
|
1221
1244
|
@if (authorizationUrlSignal()) {
|
|
@@ -1237,7 +1260,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImpor
|
|
|
1237
1260
|
}
|
|
1238
1261
|
`,
|
|
1239
1262
|
standalone: true,
|
|
1240
|
-
imports: [CommonModule,
|
|
1263
|
+
imports: [CommonModule, DbxFirebaseOidcEntryClientTestForgeFormComponent, DbxFormSourceDirective, DbxFormValueChangeDirective, DbxContentPitDirective, DbxDetailBlockComponent, DbxClickToCopyTextComponent, DbxButtonComponent],
|
|
1241
1264
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1242
1265
|
}]
|
|
1243
1266
|
}], 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 +1292,26 @@ class DbxFirebaseOidcEntryClientUpdateComponent {
|
|
|
1269
1292
|
const params = value;
|
|
1270
1293
|
context.startWorkingWithLoadingStateObservable(this.oidcEntryDocumentStore.updateClient(params));
|
|
1271
1294
|
};
|
|
1272
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1273
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
1295
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientUpdateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1296
|
+
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
1297
|
<div dbxAction dbxActionEnforceModified [dbxActionHandler]="handleUpdateClient" dbxActionSnackbarError>
|
|
1275
|
-
<dbx-firebase-oidc-client-form dbxActionForm [dbxFormSource]="formTemplate$" [config]="formConfig"></dbx-firebase-oidc-client-form>
|
|
1298
|
+
<dbx-firebase-oidc-client-forge-form dbxActionForm [dbxFormSource]="formTemplate$" [config]="formConfig"></dbx-firebase-oidc-client-forge-form>
|
|
1276
1299
|
<dbx-button [raised]="true" dbxActionButton text="Save"></dbx-button>
|
|
1277
1300
|
</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:
|
|
1301
|
+
`, 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
1302
|
}
|
|
1280
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1303
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientUpdateComponent, decorators: [{
|
|
1281
1304
|
type: Component,
|
|
1282
1305
|
args: [{
|
|
1283
1306
|
selector: 'dbx-firebase-oidc-entry-client-update',
|
|
1284
1307
|
template: `
|
|
1285
1308
|
<div dbxAction dbxActionEnforceModified [dbxActionHandler]="handleUpdateClient" dbxActionSnackbarError>
|
|
1286
|
-
<dbx-firebase-oidc-client-form dbxActionForm [dbxFormSource]="formTemplate$" [config]="formConfig"></dbx-firebase-oidc-client-form>
|
|
1309
|
+
<dbx-firebase-oidc-client-forge-form dbxActionForm [dbxFormSource]="formTemplate$" [config]="formConfig"></dbx-firebase-oidc-client-forge-form>
|
|
1287
1310
|
<dbx-button [raised]="true" dbxActionButton text="Save"></dbx-button>
|
|
1288
1311
|
</div>
|
|
1289
1312
|
`,
|
|
1290
1313
|
standalone: true,
|
|
1291
|
-
imports: [DbxActionSnackbarErrorDirective, DbxActionDirective, DbxActionEnforceModifiedDirective, DbxActionHandlerDirective, DbxActionFormDirective, DbxFormSourceDirective, DbxButtonComponent, DbxActionButtonDirective,
|
|
1314
|
+
imports: [DbxActionSnackbarErrorDirective, DbxActionDirective, DbxActionEnforceModifiedDirective, DbxActionHandlerDirective, DbxActionFormDirective, DbxFormSourceDirective, DbxButtonComponent, DbxActionButtonDirective, DbxFirebaseOidcEntryClientForgeFormComponent],
|
|
1292
1315
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1293
1316
|
}]
|
|
1294
1317
|
}] });
|
|
@@ -1311,8 +1334,8 @@ class DbxFirebaseOidcEntryClientViewComponent {
|
|
|
1311
1334
|
handleRotateClientSecret = (_, context) => {
|
|
1312
1335
|
context.startWorkingWithLoadingStateObservable(this.oidcEntryDocumentStore.rotateClientSecret({}));
|
|
1313
1336
|
};
|
|
1314
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1315
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
1337
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1338
|
+
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
1339
|
<dbx-content-pit [rounded]="true">
|
|
1317
1340
|
<dbx-detail-block class="dbx-pb4" icon="key" header="Client ID">
|
|
1318
1341
|
<dbx-click-to-copy-text [copyText]="clientIdSignal()">{{ clientIdSignal() }}</dbx-click-to-copy-text>
|
|
@@ -1331,7 +1354,7 @@ class DbxFirebaseOidcEntryClientViewComponent {
|
|
|
1331
1354
|
</dbx-content-pit>
|
|
1332
1355
|
`, 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
1356
|
}
|
|
1334
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1357
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseOidcEntryClientViewComponent, decorators: [{
|
|
1335
1358
|
type: Component,
|
|
1336
1359
|
args: [{
|
|
1337
1360
|
selector: 'dbx-firebase-oidc-entry-client-view',
|
|
@@ -1366,10 +1389,10 @@ class OidcEntryCollectionStore extends AbstractDbxFirebaseCollectionStore {
|
|
|
1366
1389
|
constructor() {
|
|
1367
1390
|
super({ firestoreCollection: inject(OidcModelFirestoreCollections).oidcEntryCollection });
|
|
1368
1391
|
}
|
|
1369
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1370
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
1392
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OidcEntryCollectionStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1393
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OidcEntryCollectionStore });
|
|
1371
1394
|
}
|
|
1372
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1395
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OidcEntryCollectionStore, decorators: [{
|
|
1373
1396
|
type: Injectable
|
|
1374
1397
|
}], ctorParameters: () => [] });
|
|
1375
1398
|
|
|
@@ -1380,10 +1403,10 @@ class OidcEntryCollectionStoreDirective extends DbxFirebaseCollectionStoreDirect
|
|
|
1380
1403
|
constructor() {
|
|
1381
1404
|
super(inject(OidcEntryCollectionStore));
|
|
1382
1405
|
}
|
|
1383
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1384
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
1406
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OidcEntryCollectionStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1407
|
+
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
1408
|
}
|
|
1386
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1409
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OidcEntryCollectionStoreDirective, decorators: [{
|
|
1387
1410
|
type: Directive,
|
|
1388
1411
|
args: [{
|
|
1389
1412
|
selector: '[dbxOidcEntryCollection]',
|
|
@@ -1399,10 +1422,10 @@ class OidcEntryDocumentStoreDirective extends DbxFirebaseDocumentStoreDirective
|
|
|
1399
1422
|
constructor() {
|
|
1400
1423
|
super(inject(OidcEntryDocumentStore));
|
|
1401
1424
|
}
|
|
1402
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1403
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
1425
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OidcEntryDocumentStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1426
|
+
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
1427
|
}
|
|
1405
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1428
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OidcEntryDocumentStoreDirective, decorators: [{
|
|
1406
1429
|
type: Directive,
|
|
1407
1430
|
args: [{
|
|
1408
1431
|
selector: '[dbxOidcEntryDocument]',
|
|
@@ -1459,5 +1482,5 @@ function provideDbxFirebaseOidc(config) {
|
|
|
1459
1482
|
* Generated bundle index. Do not edit.
|
|
1460
1483
|
*/
|
|
1461
1484
|
|
|
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,
|
|
1485
|
+
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
1486
|
//# sourceMappingURL=dereekb-dbx-firebase-oidc.mjs.map
|