visual
This commit is contained in:
@@ -473,6 +473,16 @@
|
||||
source: requestUrl,
|
||||
});
|
||||
}
|
||||
if (response.status === 401) {
|
||||
emitDebug({
|
||||
type: 'request:unauthorized',
|
||||
method: requestOptions.method || 'GET',
|
||||
url: requestUrl,
|
||||
redirect_to: '/auth/keycloak',
|
||||
});
|
||||
window.location.href = '/auth/keycloak';
|
||||
throw new Error('Nicht autorisiert. Weiterleitung zum Login.');
|
||||
}
|
||||
if (!response.ok) {
|
||||
const context = payload && payload.context && typeof payload.context === 'object' ? payload.context : null;
|
||||
const detail = context
|
||||
|
||||
Reference in New Issue
Block a user