fix(auth): clean up auth v2 integration and legacy auth flow
LocationBasedServices/smartguide/pipeline/head This commit looks good

Connect logout and change-password handling to the new auth v2 flow and
remove remaining legacy auth usage from the active frontend/backend flow.

Main changes:
- wire frontend logout and change-password handling to auth v2
- remove old auth service references from the active flow
- fix self-access handling so real_account_id == effective_account_id is not treated as impersonation
- update CredentialService token/session state handling
- update guards to validate the current session through /api/accounts/me
- update the auth interceptor for bearer tokens, public endpoint skips, and 401 recovery
- improve impersonation recovery UX with snackbar feedback and focus cleanup
- keep the registration page for now, but disable registration in CredentialService
This commit is contained in:
Roman
2026-06-27 01:38:05 +02:00
parent b4257f2efa
commit 7b13db6dbf
32 changed files with 432 additions and 1183 deletions
@@ -7,7 +7,6 @@ api/api.ts
api/auth.service.ts
api/companyConnections.service.ts
api/funding.service.ts
api/iNSEAccountService.service.ts
api/iNSEService.service.ts
api/institutions.service.ts
api/news.service.ts
@@ -21,9 +20,6 @@ configuration.ts
encoder.ts
git_push.sh
index.ts
model/accessGrant.ts
model/authAccount.ts
model/authScope.ts
model/author.ts
model/authorAffiliationsInner.ts
model/authorCountsByYearInner.ts
@@ -40,7 +36,6 @@ model/autocompleteResponseMeta.ts
model/autocompleteResponseResultsInner.ts
model/award.ts
model/bodyChangePassword.ts
model/bodyCreateUser.ts
model/bodyGetAccessToken.ts
model/bodyLogin.ts
model/bodyRequestOtk.ts
@@ -76,7 +71,6 @@ model/fundingProjectPage.ts
model/fwci.ts
model/groupByResult.ts
model/hTTPValidationError.ts
model/identityGrant.ts
model/institution.ts
model/institutionFunderSummary.ts
model/institutionGeo.ts