...
|
...
|
@@ -19,7 +19,7 @@ |
19
|
19
|
<mat-card class="settings-card">
|
20
|
20
|
<mat-card-title>
|
21
|
21
|
<div fxLayout="row">
|
22
|
|
- <span class="mat-headline" translate>admin.oauth2.settings</span>
|
|
22
|
+ <span class="mat-headline" translate>admin.oauth2.oauth2</span>
|
23
|
23
|
<span fxFlex></span>
|
24
|
24
|
<div tb-help="oauth2Settings"></div>
|
25
|
25
|
</div>
|
...
|
...
|
@@ -91,7 +91,7 @@ |
91
|
91
|
<ng-template matExpansionPanelContent>
|
92
|
92
|
<section [formGroupName]="j">
|
93
|
93
|
<mat-form-field fxFlex class="mat-block">
|
94
|
|
- <mat-label translate>Login Provider</mat-label>
|
|
94
|
+ <mat-label translate>admin.oauth2.login-provider</mat-label>
|
95
|
95
|
<mat-select formControlName="providerName">
|
96
|
96
|
<mat-option *ngFor="let provider of templateProvider" [value]="provider">
|
97
|
97
|
{{ provider | uppercase }}
|
...
|
...
|
@@ -117,223 +117,254 @@ |
117
|
117
|
</mat-form-field>
|
118
|
118
|
</div>
|
119
|
119
|
|
120
|
|
- <mat-tab-group dynamicHeight>
|
121
|
|
- <mat-tab label="General">
|
122
|
|
- <div fxLayout="row" fxLayout.xs="column" fxLayoutGap.gt-xs="8px" style="margin-top: 16px;">
|
123
|
|
- <mat-form-field fxFlex class="mat-block">
|
124
|
|
- <mat-label translate>admin.oauth2.access-token-uri</mat-label>
|
125
|
|
- <input matInput formControlName="accessTokenUri" required>
|
126
|
|
- <mat-error *ngIf="registration.get('accessTokenUri').hasError('required')">
|
127
|
|
- {{ 'admin.oauth2.access-token-uri-required' | translate }}
|
128
|
|
- </mat-error>
|
129
|
|
- <mat-error *ngIf="registration.get('accessTokenUri').hasError('pattern')">
|
130
|
|
- {{ 'admin.oauth2.uri-pattern-error' | translate }}
|
131
|
|
- </mat-error>
|
132
|
|
- </mat-form-field>
|
133
|
|
-
|
134
|
|
- <mat-form-field fxFlex class="mat-block">
|
135
|
|
- <mat-label translate>admin.oauth2.authorization-uri</mat-label>
|
136
|
|
- <input matInput formControlName="authorizationUri" required>
|
137
|
|
- <mat-error *ngIf="registration.get('authorizationUri').hasError('required')">
|
138
|
|
- {{ 'admin.oauth2.authorization-uri-required' | translate }}
|
139
|
|
- </mat-error>
|
140
|
|
- <mat-error *ngIf="registration.get('authorizationUri').hasError('pattern')">
|
141
|
|
- {{ 'admin.oauth2.uri-pattern-error' | translate }}
|
142
|
|
- </mat-error>
|
143
|
|
- </mat-form-field>
|
144
|
|
- </div>
|
145
|
|
-
|
146
|
|
- <div fxLayout="row" fxLayout.xs="column" fxLayoutGap.gt-xs="8px">
|
147
|
|
- <mat-form-field fxFlex class="mat-block">
|
148
|
|
- <mat-label translate>admin.oauth2.jwk-set-uri</mat-label>
|
149
|
|
- <input matInput formControlName="jwkSetUri" required>
|
150
|
|
- <mat-error *ngIf="registration.get('jwkSetUri').hasError('required')">
|
151
|
|
- {{ 'admin.oauth2.jwk-set-uri-required' | translate }}
|
152
|
|
- </mat-error>
|
153
|
|
- <mat-error *ngIf="registration.get('jwkSetUri').hasError('pattern')">
|
154
|
|
- {{ 'admin.oauth2.uri-pattern-error' | translate }}
|
155
|
|
- </mat-error>
|
156
|
|
- </mat-form-field>
|
157
|
|
-
|
158
|
|
- <mat-form-field fxFlex class="mat-block">
|
159
|
|
- <mat-label translate>admin.oauth2.user-info-uri</mat-label>
|
160
|
|
- <input matInput formControlName="userInfoUri" required>
|
161
|
|
- <mat-error *ngIf="registration.get('userInfoUri').hasError('required')">
|
162
|
|
- {{ 'admin.oauth2.user-info-uri-required' | translate }}
|
163
|
|
- </mat-error>
|
164
|
|
- <mat-error *ngIf="registration.get('userInfoUri').hasError('pattern')">
|
165
|
|
- {{ 'admin.oauth2.uri-pattern-error' | translate }}
|
166
|
|
- </mat-error>
|
167
|
|
- </mat-form-field>
|
168
|
|
- </div>
|
169
|
|
-
|
170
|
|
- <mat-form-field fxFlex class="mat-block">
|
171
|
|
- <mat-label translate>admin.oauth2.client-authentication-method</mat-label>
|
172
|
|
- <mat-select formControlName="clientAuthenticationMethod">
|
173
|
|
- <mat-option *ngFor="let clientAuthenticationMethod of clientAuthenticationMethods"
|
174
|
|
- [value]="clientAuthenticationMethod">
|
175
|
|
- {{ clientAuthenticationMethod | uppercase }}
|
176
|
|
- </mat-option>
|
177
|
|
- </mat-select>
|
178
|
|
- </mat-form-field>
|
179
|
|
-
|
180
|
|
- <div fxLayout="row" fxLayout.xs="column" fxLayoutGap.gt-xs="8px" *ngIf="registration.get('providerName').value === 'Custom'">
|
181
|
|
- <mat-form-field fxFlex class="mat-block">
|
182
|
|
- <mat-label translate>admin.oauth2.login-button-label</mat-label>
|
183
|
|
- <input matInput formControlName="loginButtonLabel" required>
|
184
|
|
- <mat-error
|
185
|
|
- *ngIf="registration.get('loginButtonLabel').hasError('required')">
|
186
|
|
- {{ 'admin.oauth2.login-button-label-required' | translate }}
|
187
|
|
- </mat-error>
|
188
|
|
- </mat-form-field>
|
189
|
|
-
|
190
|
|
- <mat-form-field fxFlex class="mat-block">
|
191
|
|
- <mat-label translate>admin.oauth2.login-button-icon</mat-label>
|
192
|
|
- <input matInput formControlName="loginButtonIcon">
|
193
|
|
- </mat-form-field>
|
194
|
|
- </div>
|
195
|
|
-
|
196
|
|
- <mat-form-field fxFlex class="mat-block">
|
197
|
|
- <mat-label translate>admin.oauth2.scope</mat-label>
|
198
|
|
- <mat-chip-list #scopeList>
|
199
|
|
- <mat-chip *ngFor="let scope of registration.get('scope').value; let k = index;"
|
200
|
|
- removable (removed)="removeScope(k, registration)">
|
201
|
|
- {{scope}}
|
202
|
|
- <mat-icon matChipRemove>cancel</mat-icon>
|
203
|
|
- </mat-chip>
|
204
|
|
- <input [matChipInputFor]="scopeList"
|
205
|
|
- [matChipInputSeparatorKeyCodes]="separatorKeysCodes"
|
206
|
|
- matChipInputAddOnBlur
|
207
|
|
- (matChipInputTokenEnd)="addScope($event, registration)">
|
208
|
|
- </mat-chip-list>
|
209
|
|
- <mat-error *ngIf="registration.get('scope').hasError('required')">
|
210
|
|
- {{ 'admin.oauth2.jwk-set-uri-required' | translate }}
|
211
|
|
- </mat-error>
|
212
|
|
- </mat-form-field>
|
213
|
|
-
|
214
|
|
- </mat-tab>
|
215
|
|
- <mat-tab label="Mapper">
|
216
|
|
- <mat-form-field class="mat-block" style="margin-top: 16px;">
|
217
|
|
- <mat-label translate>admin.oauth2.user-name-attribute-name</mat-label>
|
218
|
|
- <input matInput formControlName="userNameAttributeName" required>
|
219
|
|
- <mat-error *ngIf="registration.get('userNameAttributeName').hasError('required')">
|
220
|
|
- {{ 'admin.oauth2.user-name-attribute-name-required' | translate }}
|
221
|
|
- </mat-error>
|
222
|
|
- </mat-form-field>
|
223
|
|
-
|
224
|
|
- <section formGroupName="mapperConfig">
|
225
|
|
- <div fxLayout="column" fxLayoutGap="8px">
|
226
|
|
- <mat-checkbox formControlName="allowUserCreation">
|
227
|
|
- {{ 'admin.oauth2.allow-user-creation' | translate }}
|
228
|
|
- </mat-checkbox>
|
229
|
|
- <mat-checkbox formControlName="activateUser">
|
230
|
|
- {{ 'admin.oauth2.activate-user' | translate }}
|
231
|
|
- </mat-checkbox>
|
232
|
|
- </div>
|
233
|
|
-
|
234
|
|
- <mat-form-field fxFlex class="mat-block">
|
235
|
|
- <mat-label translate>admin.oauth2.type</mat-label>
|
236
|
|
- <mat-select formControlName="type">
|
237
|
|
- <mat-option *ngFor="let converterTypeExternalUser of converterTypesExternalUser"
|
238
|
|
- [value]="converterTypeExternalUser">
|
239
|
|
- {{ converterTypeExternalUser }}
|
240
|
|
- </mat-option>
|
241
|
|
- </mat-select>
|
242
|
|
- </mat-form-field>
|
243
|
|
-
|
244
|
|
- <section formGroupName="basic"
|
245
|
|
- *ngIf="registration.get('mapperConfig.type').value === 'BASIC'">
|
246
|
|
- <mat-form-field class="mat-block">
|
247
|
|
- <mat-label translate>admin.oauth2.email-attribute-key</mat-label>
|
248
|
|
- <input matInput formControlName="emailAttributeKey" required>
|
249
|
|
- <mat-error
|
250
|
|
- *ngIf="registration.get('mapperConfig.basic.emailAttributeKey').hasError('required')">
|
251
|
|
- {{ 'admin.oauth2.email-attribute-key-required' | translate }}
|
252
|
|
- </mat-error>
|
253
|
|
- </mat-form-field>
|
254
|
|
-
|
255
|
|
- <div fxLayout="row" fxLayout.xs="column" fxLayoutGap.gt-xs="8px">
|
|
120
|
+ <mat-expansion-panel class="mat-elevation-z0 custom-settings"
|
|
121
|
+ [disabled]="registration.get('providerName').value === 'Custom'"
|
|
122
|
+ [expanded]="registration.get('providerName').value === 'Custom'">
|
|
123
|
+ <mat-expansion-panel-header [fxHide]="registration.get('providerName').value === 'Custom'">
|
|
124
|
+ <mat-panel-description fxLayoutAlign="end center">
|
|
125
|
+ {{ 'admin.oauth2.custom-setting' | translate }}
|
|
126
|
+ </mat-panel-description>
|
|
127
|
+ </mat-expansion-panel-header>
|
|
128
|
+ <ng-template matExpansionPanelContent>
|
|
129
|
+ <mat-tab-group dynamicHeight>
|
|
130
|
+ <mat-tab label="{{ 'admin.oauth2.general' | translate }}">
|
|
131
|
+ <div fxLayout="row" fxLayout.xs="column" fxLayoutGap.gt-xs="8px" style="margin-top: 16px;">
|
256
|
132
|
<mat-form-field fxFlex class="mat-block">
|
257
|
|
- <mat-label translate>admin.oauth2.first-name-attribute-key</mat-label>
|
258
|
|
- <input matInput formControlName="firstNameAttributeKey">
|
|
133
|
+ <mat-label translate>admin.oauth2.access-token-uri</mat-label>
|
|
134
|
+ <input matInput formControlName="accessTokenUri" required>
|
|
135
|
+ <button mat-icon-button matSuffix
|
|
136
|
+ type="button"
|
|
137
|
+ (click)="toggleEditMode(registration, 'accessTokenUri')"
|
|
138
|
+ *ngIf="registration.get('providerName').value !== 'Custom'">
|
|
139
|
+ <mat-icon class="material-icons">create</mat-icon>
|
|
140
|
+ </button>
|
|
141
|
+ <mat-error *ngIf="registration.get('accessTokenUri').hasError('required')">
|
|
142
|
+ {{ 'admin.oauth2.access-token-uri-required' | translate }}
|
|
143
|
+ </mat-error>
|
|
144
|
+ <mat-error *ngIf="registration.get('accessTokenUri').hasError('pattern')">
|
|
145
|
+ {{ 'admin.oauth2.uri-pattern-error' | translate }}
|
|
146
|
+ </mat-error>
|
259
|
147
|
</mat-form-field>
|
260
|
148
|
|
261
|
149
|
<mat-form-field fxFlex class="mat-block">
|
262
|
|
- <mat-label translate>admin.oauth2.last-name-attribute-key</mat-label>
|
263
|
|
- <input matInput formControlName="lastNameAttributeKey">
|
|
150
|
+ <mat-label translate>admin.oauth2.authorization-uri</mat-label>
|
|
151
|
+ <input matInput formControlName="authorizationUri" required>
|
|
152
|
+ <button mat-icon-button matSuffix
|
|
153
|
+ type="button"
|
|
154
|
+ (click)="toggleEditMode(registration, 'authorizationUri')"
|
|
155
|
+ *ngIf="registration.get('providerName').value !== 'Custom'">
|
|
156
|
+ <mat-icon class="material-icons">create</mat-icon>
|
|
157
|
+ </button>
|
|
158
|
+ <mat-error *ngIf="registration.get('authorizationUri').hasError('required')">
|
|
159
|
+ {{ 'admin.oauth2.authorization-uri-required' | translate }}
|
|
160
|
+ </mat-error>
|
|
161
|
+ <mat-error *ngIf="registration.get('authorizationUri').hasError('pattern')">
|
|
162
|
+ {{ 'admin.oauth2.uri-pattern-error' | translate }}
|
|
163
|
+ </mat-error>
|
264
|
164
|
</mat-form-field>
|
265
|
165
|
</div>
|
266
|
166
|
|
267
|
167
|
<div fxLayout="row" fxLayout.xs="column" fxLayoutGap.gt-xs="8px">
|
268
|
|
- <mat-form-field fxFlex class="mat-block">
|
269
|
|
- <mat-label translate>admin.oauth2.tenant-name-strategy</mat-label>
|
270
|
|
- <mat-select formControlName="tenantNameStrategy">
|
271
|
|
- <mat-option *ngFor="let tenantNameStrategy of tenantNameStrategies"
|
272
|
|
- [value]="tenantNameStrategy">
|
273
|
|
- {{ tenantNameStrategy }}
|
274
|
|
- </mat-option>
|
275
|
|
- </mat-select>
|
|
168
|
+ <mat-form-field fxFlex class="mat-block" appearance="legacy">
|
|
169
|
+ <mat-label translate>admin.oauth2.jwk-set-uri</mat-label>
|
|
170
|
+ <input matInput formControlName="jwkSetUri">
|
|
171
|
+ <button mat-icon-button matSuffix
|
|
172
|
+ type="button" aria-label="Clear"
|
|
173
|
+ (click)="toggleEditMode(registration, 'jwkSetUri')"
|
|
174
|
+ *ngIf="registration.get('providerName').value !== 'Custom'">
|
|
175
|
+ <mat-icon class="material-icons">create</mat-icon>
|
|
176
|
+ </button>
|
|
177
|
+ <mat-error *ngIf="registration.get('jwkSetUri').hasError('pattern')">
|
|
178
|
+ {{ 'admin.oauth2.uri-pattern-error' | translate }}
|
|
179
|
+ </mat-error>
|
276
|
180
|
</mat-form-field>
|
277
|
181
|
|
278
|
|
- <mat-form-field fxFlex class="mat-block" *ngIf="registration.get('mapperConfig.basic.tenantNameStrategy').value === 'CUSTOM'">
|
279
|
|
- <mat-label translate>admin.oauth2.tenant-name-pattern</mat-label>
|
280
|
|
- <input matInput
|
281
|
|
- formControlName="tenantNamePattern"
|
282
|
|
- [required]="registration.get('mapperConfig.basic.tenantNameStrategy').value === 'CUSTOM'">
|
283
|
|
- <mat-error
|
284
|
|
- *ngIf="registration.get('mapperConfig.basic.tenantNamePattern').hasError('required')">
|
285
|
|
- {{ 'admin.oauth2.tenant-name-pattern-required' | translate }}
|
|
182
|
+ <mat-form-field fxFlex class="mat-block">
|
|
183
|
+ <mat-label translate>admin.oauth2.user-info-uri</mat-label>
|
|
184
|
+ <input matInput formControlName="userInfoUri" required>
|
|
185
|
+ <button mat-icon-button matSuffix
|
|
186
|
+ type="button"
|
|
187
|
+ (click)="toggleEditMode(registration, 'userInfoUri')"
|
|
188
|
+ *ngIf="registration.get('providerName').value !== 'Custom'">
|
|
189
|
+ <mat-icon class="material-icons">create</mat-icon>
|
|
190
|
+ </button>
|
|
191
|
+ <mat-error *ngIf="registration.get('userInfoUri').hasError('required')">
|
|
192
|
+ {{ 'admin.oauth2.user-info-uri-required' | translate }}
|
|
193
|
+ </mat-error>
|
|
194
|
+ <mat-error *ngIf="registration.get('userInfoUri').hasError('pattern')">
|
|
195
|
+ {{ 'admin.oauth2.uri-pattern-error' | translate }}
|
286
|
196
|
</mat-error>
|
287
|
197
|
</mat-form-field>
|
288
|
198
|
</div>
|
289
|
199
|
|
290
|
200
|
<mat-form-field fxFlex class="mat-block">
|
291
|
|
- <mat-label translate>admin.oauth2.customer-name-pattern</mat-label>
|
292
|
|
- <input matInput formControlName="customerNamePattern">
|
|
201
|
+ <mat-label translate>admin.oauth2.client-authentication-method</mat-label>
|
|
202
|
+ <mat-select formControlName="clientAuthenticationMethod">
|
|
203
|
+ <mat-option *ngFor="let clientAuthenticationMethod of clientAuthenticationMethods"
|
|
204
|
+ [value]="clientAuthenticationMethod">
|
|
205
|
+ {{ clientAuthenticationMethod | uppercase }}
|
|
206
|
+ </mat-option>
|
|
207
|
+ </mat-select>
|
293
|
208
|
</mat-form-field>
|
294
|
209
|
|
295
|
|
- <div fxLayout="row" fxLayout.xs="column" fxLayoutGap.gt-xs="8px">
|
|
210
|
+ <div fxLayout="row" fxLayout.xs="column" fxLayoutGap.gt-xs="8px" *ngIf="registration.get('providerName').value === 'Custom'">
|
296
|
211
|
<mat-form-field fxFlex class="mat-block">
|
297
|
|
- <mat-label translate>admin.oauth2.default-dashboard-name</mat-label>
|
298
|
|
- <input matInput formControlName="defaultDashboardName">
|
|
212
|
+ <mat-label translate>admin.oauth2.login-button-label</mat-label>
|
|
213
|
+ <input matInput formControlName="loginButtonLabel" required>
|
|
214
|
+ <mat-error
|
|
215
|
+ *ngIf="registration.get('loginButtonLabel').hasError('required')">
|
|
216
|
+ {{ 'admin.oauth2.login-button-label-required' | translate }}
|
|
217
|
+ </mat-error>
|
299
|
218
|
</mat-form-field>
|
300
|
219
|
|
301
|
|
- <mat-checkbox fxFlex formControlName="alwaysFullScreen" class="checkbox-row">
|
302
|
|
- {{ 'admin.oauth2.always-fullscreen' | translate}}
|
303
|
|
- </mat-checkbox>
|
|
220
|
+ <mat-form-field fxFlex class="mat-block">
|
|
221
|
+ <mat-label translate>admin.oauth2.login-button-icon</mat-label>
|
|
222
|
+ <input matInput formControlName="loginButtonIcon">
|
|
223
|
+ </mat-form-field>
|
304
|
224
|
</div>
|
305
|
|
- </section>
|
306
|
|
-
|
307
|
|
- <section formGroupName="custom"
|
308
|
|
- *ngIf="registration.get('mapperConfig.type').value === 'CUSTOM'">
|
309
|
|
- <mat-form-field class="mat-block">
|
310
|
|
- <mat-label translate>admin.oauth2.url</mat-label>
|
311
|
|
- <input matInput formControlName="url" required>
|
312
|
|
- <mat-error
|
313
|
|
- *ngIf="registration.get('mapperConfig.custom.url').hasError('required')">
|
314
|
|
- {{ 'admin.oauth2.url-required' | translate }}
|
315
|
|
- </mat-error>
|
316
|
|
- <mat-error
|
317
|
|
- *ngIf="registration.get('mapperConfig.custom.url').hasError('pattern')">
|
318
|
|
- {{ 'admin.oauth2.url-pattern' | translate }}
|
|
225
|
+
|
|
226
|
+ <section formGroupName="mapperConfig">
|
|
227
|
+ <div fxLayout="column" fxLayoutGap="8px" style="margin-bottom: 8px;">
|
|
228
|
+ <mat-checkbox formControlName="allowUserCreation">
|
|
229
|
+ {{ 'admin.oauth2.allow-user-creation' | translate }}
|
|
230
|
+ </mat-checkbox>
|
|
231
|
+ <mat-checkbox formControlName="activateUser">
|
|
232
|
+ {{ 'admin.oauth2.activate-user' | translate }}
|
|
233
|
+ </mat-checkbox>
|
|
234
|
+ </div>
|
|
235
|
+ </section>
|
|
236
|
+
|
|
237
|
+ <mat-form-field fxFlex class="mat-block">
|
|
238
|
+ <mat-label translate>admin.oauth2.scope</mat-label>
|
|
239
|
+ <mat-chip-list #scopeList>
|
|
240
|
+ <mat-chip *ngFor="let scope of registration.get('scope').value; let k = index;"
|
|
241
|
+ removable (removed)="removeScope(k, registration)">
|
|
242
|
+ {{scope}}
|
|
243
|
+ <mat-icon matChipRemove>cancel</mat-icon>
|
|
244
|
+ </mat-chip>
|
|
245
|
+ <input [matChipInputFor]="scopeList"
|
|
246
|
+ [matChipInputSeparatorKeyCodes]="separatorKeysCodes"
|
|
247
|
+ matChipInputAddOnBlur
|
|
248
|
+ (matChipInputTokenEnd)="addScope($event, registration)">
|
|
249
|
+ </mat-chip-list>
|
|
250
|
+ </mat-form-field>
|
|
251
|
+
|
|
252
|
+ </mat-tab>
|
|
253
|
+ <mat-tab label="{{ 'admin.oauth2.mapper' | translate }}">
|
|
254
|
+ <mat-form-field class="mat-block" style="margin-top: 16px;">
|
|
255
|
+ <mat-label translate>admin.oauth2.user-name-attribute-name</mat-label>
|
|
256
|
+ <input matInput formControlName="userNameAttributeName" required>
|
|
257
|
+ <mat-error *ngIf="registration.get('userNameAttributeName').hasError('required')">
|
|
258
|
+ {{ 'admin.oauth2.user-name-attribute-name-required' | translate }}
|
319
|
259
|
</mat-error>
|
320
|
260
|
</mat-form-field>
|
321
|
261
|
|
322
|
|
- <div fxLayout="row" fxLayout.xs="column" fxLayoutGap.gt-xs="8px">
|
|
262
|
+ <section formGroupName="mapperConfig">
|
323
|
263
|
<mat-form-field fxFlex class="mat-block">
|
324
|
|
- <mat-label translate>common.username</mat-label>
|
325
|
|
- <input matInput formControlName="username" autocomplete="new-username">
|
|
264
|
+ <mat-label translate>admin.oauth2.type</mat-label>
|
|
265
|
+ <mat-select formControlName="type">
|
|
266
|
+ <mat-option *ngFor="let converterTypeExternalUser of converterTypesExternalUser"
|
|
267
|
+ [value]="converterTypeExternalUser">
|
|
268
|
+ {{ converterTypeExternalUser }}
|
|
269
|
+ </mat-option>
|
|
270
|
+ </mat-select>
|
326
|
271
|
</mat-form-field>
|
327
|
272
|
|
328
|
|
- <mat-form-field fxFlex class="mat-block">
|
329
|
|
- <mat-label translate>common.password</mat-label>
|
330
|
|
- <input matInput type="password" formControlName="password" autocomplete="new-password">
|
331
|
|
- </mat-form-field>
|
332
|
|
- </div>
|
333
|
|
- </section>
|
334
|
|
- </section>
|
335
|
|
- </mat-tab>
|
336
|
|
- </mat-tab-group>
|
|
273
|
+ <section formGroupName="basic"
|
|
274
|
+ *ngIf="registration.get('mapperConfig.type').value === 'BASIC'">
|
|
275
|
+ <mat-form-field class="mat-block">
|
|
276
|
+ <mat-label translate>admin.oauth2.email-attribute-key</mat-label>
|
|
277
|
+ <input matInput formControlName="emailAttributeKey" required>
|
|
278
|
+ <mat-error
|
|
279
|
+ *ngIf="registration.get('mapperConfig.basic.emailAttributeKey').hasError('required')">
|
|
280
|
+ {{ 'admin.oauth2.email-attribute-key-required' | translate }}
|
|
281
|
+ </mat-error>
|
|
282
|
+ </mat-form-field>
|
|
283
|
+
|
|
284
|
+ <div fxLayout="row" fxLayout.xs="column" fxLayoutGap.gt-xs="8px">
|
|
285
|
+ <mat-form-field fxFlex class="mat-block">
|
|
286
|
+ <mat-label translate>admin.oauth2.first-name-attribute-key</mat-label>
|
|
287
|
+ <input matInput formControlName="firstNameAttributeKey">
|
|
288
|
+ </mat-form-field>
|
|
289
|
+
|
|
290
|
+ <mat-form-field fxFlex class="mat-block">
|
|
291
|
+ <mat-label translate>admin.oauth2.last-name-attribute-key</mat-label>
|
|
292
|
+ <input matInput formControlName="lastNameAttributeKey">
|
|
293
|
+ </mat-form-field>
|
|
294
|
+ </div>
|
|
295
|
+
|
|
296
|
+ <div fxLayout="row" fxLayout.xs="column" fxLayoutGap.gt-xs="8px">
|
|
297
|
+ <mat-form-field fxFlex class="mat-block">
|
|
298
|
+ <mat-label translate>admin.oauth2.tenant-name-strategy</mat-label>
|
|
299
|
+ <mat-select formControlName="tenantNameStrategy">
|
|
300
|
+ <mat-option *ngFor="let tenantNameStrategy of tenantNameStrategies"
|
|
301
|
+ [value]="tenantNameStrategy">
|
|
302
|
+ {{ tenantNameStrategy }}
|
|
303
|
+ </mat-option>
|
|
304
|
+ </mat-select>
|
|
305
|
+ </mat-form-field>
|
|
306
|
+
|
|
307
|
+ <mat-form-field fxFlex class="mat-block" *ngIf="registration.get('mapperConfig.basic.tenantNameStrategy').value === 'CUSTOM'">
|
|
308
|
+ <mat-label translate>admin.oauth2.tenant-name-pattern</mat-label>
|
|
309
|
+ <input matInput
|
|
310
|
+ formControlName="tenantNamePattern"
|
|
311
|
+ [required]="registration.get('mapperConfig.basic.tenantNameStrategy').value === 'CUSTOM'">
|
|
312
|
+ <mat-error
|
|
313
|
+ *ngIf="registration.get('mapperConfig.basic.tenantNamePattern').hasError('required')">
|
|
314
|
+ {{ 'admin.oauth2.tenant-name-pattern-required' | translate }}
|
|
315
|
+ </mat-error>
|
|
316
|
+ </mat-form-field>
|
|
317
|
+ </div>
|
|
318
|
+
|
|
319
|
+ <mat-form-field fxFlex class="mat-block">
|
|
320
|
+ <mat-label translate>admin.oauth2.customer-name-pattern</mat-label>
|
|
321
|
+ <input matInput formControlName="customerNamePattern">
|
|
322
|
+ </mat-form-field>
|
|
323
|
+
|
|
324
|
+ <div fxLayout="row" fxLayout.xs="column" fxLayoutGap.gt-xs="8px">
|
|
325
|
+ <mat-form-field fxFlex class="mat-block">
|
|
326
|
+ <mat-label translate>admin.oauth2.default-dashboard-name</mat-label>
|
|
327
|
+ <input matInput formControlName="defaultDashboardName">
|
|
328
|
+ </mat-form-field>
|
|
329
|
+
|
|
330
|
+ <mat-checkbox fxFlex formControlName="alwaysFullScreen" class="checkbox-row">
|
|
331
|
+ {{ 'admin.oauth2.always-fullscreen' | translate}}
|
|
332
|
+ </mat-checkbox>
|
|
333
|
+ </div>
|
|
334
|
+ </section>
|
|
335
|
+
|
|
336
|
+ <section formGroupName="custom"
|
|
337
|
+ *ngIf="registration.get('mapperConfig.type').value === 'CUSTOM'">
|
|
338
|
+ <mat-form-field class="mat-block">
|
|
339
|
+ <mat-label translate>admin.oauth2.url</mat-label>
|
|
340
|
+ <input matInput formControlName="url" required>
|
|
341
|
+ <mat-error
|
|
342
|
+ *ngIf="registration.get('mapperConfig.custom.url').hasError('required')">
|
|
343
|
+ {{ 'admin.oauth2.url-required' | translate }}
|
|
344
|
+ </mat-error>
|
|
345
|
+ <mat-error
|
|
346
|
+ *ngIf="registration.get('mapperConfig.custom.url').hasError('pattern')">
|
|
347
|
+ {{ 'admin.oauth2.url-pattern' | translate }}
|
|
348
|
+ </mat-error>
|
|
349
|
+ </mat-form-field>
|
|
350
|
+
|
|
351
|
+ <div fxLayout="row" fxLayout.xs="column" fxLayoutGap.gt-xs="8px">
|
|
352
|
+ <mat-form-field fxFlex class="mat-block">
|
|
353
|
+ <mat-label translate>common.username</mat-label>
|
|
354
|
+ <input matInput formControlName="username" autocomplete="new-username">
|
|
355
|
+ </mat-form-field>
|
|
356
|
+
|
|
357
|
+ <mat-form-field fxFlex class="mat-block">
|
|
358
|
+ <mat-label translate>common.password</mat-label>
|
|
359
|
+ <input matInput type="password" formControlName="password" autocomplete="new-password">
|
|
360
|
+ </mat-form-field>
|
|
361
|
+ </div>
|
|
362
|
+ </section>
|
|
363
|
+ </section>
|
|
364
|
+ </mat-tab>
|
|
365
|
+ </mat-tab-group>
|
|
366
|
+ </ng-template>
|
|
367
|
+ </mat-expansion-panel>
|
337
|
368
|
|
338
|
369
|
</section>
|
339
|
370
|
</ng-template>
|
...
|
...
|
|