fix: proxy OAuth2/login/logout paths through nginx to Spring BFF

nginx was only forwarding /api/* to the backend.
Added proxy locations for:
  - /oauth2/  (Spring Security login initiation)
  - /login/oauth2/  (OAuth2 authorization code callback)
  - /logout  (Spring Security logout + RP-initiated end-session)

Also revert incorrect /api prefix on the login redirect URL.
This commit is contained in:
nessar committed 2026-08-17 14:18:14 +02:00
1 parent be80422c99
commit 92d16eb2c1
2 files changed
+28 -1

No files matched your search

+1 -1
View File
@@ -42,7 +42,7 @@ export class App implements OnInit {
}
ngOnInit() {
this.http.get<{authenticated: boolean, username?: string, email?: string}>('/api/user').subscribe({
this.http.get<{ authenticated: boolean, username?: string, email?: string }>('/api/user').subscribe({
next: (user) => {
if (user.authenticated) {
this._isLoggedIn.set(true);