Skip to content

Commit 73bd2a5

Browse files
authored
Merge pull request #2559 from brionmario/feature-imrpove-totp
Change `OIDC` template to `OAuth2/OIDC` in Custom Applications.
2 parents 58697be + f368fd3 commit 73bd2a5

File tree

24 files changed

+654
-266
lines changed

24 files changed

+654
-266
lines changed

apps/console/src/features/applications/components/forms/inbound-custom-form.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ export const InboundCustomProtocolForm: FunctionComponent<InboundCustomFormProps
315315
onSubmit(updateConfiguration(values));
316316
} }
317317
>
318-
<Grid className="form-container with-max-width">
318+
<Grid>
319319
{ generateFormElements() }
320320
{ /* Certificates */ }
321321
<Grid.Row columns={ 1 }>

apps/console/src/features/applications/components/forms/inbound-form-factory.tsx

+18
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,24 @@ export const InboundFormFactory: FunctionComponent<InboundFormFactoryInterface>
129129
data-testid={ testId }
130130
/>
131131
);
132+
case SupportedAuthProtocolTypes.OAUTH2_OIDC:
133+
return (
134+
<InboundOIDCForm
135+
isLoading={ isLoading }
136+
setIsLoading={ setIsLoading }
137+
certificate={ certificate }
138+
tenantDomain={ tenantDomain }
139+
allowedOriginList={ allowedOrigins }
140+
initialValues={ initialValues }
141+
metadata={ metadata }
142+
onSubmit={ onSubmit }
143+
onApplicationRegenerate={ onApplicationRegenerate }
144+
onApplicationRevoke={ onApplicationRevoke }
145+
readOnly={ readOnly }
146+
template={ template }
147+
data-testid={ testId }
148+
/>
149+
);
132150
case SupportedAuthProtocolTypes.SAML:
133151
if (showSAMLCreation && SAMLCreationOption && SAMLCreationOption !== SAMLConfigModes.MANUAL) {
134152
return (

apps/console/src/features/applications/components/forms/inbound-oidc-form.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2629,7 +2629,7 @@ export const InboundOIDCForm: FunctionComponent<InboundOIDCFormPropsInterface> =
26292629
}
26302630
} }
26312631
>
2632-
<Grid className="form-container with-max-width">
2632+
<Grid>
26332633
{
26342634
(initialValues?.state === State.REVOKED) && (
26352635
<Grid.Row columns={ 1 }>

apps/console/src/features/applications/components/forms/inbound-passive-sts-form.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export const InboundPassiveStsForm: FunctionComponent<InboundPassiveStsFormProps
143143
onSubmit(updateConfiguration(values));
144144
} }
145145
>
146-
<Grid className="form-container with-max-width">
146+
<Grid>
147147
<Grid.Row columns={ 1 }>
148148
<Grid.Column mobile={ 16 } tablet={ 16 } computer={ 16 }>
149149
<Field

apps/console/src/features/applications/components/forms/inbound-saml-form.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ export const InboundSAMLForm: FunctionComponent<InboundSAMLFormPropsInterface> =
458458
}
459459
} }
460460
>
461-
<Grid className="form-container with-max-width">
461+
<Grid>
462462
<Grid.Row columns={ 1 }>
463463
<Grid.Column mobile={ 16 } tablet={ 16 } computer={ 16 }>
464464
{

apps/console/src/features/applications/components/forms/inbound-ws-trust-form.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export const InboundWSTrustForm: FunctionComponent<InboundWSTrustFormPropsInterf
168168
onSubmit(updateConfiguration(values));
169169
} }
170170
>
171-
<Grid className="form-container with-max-width">
171+
<Grid>
172172
<Grid.Row columns={ 1 }>
173173
<Grid.Column mobile={ 16 } tablet={ 16 } computer={ 16 }>
174174
<Field

apps/console/src/features/applications/components/meta/inbound-protocols.meta.ts

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export const InboundProtocolsMeta: AuthProtocolMetaListItemInterface[] = [
6767
export const SupportedAuthProtocolTypeDisplayNames = {
6868
[ SupportedAuthProtocolTypes.SAML ]: "SAML",
6969
[ SupportedAuthProtocolTypes.OIDC ] : "OpenID Connect",
70+
[ SupportedAuthProtocolTypes.OAUTH2_OIDC ] : "OAuth2.0/OpenID Connect",
7071
[ SupportedAuthProtocolTypes.WS_FEDERATION ]: "Passive STS",
7172
[ SupportedAuthProtocolTypes.WS_TRUST ]: "WS-Trust",
7273
[ SupportedAuthProtocolTypes.CUSTOM ]: "Custom"

apps/console/src/features/applications/components/settings/access-configuration.tsx

+211-87
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)