Skip to content

Commit

Permalink
Merge pull request #6951 from AnjanaSamindraPerera/add-sso-template-c…
Browse files Browse the repository at this point in the history
…onfigs

Add sso template configs
  • Loading branch information
AnjanaSamindraPerera authored Oct 2, 2024
2 parents 1f574bf + 54a21cc commit 7a469e6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/brave-goats-chew.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@wso2is/admin.application-templates.v1": patch
"@wso2is/admin.applications.v1": patch
---

Add sso templated related configs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ interface MarkdownGuideDataInterface {
tenantDomain?: string;
clientOrigin?: string;
serverOrigin?: string;
productName?: string;
moderatedData?: ModeratedData;
}

Expand All @@ -111,6 +112,7 @@ export const ApplicationMarkdownGuide: FunctionComponent<ApplicationMarkdownGuid
const tenantDomain: string = useSelector((state: AppState) => state?.auth?.tenantDomain);
const clientOrigin: string = useSelector((state: AppState) => state?.config?.deployment?.clientOrigin);
const serverOrigin: string = useSelector((state: AppState) => state?.config?.deployment?.idpConfigs?.serverOrigin);
const productName: string = useSelector((state: AppState) => state?.config?.ui?.productName);

/**
* Convert certificate into the pem format.
Expand Down Expand Up @@ -172,6 +174,7 @@ export const ApplicationMarkdownGuide: FunctionComponent<ApplicationMarkdownGuid
markdownDataObject.tenantDomain = tenantDomain;
markdownDataObject.clientOrigin = clientOrigin;
markdownDataObject.serverOrigin = serverOrigin;
markdownDataObject.productName = productName;
markdownDataObject.moderatedData = getModeratedData();

return markdownDataObject;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,9 @@ export const InboundSAMLForm: FunctionComponent<InboundSAMLFormPropsInterface> =
</Grid.Row>

{ /*Request Validation*/ }
<Grid.Row columns={ 2 }>
<Grid.Row
columns={ 2 }
data-componentid="application-edit-inbound-saml-form-request-validation">
<Grid.Column mobile={ 16 } tablet={ 16 } computer={ 16 }>
<Divider/>
<Divider hidden/>
Expand Down Expand Up @@ -1856,7 +1858,9 @@ export const InboundSAMLForm: FunctionComponent<InboundSAMLFormPropsInterface> =
)
}
{ /* Certificate Section */ }
<Grid.Row columns={ 1 }>
<Grid.Row
columns={ 1 }
data-componentid="application-edit-inbound-saml-form-certificate">
<Grid.Column mobile={ 16 } tablet={ 16 } computer={ 16 }>
<ApplicationCertificateWrapper
protocol={ SupportedAuthProtocolTypes.SAML }
Expand Down

0 comments on commit 7a469e6

Please sign in to comment.