mirror of
https://github.com/zitadel/zitadel.git
synced 2025-06-02 21:58:19 +00:00

* feat: device code * device code, create stepper * rm logs * app setup with device code * remove redirects if grant type is device code only * add device code app e2e --------- Co-authored-by: Fabi <fabienne.gerschwiler@gmail.com> Co-authored-by: Elio Bischof <elio@zitadel.com>
41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
import {
|
|
APIAuthMethodType,
|
|
OIDCAuthMethodType,
|
|
OIDCGrantType,
|
|
OIDCResponseType,
|
|
} from 'src/app/proto/generated/zitadel/app_pb';
|
|
|
|
export interface RadioItemAuthType {
|
|
key: string;
|
|
titleI18nKey: string;
|
|
descI18nKey: string;
|
|
disabled: boolean;
|
|
prefix: string;
|
|
background: string;
|
|
responseType?: OIDCResponseType;
|
|
grantType?: OIDCGrantType[];
|
|
authMethod?: OIDCAuthMethodType;
|
|
apiAuthMethod?: APIAuthMethodType;
|
|
recommended?: boolean;
|
|
notRecommended?: boolean;
|
|
}
|
|
|
|
@Component({
|
|
selector: 'cnsl-auth-method-radio',
|
|
templateUrl: './app-auth-method-radio.component.html',
|
|
styleUrls: ['./app-auth-method-radio.component.scss'],
|
|
})
|
|
export class AppAuthMethodRadioComponent {
|
|
@Input() current: string = '';
|
|
@Input() selected: string = '';
|
|
@Input() authMethods!: RadioItemAuthType[];
|
|
@Input() isOIDC: boolean = false;
|
|
@Input() compact: boolean = false;
|
|
@Output() selectedMethod: EventEmitter<string> = new EventEmitter();
|
|
|
|
public emitChange(): void {
|
|
this.selectedMethod.emit(this.selected);
|
|
}
|
|
}
|