Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display the scopes field in m2m guide only when API's are authorized #6471

Merged
merged 4 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/nice-windows-obey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/admin.extensions.v1": patch
---

diplay the scope field only when API's are authorized
Original file line number Diff line number Diff line change
Expand Up @@ -250,36 +250,38 @@ export const M2MCustomConfiguration: FC<M2MCustomConfigurationPropsInterface> =
className="mt-2"
/>
</Form.Field>
<Form.Field>
<label>
{
t("extensions:develop.applications.quickstart.mobileApp" +
".configurations.scope.label")
}
<Hint className="mt-0 mb-0" popup>
<Trans
i18nKey={
"extensions:develop.applications.quickstart" +
".m2m.configurations.scopes"
}
>
The list of authorized scopes.
Include required scopes by authorizing APIs through the
<a
className="link pointing"
onClick={ onAPIAuthorizationTabClick }
{ !!copyScopesValue && (
<Form.Field>
<label>
{
t("extensions:develop.applications.quickstart.mobileApp" +
".configurations.scope.label")
}
<Hint className="mt-0 mb-0" popup>
<Trans
i18nKey={
"extensions:develop.applications.quickstart" +
".m2m.configurations.scopes"
}
>
API Authorization
</a>
tab.
</Trans>
</Hint>
</label>
<CopyInputField
value={ copyScopesValue }
data-componentid={ `${ componentId }-scope-readonly-input` }
/>
</Form.Field>
The list of authorized scopes.
Include required scopes by authorizing APIs through the
<a
className="link pointing"
onClick={ onAPIAuthorizationTabClick }
>
API Authorization
</a>
tab.
</Trans>
</Hint>
</label>
<CopyInputField
value={ copyScopesValue }
data-componentid={ `${ componentId }-scope-readonly-input` }
/>
</Form.Field>
) }
<Form.Field>
<label>
{
Expand Down
Loading