SHA256
23 01 25
Промежуточный комит. Ужас как устал сегодня, узнал что и запросы у меня постоянно закрывают сессию. Надо переделать
This commit is contained in:
-30
@@ -1,30 +0,0 @@
|
||||
//package server.logic.ws_protocol.JSON.handlers.auth;
|
||||
//
|
||||
//import server.logic.ws_protocol.JSON.ConnectionContext;
|
||||
//import server.logic.ws_protocol.JSON.entyties.Net_Request;
|
||||
//import server.logic.ws_protocol.JSON.entyties.Net_Response;
|
||||
//import server.logic.ws_protocol.JSON.handlers.JsonMessageHandler;
|
||||
//import server.logic.ws_protocol.JSON.handlers.auth.entyties.Net_RefreshSession_Request;
|
||||
//import server.logic.ws_protocol.JSON.utils.NetExceptionResponseFactory;
|
||||
//import server.logic.ws_protocol.WireCodes;
|
||||
//
|
||||
///**
|
||||
// * RefreshSession (v2) — ОТКЛЮЧЕН.
|
||||
// *
|
||||
// * Раньше это был "короткий вход" (1 запрос) по sessionId+sessionPwd.
|
||||
// * Теперь вход всегда 2 шага: SessionChallenge -> SessionLogin (подпись sessionKey).
|
||||
// */
|
||||
//public class Net_RefreshSession_Handler implements JsonMessageHandler {
|
||||
//
|
||||
// @Override
|
||||
// public Net_Response handle(Net_Request request, ConnectionContext ctx) throws Exception {
|
||||
// Net_RefreshSession_Request req = (Net_RefreshSession_Request) request;
|
||||
//
|
||||
// return NetExceptionResponseFactory.error(
|
||||
// req,
|
||||
// WireCodes.Status.GONE, // 410
|
||||
// "DISABLED_V2",
|
||||
// "RefreshSession отключён в v2. Используй SessionChallenge + SessionLogin."
|
||||
// );
|
||||
// }
|
||||
//}
|
||||
-36
@@ -1,36 +0,0 @@
|
||||
//package server.logic.ws_protocol.JSON.handlers.auth.entyties;
|
||||
//
|
||||
//import server.logic.ws_protocol.JSON.entyties.Net_Request;
|
||||
//
|
||||
///**
|
||||
// * Запрос RefreshSession.
|
||||
// *
|
||||
// * В новой версии (v2) RefreshSession ОТКЛЮЧЕН.
|
||||
// * Оставлен временно для совместимости, handler вернёт 410 GONE.
|
||||
// */
|
||||
//public class Net_RefreshSession_Request extends Net_Request {
|
||||
//
|
||||
// private String sessionId;
|
||||
// private String sessionPwd;
|
||||
// private String clientInfo;
|
||||
//
|
||||
// public String getSessionId() {
|
||||
// return sessionId;
|
||||
// }
|
||||
//
|
||||
// public void setSessionId(String sessionId) {
|
||||
// this.sessionId = sessionId;
|
||||
// }
|
||||
//
|
||||
// public String getSessionPwd() {
|
||||
// return sessionPwd;
|
||||
// }
|
||||
//
|
||||
// public void setSessionPwd(String sessionPwd) {
|
||||
// this.sessionPwd = sessionPwd;
|
||||
// }
|
||||
//
|
||||
// public String getClientInfo() { return clientInfo; }
|
||||
//
|
||||
// public void setClientInfo(String clientInfo) { this.clientInfo = clientInfo; }
|
||||
//}
|
||||
-23
@@ -1,23 +0,0 @@
|
||||
//package server.logic.ws_protocol.JSON.handlers.auth.entyties;
|
||||
//
|
||||
//import server.logic.ws_protocol.JSON.entyties.Net_Response;
|
||||
//
|
||||
///**
|
||||
// * Ответ на RefreshSession.
|
||||
// *
|
||||
// * В новой версии (v2) RefreshSession ОТКЛЮЧЕН.
|
||||
// * Этот класс можно оставить временно для совместимости сериализации,
|
||||
// * но handler будет возвращать 410 GONE.
|
||||
// */
|
||||
//public class Net_RefreshSession_Response extends Net_Response {
|
||||
//
|
||||
// private String storagePwd;
|
||||
//
|
||||
// public String getStoragePwd() {
|
||||
// return storagePwd;
|
||||
// }
|
||||
//
|
||||
// public void setStoragePwd(String storagePwd) {
|
||||
// this.storagePwd = storagePwd;
|
||||
// }
|
||||
//}
|
||||
Reference in New Issue
Block a user