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

Automatically cut the token name on the first level #31688

Conversation

nickvergessen
Copy link
Member

Follow up to #31658

Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Copy link
Contributor

@max-nextcloud max-nextcloud left a comment

Choose a reason for hiding this comment

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

I can confirm this fixes the failing cypress runs in text. I do not (yet) understand the implications of these changes. Mainly wondering if truncated names will always be unique. But i won't be able to think this through tonight. So just commenting and not approving.

@nickvergessen
Copy link
Member Author

Mainly wondering if truncated names will always be unique.

It's just the labels shown in the list of index.php/settings/user/security
They are not unique, e.g. every token created with occ user:add-app-password is called "cli"

Copy link
Contributor

@max-nextcloud max-nextcloud left a comment

Choose a reason for hiding this comment

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

Okay... since the name is just for identifying the source of the token and tokens are not identified by it this seems save to me.

@nickvergessen nickvergessen merged commit c9ea236 into master Mar 24, 2022
@nickvergessen nickvergessen deleted the bugfix/31658/automatically-cut-the-token-name-on-first-level branch March 24, 2022 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants