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

Add legacy application token section #6783

Closed

Conversation

mpmadhavig
Copy link
Contributor

Purpose

This PR will add a Legacy Application token sention to maintain the below configs.

  1. useClientIdAsSubClaimForAppTokens
  2. omitUsernameInIntrospectionRespForAppTokens

The initial UI design is as follows.
Screenshot 2024-08-16 at 08 34 38

Please feel free to make suggestions for the design.

Related Issues

Checklist

  • e2e cypress tests locally verified. (for internal contributers)
  • Manual test round performed and verified.
  • UX/UI review done on the final implementation.
  • Documentation provided. (Add links if there are any)
  • Relevant backend changes deployed and verified
  • Unit tests provided. (Add links if there are any)
  • Integration tests provided. (Add links if there are any)

Security checks

<ol>
<li>
<strong>Client Application Changes:</strong>
<p>Update your client application to no longer use the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use the needs space after.

@Achintha444
Copy link
Contributor

Suggestion for the design:

  • reduce the gap between the title and the warning.
  • increase the gap between the checkbox and the warning.
  • review the content with the docs team.

Comment on lines 298 to 299
const useClientIdAsSubClaimForAppTokensEle: MutableRefObject<HTMLElement> = useRef<HTMLElement>();
const omitUsernameInIntrospectionRespForAppTokensEle: MutableRefObject<HTMLElement> = useRef<HTMLElement>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const useClientIdAsSubClaimForAppTokensEle: MutableRefObject<HTMLElement> = useRef<HTMLElement>();
const omitUsernameInIntrospectionRespForAppTokensEle: MutableRefObject<HTMLElement> = useRef<HTMLElement>();
const useClientIdAsSubClaimForAppTokensElement: MutableRefObject<HTMLElement> = useRef<HTMLElement>();
const omitUsernameInIntrospectionRespForAppTokensElement: MutableRefObject<HTMLElement> = useRef<HTMLElement>();

<Trans
i18nKey={ t("actions:fields.authentication.info.message") }
>
You currently using an outdated behavior for application tokens.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
You currently using an outdated behavior for application tokens.
You are currently using an outdated behavior for application tokens.

<Trans
i18nKey={ t("actions:fields.authentication.info.message") }
>
You currently using an outdated behavior for application tokens.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using you in UI instructions is generally not recommended. Hope we can get the text reviewed with the doc team.

cc: @himeshsiriwardana

<li>
<strong>Client Application Changes:</strong>
<p>Update your client application to no longer use the
<code>sub</code> claim to refer to the application
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claim is too technical for an average user. we can use attribute instead.

@wso2-jenkins-bot
Copy link
Contributor

🦋 Changeset detected

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

@mpmadhavig mpmadhavig mentioned this pull request Aug 26, 2024
10 tasks
<Trans
i18nKey={ t("actions:fields.authentication.info.message") }
>
You are currently using an outdated behavior for application tokens.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better if we can get the text reviewed by the doc team?

@mpmadhavig
Copy link
Contributor Author

This will track from #6813

@mpmadhavig mpmadhavig closed this Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants