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

feat: move jwt to URL hash from search parameters #14749

Merged
merged 5 commits into from
May 16, 2024
Merged

Conversation

aaronkvanmeerten
Copy link
Member

This updates the external API to send the JWT both as a URL hash parameter as well as a query string for backwards compatibility. The JWT parsing function now prefers the hash value over the query string value.

Copy link
Member

@damencho damencho left a comment

Choose a reason for hiding this comment

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

Can you add a comment at the place we want to drop down the road? with a TODO. Thanks

Comment on lines +22 to +26
const jwt = parseURLParams(url, true, 'hash').jwt;

// TODO: eventually remove the search param and only pull from the hash
// @ts-ignore
return jwt ? jwt : parseURLParams(url, true, 'search').jwt;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
const jwt = parseURLParams(url, true, 'hash').jwt;
// TODO: eventually remove the search param and only pull from the hash
// @ts-ignore
return jwt ? jwt : parseURLParams(url, true, 'search').jwt;
return parseURLParams(url, true, 'hash').jwt;

@damencho damencho merged commit 43ae591 into master May 16, 2024
9 checks passed
@damencho damencho deleted the jwt-in-hash branch May 16, 2024 18:03
@saghul
Copy link
Member

saghul commented May 16, 2024

Please @aaronkvanmeerten respect the repo commit convention.

I know not all repos have the same.

@damencho
Copy link
Member

What do you mean?

@saghul
Copy link
Member

saghul commented May 16, 2024

feat(thing) description

@damencho
Copy link
Member

Well, honestly, that is also new to me. I remember when we added that in the guideline and it was saying feat, fix and lang. Now I see it has changed and I do not see it mentioning the lang prefix.

@damencho
Copy link
Member

This was changed a year and a half ago jitsi/handbook@8fc45b8
I was not aware of this change and that change also dropped the lang: notation and I do not remember discussion with the team about it, but maybe I missed that.

@saghul
Copy link
Member

saghul commented May 16, 2024

FTR, we discusses offline and will continue doing so.

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.

None yet

4 participants