HotFix to test hydra connexion (#1471)

This commit is contained in:
grégoire parant 2021-09-18 11:35:29 +02:00 committed by GitHub
parent 553902e52a
commit 8c96b514d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -23,4 +23,4 @@ RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule "^[_@]/" "/index.html" [L] RewriteRule "^[_@]/" "/index.html" [L]
RewriteRule "^register/" "/index.html" [L] RewriteRule "^register/" "/index.html" [L]
RewriteRule "^login" "/index.html" [L] RewriteRule "^login" "/index.html" [L]
RewriteRule "^jwt/" "/index.html" [L] RewriteRule "^jwt" "/index.html" [L]

View file

@ -83,6 +83,7 @@ export class AuthenticateController extends BaseController {
this.addCorsHeaders(res); this.addCorsHeaders(res);
return res.end(JSON.stringify({ authToken })); return res.end(JSON.stringify({ authToken }));
} catch (e) { } catch (e) {
console.error("openIDCallback => ERROR", e);
return this.errorToResponse(e, res); return this.errorToResponse(e, res);
} }
}); });
@ -153,6 +154,7 @@ export class AuthenticateController extends BaseController {
}) })
); );
} catch (e) { } catch (e) {
console.error("register => ERROR", e);
this.errorToResponse(e, res); this.errorToResponse(e, res);
} }
})(); })();
@ -214,6 +216,7 @@ export class AuthenticateController extends BaseController {
} }
} }
} catch (error) { } catch (error) {
console.error("profileCallback => ERROR", error);
this.errorToResponse(error, res); this.errorToResponse(error, res);
} }
}); });