Skip to content

Conversation

@nickvergessen
Copy link
Member

@nickvergessen nickvergessen commented Feb 8, 2023

… is long enough

Summary

All our generated auth tokens have a a fixed length (apart from session id based one which has a minimum). So it's save to assume that shorter strings are not actually valid apptokens we need to look up but the password when basic auth is used.
Additionally a min length check was added to help developers on generating new tokens in the future.

Query count of notifications app integration tests

Before After
https://github.com/nextcloud/notifications/actions/runs/4108063021/jobs/7088301789 https://github.com/nextcloud/notifications/actions/runs/4128695573/jobs/7133455445
10354 9150

Checklist

@nickvergessen nickvergessen force-pushed the perf/noid/only-check-for-token-when-it-can-actually-be branch from 2abdf59 to 7a85a15 Compare February 9, 2023 08:58
Copy link
Contributor

@miaulalala miaulalala left a comment

Choose a reason for hiding this comment

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

🐘

Signed-off-by: Joas Schilling <[email protected]>
@nickvergessen nickvergessen merged commit e47d56a into master Feb 10, 2023
@nickvergessen nickvergessen deleted the perf/noid/only-check-for-token-when-it-can-actually-be branch February 10, 2023 00:29
@blizzz blizzz mentioned this pull request Feb 13, 2023
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.

5 participants