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

Update Handling For When Linking New External Credentials Without IdP email and Refactor def openid_connect #1003

Open
wants to merge 7 commits into
base: integration
Choose a base branch
from

Conversation

aaronskiba
Copy link
Collaborator

Fixes #966

Changes proposed in this PR:

  • Updates handling for when if auth.info.email.nil? && user.nil?

  • Previously, when this condition was true, the following code was executed:

    flash[:notice] = _('Something went wrong, Please try signing up here.')
    redirect_to new_user_registration_path
  • Now, the executed code is contingent on whether or not the user is signed into the app (see def handle_missing_email_for_new_sso_entry).

  • In addition, this pull request addresses the outstanding Metrics/AbcSize and Metrics/MethodLength rubocop offenses that existed within def openid_connect.

attrs: auth,
identifiable: current_user)
flash[:notice] = _('Linked successfully')
redirect_to root_path
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Should I change this too? Currently, after linking an account within Edit Profile, the user is then redirected to the root path. Would it be better to just keep them on the Edit Profile page?

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.

1 participant