♻️(frontend) switch to Authorization Code flow
Instead of interacting with Keycloak, the frontend navigate to the /authenticate endpoint, which starts the Authorization code flow. When the flow is done, the backend redirect back to the SPA, passing a session cookie and a csrf cookie. Done: - Query GET user/me to determine if user is authenticated yet - Remove Keycloak js dependency, as all the OIDC logic is handled by the backend - Store user's data instead of the JWT token
This commit is contained in:
committed by
aleb_the_flash
parent
38c4d33791
commit
4cacfd3a45
@@ -14,6 +14,6 @@ export const keyCloakSignIn = async (page: Page, browserName: string) => {
|
||||
.getByRole('textbox', { name: 'password' })
|
||||
.fill(`password-e2e-${browserName}`);
|
||||
|
||||
await page.click('input[type="submit"]');
|
||||
await page.click('input[type="submit"]', { force: true });
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { defineConfig, devices } from '@playwright/test';
|
||||
|
||||
const PORT = process.env.PORT || 3200;
|
||||
const PORT = process.env.PORT || 3000;
|
||||
|
||||
const baseURL = `http://localhost:${PORT}`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user