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

Adrienne / Fix reset password getting SSOed #18018

Merged
merged 3 commits into from
Jan 24, 2025

Conversation

adrienne-deriv
Copy link
Contributor

Changes:

  • This is due to the backward compatability OIDC changes for social signup in frontend, we need to set logged_state to true when user is logging in using social login (Google, Facebook) in order for other apps to be automatically logged in

Please provide a summary of the change.

Screenshots:

Please provide some screenshots of the change.

Copy link

vercel bot commented Jan 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
deriv-app ✅ Ready (Inspect) Visit Preview Jan 24, 2025 1:35pm

Copy link
Contributor

github-actions bot commented Jan 24, 2025

A production App ID was automatically generated for this PR. (log)

Click here to copy & paste above information.
- **PR**: [https://github.com/deriv-com/deriv-app/pull/18018](https://github.com/deriv-com/deriv-app/pull/18018)
- **URLs**:
    - **w/ App ID + Server**: https://deriv-app-git-fork-adrienne-deriv-fix-create-password-sso.binary.sx?qa_server=red.derivws.com&app_id=31531
    - **Original**: https://deriv-app-git-fork-adrienne-deriv-fix-create-password-sso.binary.sx
- **App ID**: `31531`

Copy link
Contributor

github-actions bot commented Jan 24, 2025

🚨 Lighthouse report for the changes in this PR:

Category Score
🔺 Performance 28
🟧 Accessibility 70
🟧 Best practices 83
🟧 SEO 77
🟧 PWA 78

Lighthouse ran with https://deriv-app-git-fork-adrienne-deriv-fix-create-password-sso.binary.sx/

const auth_keys = ['acct', 'token'];
const is_acct_token_params = auth_keys.some(
account_key => key?.includes(account_key) && key !== 'affiliate_token'
);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just check if query parameters has acct or token, then we set logged_state to true

jim-deriv
jim-deriv previously approved these changes Jan 24, 2025
amam-deriv
amam-deriv previously approved these changes Jan 24, 2025
@amam-deriv amam-deriv merged commit 0cdabf7 into deriv-com:master Jan 24, 2025
13 of 14 checks passed
prince-deriv added a commit to prince-deriv/deriv-app that referenced this pull request Jan 24, 2025
* chore: only set logged state cookies when we see acct and token in params

---------

Co-authored-by: Prince <[email protected]>
amam-deriv pushed a commit that referenced this pull request Jan 24, 2025
* chore: only set logged state cookies when we see acct and token in params

---------

Co-authored-by: adrienne-deriv <[email protected]>
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.

5 participants