Repository navigation
Closed
Task
2 / 42 of 4 issues completed
Copy link
Labels
Entities TeamA label to filter on the tickets for the Entities based team that takes care of front end featuresPayWork for Pay Team
Description
Update the API calls used by the MBR Dashboard and the future "Authorized Accounts" view to pull from LEAR, rather than AUTH.
Risk Profile:
Business contact migration -> lower risk of potential issues
Affiliation invitation -> low risk of potential issues, but a bit higher than business contact
Affiliation -> more risk
Benefits:
- Business information easily accessible under one schema, you see the flow of the NR to the business all inside of LEAR and delegation / magic link after that.
- No more querying 3 systems to combine a single row on the BRD. It would just be 2 systems. This should improve performance.
- May make it more viable for SOLR to work?
- Entities will have full control over their data, passcodes, migration times and not have to worry about consulting AUTH to migrate businesses over from COLIN
- Setup will be easier to deal with granular permissions as they can see all of the data
- DBC and affiliations will be located in the same place (right now it's in two different spots to indicate business control?)
- Business contact migrated over, more efficient they can manage their own contacts for testing etc.
- Less tightly coupled to AUTH - only relies on AUTH for Org/Membership/Product/User and Pay for Payment Information
- AUTH this will make it easier cross team if entities wants to work on BRD etc they can just change their own data and routes
- Will allow us to change affiliations to include type and status
- Breaks a dependency for affiliation from Names -> AUTH
- We could easily combine affiliation invitations and affiliations and DBC in one dashboard etc? For the future?
- Cleans up AUTH code tremendously, gets rid of all entities information in auth
- Allows BRD to be populated with more information EG. filing information and filtering that shouldn't be done in AUTH.
Disadvantages:
- You will have some NR only affiliations inside of LEAR but these are the foundations of the businesses (or just name changes) and important historical information. It's possible a NR could just go nowhere
- More code into LEAR
- Developer time
- Proxying from LEAR to Names, isn't the best, but will have to be done to combine business rows (similar to what AUTH is doing now, but AUTH doesn't always know which NR's are associated to which businesses)
- Risk of breaking API users (can be mitigated I believe with version routes and/or backwards compat proxy calls for now)
- Potentially more traffic on LEAR
- Report breaking?
Reacted by Patrick Wei
Sub-issues
Collapse Sub-issuesSub-issues
Loading 4 sub-issues
Metadata
Metadata
Assignees
Labels
Entities TeamA label to filter on the tickets for the Entities based team that takes care of front end featuresPayWork for Pay Team
Activity
[-]Refactoring - move affiliation functionality from AUTH to LEAR[/-][+]Refactoring - move affiliation/affiliation invitation/business contact functionality from AUTH to LEAR[/+]severinbeauvais commentedon Dec 12, 2025
This will affect:
Integration of these changes introduces dependencies between Auth API and Business API (and some UIs). This will take special planning to be released together (may even require some downtime).
Update (Dec 15): I added some more items above
7 remaining items
severinbeauvais commentedon Dec 19, 2025
What's the plan for data migration (to minimize downtime)?
Can we implement Feature Flags to permit partial or targeted releases (eg, part of the work, or only some users initially)?
severinbeauvais commentedon Dec 19, 2025
Will these stay in Auth Web (UI)? If not, where will they be moved to?
severinbeauvais commentedon Dec 22, 2025
I meant the User (Edit) Profile page. Yes, it should probably go in the business-ui repo.
Is a new UI needed in that repo? If yes, need to factor in a bit of time to stand up a new UI, CI/CD, etc.
severinbeauvais commentedon Dec 22, 2025
Actually, I'm unclear: it moving Business Lookup, Continuation Review and User Profile out of Auth Web in scope? Or will they stay put and just the necessary API calls will be updated?
[-]Refactoring - move affiliation/affiliation invitation/business contact functionality from AUTH to LEAR[/-][+]Refactoring - move backend affiliation/affiliation invitation/business contact functionality from AUTH to LEAR[/+]thorwolpert commentedon Dec 22, 2025
The base auth pages are/will be in the connect layers, so apps can route to them without having to change hosts.
seeker25 commentedon Dec 22, 2025
long term, might be a good idea especially while upgrading auth-web to nuxt.
But that's not in the scope of this ticket, this ticket is just to get backend affiliations / affiliation invitations / business contacts into a healthier spot
severinbeauvais commentedon Dec 22, 2025
Thanks, Thor and Travis for the updates. Sounds good.
vysakh-menon-aot commentedon Dec 22, 2025
Are we planning to change the existing data structure to improve BRD search (I believe we are just moving as is with minor changes to link business)? Do we expect any release freeze for this work?
Are we following these steps to migrate (this is what i understood from the above tickets)?
OlgaPotiagalova commentedon Dec 23, 2025
From the notes above and discussions with the team : We do see potential benefits for Entities in moving the affiliation logic into the Business Registration module, particularly as it may help address some existing BRD issues and enable future improvements.
That said, I need more context and a deeper understanding of the problem, specifically, it would be helpful to understand:
Problem definition
• What concrete problems with the current short-term affiliation/delegation proposed changes cannot be solved within the existing implementation?
• Which exact changes are impossible or complex under the current architecture, and why?
Historical context
• What were the original reasons for placing affiliation logic in AUTH when this design was introduced years ago?
• Which of those assumptions still valid, and which no longer apply?
Alternatives considered
• Beyond moving the logic into LEAR/Legal-API, what other options were explored? For example, was a dedicated “affiliations” module considered, separate from both AUTH and LEAR/Legal-API?
• If alternatives were evaluated, what were the trade-offs that led to the current proposal?
Other questions/concerns:
• Do we anticipate partial duplication of the auth logic across both sides because of this change?
• What new security risks might this introduce, and how would they be mitigated?
• Would it potentially complicate integrations with other products/modules (NR, Search, etc, or the future ones) once affiliation logic is moved?
From my perspective, this proposal is not merely a technical refactor. It impacts ownership boundaries, security aspects, integrations, and long-term maintenance plan. To make an informed decision, we need sufficient information to assess these points holistically.
At this point, do we have enough data and analysis to evaluate the change from all of these perspectives?
loneil commentedon Dec 24, 2025
For existing Digital Business Card functionality specifics, there's nothing really different than the needs for cutting over all the other parts of the applications I don't think.
projects/gtksf3-test/topics/auth-event-test) that a subscriber in the Business namespace listens to.So if the moved/new Auth API keeps existing behavior it should not be any changes (other than possibly adjusting subscriber source in GCP)
JohnamLane commentedon Feb 11, 2026
This refactoring ticket likely won't be needed but other changes to match the future affiliation policy will. I will close this and re-open other tickets as needed. When the affiliation changes are planned further we can share a technical roadmap and engage with everyone impacted to plan a way forward.