Enable MFA support

This commit is contained in:
Jason Ertel
2022-02-15 07:49:12 -05:00
parent c5d6f09320
commit d97423e9f8
4 changed files with 29 additions and 4 deletions

View File

@@ -399,12 +399,18 @@ http {
}
error_page 401 = @error401;
error_page 403 = @error403;
location @error401 {
add_header Set-Cookie "AUTH_REDIRECT=$request_uri;Path=/;Max-Age=14400";
return 302 /auth/self-service/login/browser;
}
location @error403 {
add_header Set-Cookie "ory_kratos_session=;Path=/;Max-Age=0;expires=Thu, 01 Jan 1970 00:00:00 GMT;";
return 302 /auth/self-service/login/browser;
}
error_page 500 502 503 504 /50x.html;
location = /usr/share/nginx/html/50x.html {
}