feat: extend enterprise gateway policies billing protocols and operations
This commit is contained in:
1 parent
1528b71882
commit
af43947b5d
67 files changed
+1822
-69
No files matched your search
@@ -43,7 +43,9 @@ public class AuthController {
|
||||
this.secureCookie = secureCookie;
|
||||
}
|
||||
|
||||
public record LoginRequest(String account, String password) {}
|
||||
public record LoginRequest(String account, String password,String otp) {
|
||||
public LoginRequest(String account,String password) {this(account,password,null);}
|
||||
}
|
||||
|
||||
public record RegisterRequest(String invitationCode, String account, String password, String displayName, String verificationCode) {}
|
||||
public record CodeRequest(String account, String invitationCode) {}
|
||||
@@ -87,7 +89,7 @@ public class AuthController {
|
||||
HttpServletRequest request,
|
||||
HttpServletResponse response
|
||||
) {
|
||||
AuthService.AuthResult result = authService.login(input.account(), input.password(), meta(request));
|
||||
AuthService.AuthResult result = authService.login(input.account(), input.password(), input.otp(), meta(request));
|
||||
// Keep the browser session cookie ephemeral. The server-side session still
|
||||
// has its normal TTL, but a closed browser must require a fresh login.
|
||||
response.addHeader(HttpHeaders.SET_COOKIE, sessionCookie(result.token(), null).toString());
|
||||
|
||||
Reference in new issue
Block a user