diff --git a/web/src/admin/applications/wizard/methods/oauth/ak-application-wizard-authentication-by-oauth.ts b/web/src/admin/applications/wizard/methods/oauth/ak-application-wizard-authentication-by-oauth.ts index f649b4ac8f25..94e5f07c1517 100644 --- a/web/src/admin/applications/wizard/methods/oauth/ak-application-wizard-authentication-by-oauth.ts +++ b/web/src/admin/applications/wizard/methods/oauth/ak-application-wizard-authentication-by-oauth.ts @@ -39,7 +39,7 @@ import BaseProviderPanel from "../BaseProviderPanel"; @customElement("ak-application-wizard-authentication-by-oauth") export class ApplicationWizardAuthenticationByOauth extends BaseProviderPanel { @state() - showClientSecret = false; + showClientSecret = true; @state() propertyMappings?: PaginatedScopeMappingList; @@ -87,12 +87,13 @@ export class ApplicationWizardAuthenticationByOauth extends BaseProviderPanel { flowType=${FlowsInstancesListDesignationEnum.Authentication} .currentFlow=${provider?.authenticationFlow} required - @change=${(ev: CustomEvent<{ value: ClientTypeEnum }>) => { - this.showClientSecret = ev.detail.value !== ClientTypeEnum.Public; - }} - .options=${clientTypeOptions} - > - + > +

+ ${msg( + "Flow used when a user access this provider and is not authenticated." + )} +

+ ) => { - this.showClientSecret = ev.detail !== ClientTypeEnum.Public; + @change=${(ev: CustomEvent<{ value: ClientTypeEnum }>) => { + this.showClientSecret = ev.detail.value !== ClientTypeEnum.Public; }} .options=${clientTypeOptions} > @@ -208,13 +209,13 @@ export class ApplicationWizardAuthenticationByOauth extends BaseProviderPanel { if (!provider?.propertyMappings) { selected = scope.managed?.startsWith( - "goauthentik.io/providers/oauth2/scope-", + "goauthentik.io/providers/oauth2/scope-" ) || false; } else { selected = Array.from(provider?.propertyMappings).some( (su) => { return su == scope.pk; - }, + } ); } return html`