Skip to content

Handling AuthAlreadyAssociated #226

@hroncok

Description

@hroncok

Hi,
imagine a following situation:

  • 2 auth methods are supported (let's say fedora and github)
  • user walks in for the first time, authorize with one (fedora)
  • user doesn't pair the account with the second (github)
  • user logs out
  • user walks in for the second time, authorize with second (github)
  • now 2 accounts are there for him, one for each authorisation

How does the user join the two? Cause when the user tries to pair the account with the first auth method (fedora), the site gives 500 and the following is in the logs:

AuthAlreadyAssociated: This fedora account is already in use.

So the real questions are:

  • Is it even possible to join two accounts like this
  • If not, how can I catch this exception and at least tell the user something to comport him instead of throwing 500 at him?

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions