Skip to content

[SPIKE] Handling of logins tied to multiple organizations  #30873

Closed

Description

@Mihai-QuickSilverDev
  • What is currently in place
  • What improvements could be applied
  • Upcoming changes to this area

Activity

  1. added
    Entities Team
    on Sep 25, 2025
  2. severinbeauvais commented on Sep 25, 2025

    @severinbeauvais
    Collaborator

    Currently, there are several, incompatible methods to identify the current account between UIs:

    • session storage (but that is unique to each domain, and now our web apps are in different domains)
      • eg, CURRENT_ACCOUNT.id=1031
      • eg, nuxt-core-connect-account-store.currentAccount.id=1031
    • URL parameter
      • eg, accountid=123

    This is a problem when users navigate between UIs, if they have access to multiple accounts... in some cases (eg, Namerequest UI), the currently-selected account is not retained during navigation.

    A more problematic example is a user with multiple accounts, who receives an email containing a "magic link" to use a NR. The magic link opens a new browser page, and that browser page doesn't know which account to use, so it affiliates the NR (and creates a draft) to the first account in the list. This may not be what the user wants!

    Ideally, if the user already has an account selected, the magic link would work with that account (assuming the magic link opens in the same browser). Secondly, if the user is not already logged in then they should be able to select which account the magic link will use.

  3. severinbeauvais commented on Sep 25, 2025

    @severinbeauvais
    Collaborator

    @seeker25 , what are you thoughts on how to proceed?

  4. seeker25 commented on Sep 25, 2025

    @seeker25
    Contributor

    Cookies, probably the best bet for now

  5. seeker25 commented on Sep 25, 2025

    @seeker25
    Contributor

    For this problem:
    """
    A more problematic example is a user with multiple accounts, who receives an email containing a "magic link" to use a NR. The magic link opens a new browser page, and that browser page doesn't know which account to use, so it affiliates the NR (and creates a draft) to the first account in the list. This may not be what the user wants!
    """

    could give the users a choice which account to affiliate it to (dialog and /or opportunity to switch accounts)

    "Would you like to accept this magic link on account XYZ?"

  6. Mihai-QuickSilverDev commented on Sep 25, 2025

    @Mihai-QuickSilverDev
    CollaboratorAuthor
    • Yes, that was my proposal too! - could give the users a choice which account to affiliate it to (dialog and /or opportunity to switch accounts)
  7. severinbeauvais commented on Sep 26, 2025

    @severinbeauvais
    Collaborator

    I agree with adding a dialog as the first step in handling a magic link. (I also like the idea of using cookies, but that is either future work or might go away entirely with new Connect changes.)

    Mihai, what about handling the original "authorization" magic link... is there an issue with accounts there, too? Perhaps we could resolve both issues at once.

    As THIS is a discovery ticket, we'll need a new BRD ticket to implement the requested functionality.

  8. seeker25 commented on Sep 26, 2025

    @seeker25
    Contributor

    We should do this one again, for all of our apps:
    #16001

  9. changed the title [-]Discovery - Handling of logins tied to multiple organizations [/-] [+][SPIKE] Handling of logins tied to multiple organizations [/+] on Oct 1, 2025
  10. added
    connect
    on Oct 1, 2025
  11. mstanton1 commented on Jul 13, 2026

    @mstanton1
    Collaborator

    Spike was completed and pay ticket is in place under #16001

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Entities TeamPriority2connect

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions