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

Fixed some bugs with authentication settings. #5418

Merged
merged 3 commits into from
Mar 7, 2022
Merged

Conversation

barankyle
Copy link
Member

@barankyle barankyle commented Mar 5, 2022

Summary

Discord key/secret in client page were mistakenly changing Facebook values.

Improved patching of authentication settings to handle enabling of not-previously-enabled
providers. One, providers with non-settable oauth fields like scope were not having that
inserted into the oauth settings; two, callback URLs for newly-enabled providers were not
being set in the callback settings. authentication-setting patch() now iterates over all the
providers in the patch data and adds scope/custom_data to the oauth entry if present in the
the config for that provider, and adds a callback URL for it from the config as well.

Checklist

  • Pre-push checks pass npm run check
    • Linter passing via npm run lint
    • Unit & Integration tests passing via npm run test:packages
    • Docker build process passing via npm run build-client
  • If this PR is still a WIP, convert to a draft
  • When this PR is ready, mark it as "Ready for review"
  • Changes have been manually QA'd
  • Changes reviewed by at least 2 approved reviewers

References

References to pertaining issue(s)

QA Steps

  1. git checkout pr_branch_name
  2. npm install
  3. npm run dev-reinit
  4. npm run dev

List any additional steps required to QA the changes of this PR, as well as any supplemental images or videos.

Reviewers

Reviewers for this PR

@barankyle barankyle changed the title Fixed some bugs with authentcation settings. Fixed some bugs with authentication settings. Mar 5, 2022
Discord key/secret in client page were mistakenly changing Facebook values.

Improved patching of authentication settings to handle enabling of not-previously-enabled
providers.  One, providers with non-settable oauth fields like `scope` were not having that
inserted into the oauth settings; two, callback URLs for newly-enabled providers were not
being set in the callback settings. authentication-setting patch() now iterates over all the
providers in the patch data and adds scope/custom_data to the oauth entry if present in the
the config for that provider, and adds a callback URL for it from the config as well.
@barankyle barankyle merged commit 489a074 into dev Mar 7, 2022
@barankyle barankyle deleted the oauth-settings-fixes branch March 7, 2022 18:48
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

2 participants