acc_invoices: вход через Keycloak (PKCE, Google, только @khbuild.pro) вместо вставки токена
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -101,6 +101,9 @@ export function buildApi(deps: ApiDeps): FastifyInstance {
|
||||
return row;
|
||||
}
|
||||
|
||||
// настройки входа для браузера (без авторизации): куда перенаправлять на Keycloak
|
||||
app.get("/api/auth-config", async () => ({ issuer: settings.auth.issuer ?? null, clientId: settings.auth.clientId }));
|
||||
|
||||
app.get("/api/me", async (req) => {
|
||||
const a = await need(req);
|
||||
return { person_id: a.personId, name: a.displayName, roles: a.roles, is_staff: isStaff(a), filters: QUICK_FILTERS };
|
||||
|
||||
Reference in New Issue
Block a user