2020-05-13 14:41:43 +02:00
|
|
|
import { COMMA, ENTER, SPACE } from '@angular/cdk/keycodes';
|
|
|
|
import { Location } from '@angular/common';
|
|
|
|
import { Component, OnDestroy, OnInit } from '@angular/core';
|
2020-07-30 16:54:15 +02:00
|
|
|
import { AbstractControl, FormBuilder, FormControl, FormGroup, ValidatorFn, Validators } from '@angular/forms';
|
2020-05-13 14:41:43 +02:00
|
|
|
import { MatChipInputEvent } from '@angular/material/chips';
|
|
|
|
import { MatDialog } from '@angular/material/dialog';
|
|
|
|
import { ActivatedRoute, Params, Router } from '@angular/router';
|
|
|
|
import { Subscription } from 'rxjs';
|
fix(console): cleanup contributor module, move loading state to shared module, button visibility in light theme (#504)
* refreshtable component
* project grant refresh table
* project role refresh, user grant, i18n
* lint
* auth user mfa table
* auth mfa table
* rm unused 404 page, add mgmt mfa table
* change light accent color
* add actions to mfa table
* user detail mfa table
* clear selection on refresh, bind data length
* member table
* fix padding mfa table
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* z-index, new colors
* new senf color
* create stepper
* app create stepper
* i18n
* i18n sections, header titles
* lint
* add pro mode
* main contributor component
* drop project members shared module
* project detail members
* org contributors, iam contributors
* invert card and background colors in light design
* changes card design
* lighten meta background
* account card radius
* fix imports, global user email link
* move spinner to refresh-table component
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* light background on light design
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
Co-authored-by: Florian Forster <florian@caos.ch>
2020-07-22 13:47:31 +02:00
|
|
|
import { debounceTime } from 'rxjs/operators';
|
2020-05-13 14:41:43 +02:00
|
|
|
import {
|
|
|
|
Application,
|
|
|
|
OIDCApplicationCreate,
|
|
|
|
OIDCApplicationType,
|
|
|
|
OIDCAuthMethodType,
|
|
|
|
OIDCGrantType,
|
|
|
|
OIDCResponseType,
|
|
|
|
} from 'src/app/proto/generated/management_pb';
|
2020-08-29 10:43:35 +02:00
|
|
|
import { ManagementService } from 'src/app/services/mgmt.service';
|
2020-05-13 14:41:43 +02:00
|
|
|
import { ToastService } from 'src/app/services/toast.service';
|
|
|
|
|
|
|
|
import { AppSecretDialogComponent } from '../app-secret-dialog/app-secret-dialog.component';
|
2020-07-30 16:54:15 +02:00
|
|
|
import { nativeValidator, webValidator } from '../appTypeValidator';
|
2020-05-13 14:41:43 +02:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'app-app-create',
|
|
|
|
templateUrl: './app-create.component.html',
|
|
|
|
styleUrls: ['./app-create.component.scss'],
|
|
|
|
})
|
|
|
|
export class AppCreateComponent implements OnInit, OnDestroy {
|
|
|
|
private subscription?: Subscription;
|
fix(console): cleanup contributor module, move loading state to shared module, button visibility in light theme (#504)
* refreshtable component
* project grant refresh table
* project role refresh, user grant, i18n
* lint
* auth user mfa table
* auth mfa table
* rm unused 404 page, add mgmt mfa table
* change light accent color
* add actions to mfa table
* user detail mfa table
* clear selection on refresh, bind data length
* member table
* fix padding mfa table
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* z-index, new colors
* new senf color
* create stepper
* app create stepper
* i18n
* i18n sections, header titles
* lint
* add pro mode
* main contributor component
* drop project members shared module
* project detail members
* org contributors, iam contributors
* invert card and background colors in light design
* changes card design
* lighten meta background
* account card radius
* fix imports, global user email link
* move spinner to refresh-table component
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* light background on light design
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
Co-authored-by: Florian Forster <florian@caos.ch>
2020-07-22 13:47:31 +02:00
|
|
|
public devmode: boolean = false;
|
2020-05-13 14:41:43 +02:00
|
|
|
public projectId: string = '';
|
fix(console): cleanup contributor module, move loading state to shared module, button visibility in light theme (#504)
* refreshtable component
* project grant refresh table
* project role refresh, user grant, i18n
* lint
* auth user mfa table
* auth mfa table
* rm unused 404 page, add mgmt mfa table
* change light accent color
* add actions to mfa table
* user detail mfa table
* clear selection on refresh, bind data length
* member table
* fix padding mfa table
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* z-index, new colors
* new senf color
* create stepper
* app create stepper
* i18n
* i18n sections, header titles
* lint
* add pro mode
* main contributor component
* drop project members shared module
* project detail members
* org contributors, iam contributors
* invert card and background colors in light design
* changes card design
* lighten meta background
* account card radius
* fix imports, global user email link
* move spinner to refresh-table component
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* light background on light design
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
Co-authored-by: Florian Forster <florian@caos.ch>
2020-07-22 13:47:31 +02:00
|
|
|
public loading: boolean = false;
|
2020-05-13 14:41:43 +02:00
|
|
|
public oidcApp: OIDCApplicationCreate.AsObject = new OIDCApplicationCreate().toObject();
|
fix(console): cleanup contributor module, move loading state to shared module, button visibility in light theme (#504)
* refreshtable component
* project grant refresh table
* project role refresh, user grant, i18n
* lint
* auth user mfa table
* auth mfa table
* rm unused 404 page, add mgmt mfa table
* change light accent color
* add actions to mfa table
* user detail mfa table
* clear selection on refresh, bind data length
* member table
* fix padding mfa table
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* z-index, new colors
* new senf color
* create stepper
* app create stepper
* i18n
* i18n sections, header titles
* lint
* add pro mode
* main contributor component
* drop project members shared module
* project detail members
* org contributors, iam contributors
* invert card and background colors in light design
* changes card design
* lighten meta background
* account card radius
* fix imports, global user email link
* move spinner to refresh-table component
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* light background on light design
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
Co-authored-by: Florian Forster <florian@caos.ch>
2020-07-22 13:47:31 +02:00
|
|
|
|
2020-07-24 09:48:58 +02:00
|
|
|
public oidcResponseTypes: { type: OIDCResponseType, checked: boolean; disabled: boolean; }[] = [
|
|
|
|
{ type: OIDCResponseType.OIDCRESPONSETYPE_CODE, checked: false, disabled: false },
|
|
|
|
{ type: OIDCResponseType.OIDCRESPONSETYPE_ID_TOKEN, checked: false, disabled: false },
|
|
|
|
{ type: OIDCResponseType.OIDCRESPONSETYPE_ID_TOKEN_TOKEN, checked: false, disabled: false },
|
2020-05-13 14:41:43 +02:00
|
|
|
];
|
2020-07-24 09:48:58 +02:00
|
|
|
|
2020-05-13 14:41:43 +02:00
|
|
|
public oidcAppTypes: OIDCApplicationType[] = [
|
|
|
|
OIDCApplicationType.OIDCAPPLICATIONTYPE_WEB,
|
|
|
|
OIDCApplicationType.OIDCAPPLICATIONTYPE_USER_AGENT,
|
|
|
|
OIDCApplicationType.OIDCAPPLICATIONTYPE_NATIVE,
|
|
|
|
];
|
2020-07-24 09:48:58 +02:00
|
|
|
|
fix(console): cleanup contributor module, move loading state to shared module, button visibility in light theme (#504)
* refreshtable component
* project grant refresh table
* project role refresh, user grant, i18n
* lint
* auth user mfa table
* auth mfa table
* rm unused 404 page, add mgmt mfa table
* change light accent color
* add actions to mfa table
* user detail mfa table
* clear selection on refresh, bind data length
* member table
* fix padding mfa table
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* z-index, new colors
* new senf color
* create stepper
* app create stepper
* i18n
* i18n sections, header titles
* lint
* add pro mode
* main contributor component
* drop project members shared module
* project detail members
* org contributors, iam contributors
* invert card and background colors in light design
* changes card design
* lighten meta background
* account card radius
* fix imports, global user email link
* move spinner to refresh-table component
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* light background on light design
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
Co-authored-by: Florian Forster <florian@caos.ch>
2020-07-22 13:47:31 +02:00
|
|
|
public oidcAuthMethodType: { type: OIDCAuthMethodType, checked: boolean, disabled: boolean; }[] = [
|
|
|
|
{ type: OIDCAuthMethodType.OIDCAUTHMETHODTYPE_BASIC, checked: false, disabled: false },
|
|
|
|
{ type: OIDCAuthMethodType.OIDCAUTHMETHODTYPE_NONE, checked: false, disabled: false },
|
|
|
|
{ type: OIDCAuthMethodType.OIDCAUTHMETHODTYPE_POST, checked: false, disabled: false },
|
2020-05-13 14:41:43 +02:00
|
|
|
];
|
|
|
|
|
fix(console): cleanup contributor module, move loading state to shared module, button visibility in light theme (#504)
* refreshtable component
* project grant refresh table
* project role refresh, user grant, i18n
* lint
* auth user mfa table
* auth mfa table
* rm unused 404 page, add mgmt mfa table
* change light accent color
* add actions to mfa table
* user detail mfa table
* clear selection on refresh, bind data length
* member table
* fix padding mfa table
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* z-index, new colors
* new senf color
* create stepper
* app create stepper
* i18n
* i18n sections, header titles
* lint
* add pro mode
* main contributor component
* drop project members shared module
* project detail members
* org contributors, iam contributors
* invert card and background colors in light design
* changes card design
* lighten meta background
* account card radius
* fix imports, global user email link
* move spinner to refresh-table component
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* light background on light design
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
Co-authored-by: Florian Forster <florian@caos.ch>
2020-07-22 13:47:31 +02:00
|
|
|
// stepper
|
|
|
|
firstFormGroup!: FormGroup;
|
|
|
|
secondFormGroup!: FormGroup;
|
2020-07-24 09:48:58 +02:00
|
|
|
// thirdFormGroup!: FormGroup;
|
fix(console): cleanup contributor module, move loading state to shared module, button visibility in light theme (#504)
* refreshtable component
* project grant refresh table
* project role refresh, user grant, i18n
* lint
* auth user mfa table
* auth mfa table
* rm unused 404 page, add mgmt mfa table
* change light accent color
* add actions to mfa table
* user detail mfa table
* clear selection on refresh, bind data length
* member table
* fix padding mfa table
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* z-index, new colors
* new senf color
* create stepper
* app create stepper
* i18n
* i18n sections, header titles
* lint
* add pro mode
* main contributor component
* drop project members shared module
* project detail members
* org contributors, iam contributors
* invert card and background colors in light design
* changes card design
* lighten meta background
* account card radius
* fix imports, global user email link
* move spinner to refresh-table component
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* light background on light design
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
Co-authored-by: Florian Forster <florian@caos.ch>
2020-07-22 13:47:31 +02:00
|
|
|
|
|
|
|
// devmode
|
2020-05-13 14:41:43 +02:00
|
|
|
public form!: FormGroup;
|
|
|
|
|
fix(console): cleanup contributor module, move loading state to shared module, button visibility in light theme (#504)
* refreshtable component
* project grant refresh table
* project role refresh, user grant, i18n
* lint
* auth user mfa table
* auth mfa table
* rm unused 404 page, add mgmt mfa table
* change light accent color
* add actions to mfa table
* user detail mfa table
* clear selection on refresh, bind data length
* member table
* fix padding mfa table
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* z-index, new colors
* new senf color
* create stepper
* app create stepper
* i18n
* i18n sections, header titles
* lint
* add pro mode
* main contributor component
* drop project members shared module
* project detail members
* org contributors, iam contributors
* invert card and background colors in light design
* changes card design
* lighten meta background
* account card radius
* fix imports, global user email link
* move spinner to refresh-table component
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* light background on light design
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
Co-authored-by: Florian Forster <florian@caos.ch>
2020-07-22 13:47:31 +02:00
|
|
|
public OIDCApplicationType: any = OIDCApplicationType;
|
|
|
|
public OIDCGrantType: any = OIDCGrantType;
|
|
|
|
public OIDCAuthMethodType: any = OIDCAuthMethodType;
|
|
|
|
|
2020-07-24 09:48:58 +02:00
|
|
|
public oidcGrantTypes: {
|
|
|
|
type: OIDCGrantType,
|
|
|
|
checked: boolean,
|
|
|
|
disabled: boolean,
|
|
|
|
}[] = [
|
|
|
|
{ type: OIDCGrantType.OIDCGRANTTYPE_AUTHORIZATION_CODE, checked: true, disabled: false },
|
|
|
|
{ type: OIDCGrantType.OIDCGRANTTYPE_IMPLICIT, checked: false, disabled: true },
|
|
|
|
// { type: OIDCGrantType.OIDCGRANTTYPE_REFRESH_TOKEN, checked: false, disabled: true },
|
|
|
|
// TODO show when implemented
|
|
|
|
];
|
|
|
|
|
2020-07-30 16:54:15 +02:00
|
|
|
public redirectControl: FormControl = new FormControl('');
|
|
|
|
public postRedirectControl: FormControl = new FormControl('');
|
|
|
|
|
2020-05-13 14:41:43 +02:00
|
|
|
public readonly separatorKeysCodes: number[] = [ENTER, COMMA, SPACE];
|
|
|
|
|
|
|
|
constructor(
|
|
|
|
private router: Router,
|
|
|
|
private route: ActivatedRoute,
|
|
|
|
private toast: ToastService,
|
|
|
|
private dialog: MatDialog,
|
2020-08-29 10:43:35 +02:00
|
|
|
private mgmtService: ManagementService,
|
2020-05-13 14:41:43 +02:00
|
|
|
private fb: FormBuilder,
|
|
|
|
private _location: Location,
|
|
|
|
) {
|
|
|
|
this.form = this.fb.group({
|
|
|
|
name: ['', [Validators.required]],
|
fix(console): cleanup contributor module, move loading state to shared module, button visibility in light theme (#504)
* refreshtable component
* project grant refresh table
* project role refresh, user grant, i18n
* lint
* auth user mfa table
* auth mfa table
* rm unused 404 page, add mgmt mfa table
* change light accent color
* add actions to mfa table
* user detail mfa table
* clear selection on refresh, bind data length
* member table
* fix padding mfa table
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* z-index, new colors
* new senf color
* create stepper
* app create stepper
* i18n
* i18n sections, header titles
* lint
* add pro mode
* main contributor component
* drop project members shared module
* project detail members
* org contributors, iam contributors
* invert card and background colors in light design
* changes card design
* lighten meta background
* account card radius
* fix imports, global user email link
* move spinner to refresh-table component
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* light background on light design
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
Co-authored-by: Florian Forster <florian@caos.ch>
2020-07-22 13:47:31 +02:00
|
|
|
responseTypesList: ['', [Validators.required]],
|
|
|
|
grantTypesList: ['', [Validators.required]],
|
|
|
|
applicationType: ['', [Validators.required]],
|
|
|
|
authMethodType: ['', [Validators.required]],
|
|
|
|
});
|
|
|
|
|
|
|
|
this.form.valueChanges.pipe(debounceTime(300)).subscribe((value) => {
|
|
|
|
this.oidcApp.name = this.formname?.value;
|
|
|
|
this.oidcApp.applicationType = this.formapplicationType?.value;
|
|
|
|
this.oidcApp.responseTypesList = this.formresponseTypesList?.value;
|
2020-07-24 09:48:58 +02:00
|
|
|
this.oidcApp.grantTypesList = this.formgrantTypesList?.value;
|
fix(console): cleanup contributor module, move loading state to shared module, button visibility in light theme (#504)
* refreshtable component
* project grant refresh table
* project role refresh, user grant, i18n
* lint
* auth user mfa table
* auth mfa table
* rm unused 404 page, add mgmt mfa table
* change light accent color
* add actions to mfa table
* user detail mfa table
* clear selection on refresh, bind data length
* member table
* fix padding mfa table
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* z-index, new colors
* new senf color
* create stepper
* app create stepper
* i18n
* i18n sections, header titles
* lint
* add pro mode
* main contributor component
* drop project members shared module
* project detail members
* org contributors, iam contributors
* invert card and background colors in light design
* changes card design
* lighten meta background
* account card radius
* fix imports, global user email link
* move spinner to refresh-table component
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* light background on light design
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
Co-authored-by: Florian Forster <florian@caos.ch>
2020-07-22 13:47:31 +02:00
|
|
|
this.oidcApp.authMethodType = this.formauthMethodType?.value;
|
|
|
|
});
|
|
|
|
|
|
|
|
this.firstFormGroup = this.fb.group({
|
|
|
|
name: ['', [Validators.required]],
|
|
|
|
applicationType: ['', [Validators.required]],
|
|
|
|
});
|
|
|
|
|
|
|
|
this.firstFormGroup.valueChanges.subscribe(value => {
|
2020-07-24 09:48:58 +02:00
|
|
|
if (this.firstFormGroup.valid) {
|
|
|
|
switch (value.applicationType) {
|
|
|
|
case OIDCApplicationType.OIDCAPPLICATIONTYPE_NATIVE:
|
|
|
|
this.oidcResponseTypes[0].checked = true;
|
|
|
|
this.oidcApp.responseTypesList = [OIDCResponseType.OIDCRESPONSETYPE_CODE];
|
|
|
|
|
|
|
|
this.oidcApp.grantTypesList =
|
|
|
|
[OIDCGrantType.OIDCGRANTTYPE_AUTHORIZATION_CODE];
|
|
|
|
this.oidcApp.authMethodType = OIDCAuthMethodType.OIDCAUTHMETHODTYPE_NONE;
|
2020-07-30 16:54:15 +02:00
|
|
|
|
|
|
|
this.redirectControl = new FormControl('', [nativeValidator as ValidatorFn]);
|
|
|
|
this.postRedirectControl = new FormControl('', [nativeValidator as ValidatorFn]);
|
2020-07-24 09:48:58 +02:00
|
|
|
break;
|
|
|
|
case OIDCApplicationType.OIDCAPPLICATIONTYPE_WEB:
|
|
|
|
this.oidcAuthMethodType[0].disabled = false;
|
2020-08-24 08:10:45 +02:00
|
|
|
this.oidcAuthMethodType[1].disabled = false;
|
|
|
|
this.oidcAuthMethodType[2].disabled = false;
|
|
|
|
this.authMethodType?.setValue(OIDCAuthMethodType.OIDCAUTHMETHODTYPE_BASIC);
|
2020-07-24 09:48:58 +02:00
|
|
|
this.oidcApp.authMethodType = OIDCAuthMethodType.OIDCAUTHMETHODTYPE_BASIC;
|
|
|
|
|
|
|
|
this.oidcResponseTypes[0].checked = true;
|
|
|
|
this.oidcApp.responseTypesList = [OIDCResponseType.OIDCRESPONSETYPE_CODE];
|
|
|
|
this.changeResponseType();
|
|
|
|
|
|
|
|
this.oidcApp.grantTypesList =
|
|
|
|
[OIDCGrantType.OIDCGRANTTYPE_AUTHORIZATION_CODE];
|
|
|
|
|
2020-07-30 16:54:15 +02:00
|
|
|
this.redirectControl = new FormControl('', [webValidator as ValidatorFn]);
|
|
|
|
this.postRedirectControl = new FormControl('', [webValidator as ValidatorFn]);
|
2020-07-24 09:48:58 +02:00
|
|
|
break;
|
|
|
|
case OIDCApplicationType.OIDCAPPLICATIONTYPE_USER_AGENT:
|
|
|
|
this.oidcResponseTypes[0].checked = true;
|
|
|
|
this.oidcApp.responseTypesList = [OIDCResponseType.OIDCRESPONSETYPE_CODE];
|
|
|
|
|
|
|
|
this.oidcApp.grantTypesList =
|
|
|
|
[OIDCGrantType.OIDCGRANTTYPE_AUTHORIZATION_CODE, OIDCGrantType.OIDCGRANTTYPE_IMPLICIT];
|
|
|
|
|
|
|
|
this.oidcApp.authMethodType = OIDCAuthMethodType.OIDCAUTHMETHODTYPE_NONE;
|
2020-07-30 16:54:15 +02:00
|
|
|
|
|
|
|
this.redirectControl = new FormControl('', [webValidator as ValidatorFn]);
|
|
|
|
this.postRedirectControl = new FormControl('', [webValidator as ValidatorFn]);
|
2020-07-24 09:48:58 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
this.oidcApp.name = this.name?.value;
|
|
|
|
this.oidcApp.applicationType = this.applicationType?.value;
|
fix(console): cleanup contributor module, move loading state to shared module, button visibility in light theme (#504)
* refreshtable component
* project grant refresh table
* project role refresh, user grant, i18n
* lint
* auth user mfa table
* auth mfa table
* rm unused 404 page, add mgmt mfa table
* change light accent color
* add actions to mfa table
* user detail mfa table
* clear selection on refresh, bind data length
* member table
* fix padding mfa table
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* z-index, new colors
* new senf color
* create stepper
* app create stepper
* i18n
* i18n sections, header titles
* lint
* add pro mode
* main contributor component
* drop project members shared module
* project detail members
* org contributors, iam contributors
* invert card and background colors in light design
* changes card design
* lighten meta background
* account card radius
* fix imports, global user email link
* move spinner to refresh-table component
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* light background on light design
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
Co-authored-by: Florian Forster <florian@caos.ch>
2020-07-22 13:47:31 +02:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2020-07-24 09:48:58 +02:00
|
|
|
this.secondFormGroup = this.fb.group({
|
|
|
|
authMethodType: [OIDCAuthMethodType.OIDCAUTHMETHODTYPE_BASIC, [Validators.required]],
|
|
|
|
});
|
fix(console): cleanup contributor module, move loading state to shared module, button visibility in light theme (#504)
* refreshtable component
* project grant refresh table
* project role refresh, user grant, i18n
* lint
* auth user mfa table
* auth mfa table
* rm unused 404 page, add mgmt mfa table
* change light accent color
* add actions to mfa table
* user detail mfa table
* clear selection on refresh, bind data length
* member table
* fix padding mfa table
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* z-index, new colors
* new senf color
* create stepper
* app create stepper
* i18n
* i18n sections, header titles
* lint
* add pro mode
* main contributor component
* drop project members shared module
* project detail members
* org contributors, iam contributors
* invert card and background colors in light design
* changes card design
* lighten meta background
* account card radius
* fix imports, global user email link
* move spinner to refresh-table component
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* light background on light design
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
Co-authored-by: Florian Forster <florian@caos.ch>
2020-07-22 13:47:31 +02:00
|
|
|
this.secondFormGroup.valueChanges.subscribe(value => {
|
2020-07-24 09:48:58 +02:00
|
|
|
this.oidcApp.authMethodType = value.authMethodType;
|
2020-05-13 14:41:43 +02:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
public ngOnInit(): void {
|
|
|
|
this.subscription = this.route.params.subscribe(params => this.getData(params));
|
|
|
|
}
|
|
|
|
|
|
|
|
public ngOnDestroy(): void {
|
|
|
|
this.subscription?.unsubscribe();
|
|
|
|
}
|
|
|
|
|
|
|
|
private async getData({ projectid }: Params): Promise<void> {
|
|
|
|
this.projectId = projectid;
|
|
|
|
this.oidcApp.projectId = projectid;
|
|
|
|
}
|
|
|
|
|
|
|
|
public close(): void {
|
|
|
|
this._location.back();
|
|
|
|
}
|
|
|
|
|
|
|
|
public saveOIDCApp(): void {
|
fix(console): cleanup contributor module, move loading state to shared module, button visibility in light theme (#504)
* refreshtable component
* project grant refresh table
* project role refresh, user grant, i18n
* lint
* auth user mfa table
* auth mfa table
* rm unused 404 page, add mgmt mfa table
* change light accent color
* add actions to mfa table
* user detail mfa table
* clear selection on refresh, bind data length
* member table
* fix padding mfa table
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* z-index, new colors
* new senf color
* create stepper
* app create stepper
* i18n
* i18n sections, header titles
* lint
* add pro mode
* main contributor component
* drop project members shared module
* project detail members
* org contributors, iam contributors
* invert card and background colors in light design
* changes card design
* lighten meta background
* account card radius
* fix imports, global user email link
* move spinner to refresh-table component
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* light background on light design
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
Co-authored-by: Florian Forster <florian@caos.ch>
2020-07-22 13:47:31 +02:00
|
|
|
this.loading = true;
|
2020-08-29 10:43:35 +02:00
|
|
|
this.mgmtService
|
2020-05-13 14:41:43 +02:00
|
|
|
.CreateOIDCApp(this.oidcApp)
|
|
|
|
.then((data: Application) => {
|
fix(console): cleanup contributor module, move loading state to shared module, button visibility in light theme (#504)
* refreshtable component
* project grant refresh table
* project role refresh, user grant, i18n
* lint
* auth user mfa table
* auth mfa table
* rm unused 404 page, add mgmt mfa table
* change light accent color
* add actions to mfa table
* user detail mfa table
* clear selection on refresh, bind data length
* member table
* fix padding mfa table
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* z-index, new colors
* new senf color
* create stepper
* app create stepper
* i18n
* i18n sections, header titles
* lint
* add pro mode
* main contributor component
* drop project members shared module
* project detail members
* org contributors, iam contributors
* invert card and background colors in light design
* changes card design
* lighten meta background
* account card radius
* fix imports, global user email link
* move spinner to refresh-table component
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* light background on light design
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
Co-authored-by: Florian Forster <florian@caos.ch>
2020-07-22 13:47:31 +02:00
|
|
|
this.loading = false;
|
2020-08-24 08:10:45 +02:00
|
|
|
const response = data.toObject();
|
|
|
|
if (response.oidcConfig?.authMethodType !== OIDCAuthMethodType.OIDCAUTHMETHODTYPE_NONE) {
|
|
|
|
this.showSavedDialog(response);
|
|
|
|
} else {
|
|
|
|
this.router.navigate(['projects', this.projectId, 'apps', response.id]);
|
|
|
|
}
|
2020-05-13 14:41:43 +02:00
|
|
|
})
|
fix(console): cleanup structure, role guard, paginated requests, cleanup policies, toast i18n, view timestamp, preloading strategy, maennchenfindings, fix passwordchange (#483)
* routes, move grid to list comopnent
* rename app list component, move to project sub
* add owned-project-detail child module
* seperate pipes
* set password validators only if needed
* create org initialize without pwd
* no caps
* self xss message
* fix user table
* fix project member paginator
* fix project members pagination, user grant pag
* move project grants, fix imports
* fix owned project detail imports
* use pipe and directives
* ng content bindings, rem custom schemas
* i18n, fix error toast parameter
* toast i18n
* side background
* fix: sequence, add timestamp
* audit
* fix metanav background
* org domain label
* cleanup policy component
* shorten user grant roles, mk cols visible as bind
* move user components, show otp only if available
* preload modules
* fix password change
* fix org create buttons
* class css
2020-07-16 15:13:36 +02:00
|
|
|
.catch(error => {
|
fix(console): cleanup contributor module, move loading state to shared module, button visibility in light theme (#504)
* refreshtable component
* project grant refresh table
* project role refresh, user grant, i18n
* lint
* auth user mfa table
* auth mfa table
* rm unused 404 page, add mgmt mfa table
* change light accent color
* add actions to mfa table
* user detail mfa table
* clear selection on refresh, bind data length
* member table
* fix padding mfa table
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* z-index, new colors
* new senf color
* create stepper
* app create stepper
* i18n
* i18n sections, header titles
* lint
* add pro mode
* main contributor component
* drop project members shared module
* project detail members
* org contributors, iam contributors
* invert card and background colors in light design
* changes card design
* lighten meta background
* account card radius
* fix imports, global user email link
* move spinner to refresh-table component
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* light background on light design
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
Co-authored-by: Florian Forster <florian@caos.ch>
2020-07-22 13:47:31 +02:00
|
|
|
this.loading = false;
|
fix(console): cleanup structure, role guard, paginated requests, cleanup policies, toast i18n, view timestamp, preloading strategy, maennchenfindings, fix passwordchange (#483)
* routes, move grid to list comopnent
* rename app list component, move to project sub
* add owned-project-detail child module
* seperate pipes
* set password validators only if needed
* create org initialize without pwd
* no caps
* self xss message
* fix user table
* fix project member paginator
* fix project members pagination, user grant pag
* move project grants, fix imports
* fix owned project detail imports
* use pipe and directives
* ng content bindings, rem custom schemas
* i18n, fix error toast parameter
* toast i18n
* side background
* fix: sequence, add timestamp
* audit
* fix metanav background
* org domain label
* cleanup policy component
* shorten user grant roles, mk cols visible as bind
* move user components, show otp only if available
* preload modules
* fix password change
* fix org create buttons
* class css
2020-07-16 15:13:36 +02:00
|
|
|
this.toast.showError(error);
|
2020-05-13 14:41:43 +02:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
public showSavedDialog(app: Application.AsObject): void {
|
|
|
|
if (app.oidcConfig !== undefined) {
|
|
|
|
const dialogRef = this.dialog.open(AppSecretDialogComponent, {
|
|
|
|
data: app.oidcConfig,
|
|
|
|
});
|
|
|
|
|
|
|
|
dialogRef.afterClosed().subscribe(result => {
|
|
|
|
this.router.navigate(['projects', this.projectId, 'apps', app.id]);
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
this.router.navigate(['projects', this.projectId, 'apps', app.id]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public addUri(event: MatChipInputEvent, target: string): void {
|
|
|
|
const input = event.input;
|
|
|
|
const value = event.value.trim();
|
|
|
|
|
|
|
|
if (value !== '') {
|
2020-07-30 16:54:15 +02:00
|
|
|
if (target === 'REDIRECT' && this.redirectControl.valid) {
|
2020-05-13 14:41:43 +02:00
|
|
|
this.oidcApp.redirectUrisList.push(value);
|
2020-07-30 16:54:15 +02:00
|
|
|
if (input) {
|
|
|
|
input.value = '';
|
|
|
|
}
|
|
|
|
} else if (target === 'POSTREDIRECT' && this.redirectControl.valid) {
|
2020-05-13 14:41:43 +02:00
|
|
|
this.oidcApp.postLogoutRedirectUrisList.push(value);
|
2020-07-30 16:54:15 +02:00
|
|
|
if (input) {
|
|
|
|
input.value = '';
|
|
|
|
}
|
2020-05-13 14:41:43 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public removeUri(uri: string, target: string): void {
|
|
|
|
if (target === 'REDIRECT') {
|
|
|
|
const index = this.oidcApp.redirectUrisList.indexOf(uri);
|
|
|
|
|
|
|
|
if (index !== undefined && index >= 0) {
|
|
|
|
this.oidcApp.redirectUrisList.splice(index, 1);
|
|
|
|
}
|
|
|
|
} else if (target === 'POSTREDIRECT') {
|
|
|
|
const index = this.oidcApp.postLogoutRedirectUrisList.indexOf(uri);
|
|
|
|
|
|
|
|
if (index !== undefined && index >= 0) {
|
|
|
|
this.oidcApp.postLogoutRedirectUrisList.splice(index, 1);
|
|
|
|
}
|
|
|
|
}
|
fix(console): cleanup contributor module, move loading state to shared module, button visibility in light theme (#504)
* refreshtable component
* project grant refresh table
* project role refresh, user grant, i18n
* lint
* auth user mfa table
* auth mfa table
* rm unused 404 page, add mgmt mfa table
* change light accent color
* add actions to mfa table
* user detail mfa table
* clear selection on refresh, bind data length
* member table
* fix padding mfa table
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* z-index, new colors
* new senf color
* create stepper
* app create stepper
* i18n
* i18n sections, header titles
* lint
* add pro mode
* main contributor component
* drop project members shared module
* project detail members
* org contributors, iam contributors
* invert card and background colors in light design
* changes card design
* lighten meta background
* account card radius
* fix imports, global user email link
* move spinner to refresh-table component
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* light background on light design
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
Co-authored-by: Florian Forster <florian@caos.ch>
2020-07-22 13:47:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
changeResponseType(): void {
|
|
|
|
this.oidcApp.responseTypesList = this.oidcResponseTypes.filter(gt => gt.checked).map(gt => gt.type);
|
2020-05-13 14:41:43 +02:00
|
|
|
}
|
|
|
|
|
2020-07-24 09:48:58 +02:00
|
|
|
moreThanOneOption(options: Array<{ type: OIDCGrantType, checked: boolean, disabled: boolean; }>): boolean {
|
|
|
|
return options.filter(option => option.disabled === false).length > 1;
|
|
|
|
}
|
|
|
|
|
2020-05-13 14:41:43 +02:00
|
|
|
get name(): AbstractControl | null {
|
fix(console): cleanup contributor module, move loading state to shared module, button visibility in light theme (#504)
* refreshtable component
* project grant refresh table
* project role refresh, user grant, i18n
* lint
* auth user mfa table
* auth mfa table
* rm unused 404 page, add mgmt mfa table
* change light accent color
* add actions to mfa table
* user detail mfa table
* clear selection on refresh, bind data length
* member table
* fix padding mfa table
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* z-index, new colors
* new senf color
* create stepper
* app create stepper
* i18n
* i18n sections, header titles
* lint
* add pro mode
* main contributor component
* drop project members shared module
* project detail members
* org contributors, iam contributors
* invert card and background colors in light design
* changes card design
* lighten meta background
* account card radius
* fix imports, global user email link
* move spinner to refresh-table component
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* light background on light design
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
Co-authored-by: Florian Forster <florian@caos.ch>
2020-07-22 13:47:31 +02:00
|
|
|
return this.firstFormGroup.get('name');
|
|
|
|
}
|
|
|
|
|
|
|
|
get applicationType(): AbstractControl | null {
|
|
|
|
return this.firstFormGroup.get('applicationType');
|
2020-05-13 14:41:43 +02:00
|
|
|
}
|
|
|
|
|
fix(console): cleanup contributor module, move loading state to shared module, button visibility in light theme (#504)
* refreshtable component
* project grant refresh table
* project role refresh, user grant, i18n
* lint
* auth user mfa table
* auth mfa table
* rm unused 404 page, add mgmt mfa table
* change light accent color
* add actions to mfa table
* user detail mfa table
* clear selection on refresh, bind data length
* member table
* fix padding mfa table
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* z-index, new colors
* new senf color
* create stepper
* app create stepper
* i18n
* i18n sections, header titles
* lint
* add pro mode
* main contributor component
* drop project members shared module
* project detail members
* org contributors, iam contributors
* invert card and background colors in light design
* changes card design
* lighten meta background
* account card radius
* fix imports, global user email link
* move spinner to refresh-table component
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* light background on light design
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
Co-authored-by: Florian Forster <florian@caos.ch>
2020-07-22 13:47:31 +02:00
|
|
|
public grantTypeChecked(type: OIDCGrantType): boolean {
|
|
|
|
return this.oidcGrantTypes.filter(gt => gt.checked).map(gt => gt.type).findIndex(t => t === type) > -1;
|
|
|
|
}
|
2020-05-13 14:41:43 +02:00
|
|
|
|
|
|
|
get responseTypesList(): AbstractControl | null {
|
fix(console): cleanup contributor module, move loading state to shared module, button visibility in light theme (#504)
* refreshtable component
* project grant refresh table
* project role refresh, user grant, i18n
* lint
* auth user mfa table
* auth mfa table
* rm unused 404 page, add mgmt mfa table
* change light accent color
* add actions to mfa table
* user detail mfa table
* clear selection on refresh, bind data length
* member table
* fix padding mfa table
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* z-index, new colors
* new senf color
* create stepper
* app create stepper
* i18n
* i18n sections, header titles
* lint
* add pro mode
* main contributor component
* drop project members shared module
* project detail members
* org contributors, iam contributors
* invert card and background colors in light design
* changes card design
* lighten meta background
* account card radius
* fix imports, global user email link
* move spinner to refresh-table component
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* light background on light design
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
Co-authored-by: Florian Forster <florian@caos.ch>
2020-07-22 13:47:31 +02:00
|
|
|
return this.secondFormGroup.get('responseTypesList');
|
|
|
|
}
|
|
|
|
|
|
|
|
get authMethodType(): AbstractControl | null {
|
|
|
|
return this.secondFormGroup.get('authMethodType');
|
|
|
|
}
|
|
|
|
|
|
|
|
// devmode
|
|
|
|
|
|
|
|
get formname(): AbstractControl | null {
|
|
|
|
return this.form.get('name');
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
get formresponseTypesList(): AbstractControl | null {
|
2020-05-13 14:41:43 +02:00
|
|
|
return this.form.get('responseTypesList');
|
|
|
|
}
|
|
|
|
|
|
|
|
|
fix(console): cleanup contributor module, move loading state to shared module, button visibility in light theme (#504)
* refreshtable component
* project grant refresh table
* project role refresh, user grant, i18n
* lint
* auth user mfa table
* auth mfa table
* rm unused 404 page, add mgmt mfa table
* change light accent color
* add actions to mfa table
* user detail mfa table
* clear selection on refresh, bind data length
* member table
* fix padding mfa table
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* z-index, new colors
* new senf color
* create stepper
* app create stepper
* i18n
* i18n sections, header titles
* lint
* add pro mode
* main contributor component
* drop project members shared module
* project detail members
* org contributors, iam contributors
* invert card and background colors in light design
* changes card design
* lighten meta background
* account card radius
* fix imports, global user email link
* move spinner to refresh-table component
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* light background on light design
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
Co-authored-by: Florian Forster <florian@caos.ch>
2020-07-22 13:47:31 +02:00
|
|
|
get formgrantTypesList(): AbstractControl | null {
|
2020-05-13 14:41:43 +02:00
|
|
|
return this.form.get('grantTypesList');
|
|
|
|
}
|
|
|
|
|
|
|
|
|
fix(console): cleanup contributor module, move loading state to shared module, button visibility in light theme (#504)
* refreshtable component
* project grant refresh table
* project role refresh, user grant, i18n
* lint
* auth user mfa table
* auth mfa table
* rm unused 404 page, add mgmt mfa table
* change light accent color
* add actions to mfa table
* user detail mfa table
* clear selection on refresh, bind data length
* member table
* fix padding mfa table
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* z-index, new colors
* new senf color
* create stepper
* app create stepper
* i18n
* i18n sections, header titles
* lint
* add pro mode
* main contributor component
* drop project members shared module
* project detail members
* org contributors, iam contributors
* invert card and background colors in light design
* changes card design
* lighten meta background
* account card radius
* fix imports, global user email link
* move spinner to refresh-table component
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* light background on light design
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
Co-authored-by: Florian Forster <florian@caos.ch>
2020-07-22 13:47:31 +02:00
|
|
|
get formapplicationType(): AbstractControl | null {
|
2020-05-13 14:41:43 +02:00
|
|
|
return this.form.get('applicationType');
|
|
|
|
}
|
|
|
|
|
fix(console): cleanup contributor module, move loading state to shared module, button visibility in light theme (#504)
* refreshtable component
* project grant refresh table
* project role refresh, user grant, i18n
* lint
* auth user mfa table
* auth mfa table
* rm unused 404 page, add mgmt mfa table
* change light accent color
* add actions to mfa table
* user detail mfa table
* clear selection on refresh, bind data length
* member table
* fix padding mfa table
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* z-index, new colors
* new senf color
* create stepper
* app create stepper
* i18n
* i18n sections, header titles
* lint
* add pro mode
* main contributor component
* drop project members shared module
* project detail members
* org contributors, iam contributors
* invert card and background colors in light design
* changes card design
* lighten meta background
* account card radius
* fix imports, global user email link
* move spinner to refresh-table component
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* light background on light design
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
Co-authored-by: Florian Forster <florian@caos.ch>
2020-07-22 13:47:31 +02:00
|
|
|
get formauthMethodType(): AbstractControl | null {
|
2020-05-13 14:41:43 +02:00
|
|
|
return this.form.get('authMethodType');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|