first commit 04/09/2024
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
//package com.saslpay.authenticator;
|
||||
|
||||
import com.saslpay.t24jbc.JbcProcessor;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
//@RestController
|
||||
//@RequestMapping("/cbs/security")
|
||||
//public class GetAuthDetails {
|
||||
|
||||
// String authToken;
|
||||
//
|
||||
// @GetMapping(produces = MediaType.APPLICATION_JSON_VALUE, value = "/getToken")
|
||||
// public String getToken(@RequestHeader(value="User-Agent") String userAgent,@RequestHeader(value="username") String username,
|
||||
// @RequestHeader(value = "password") String password) {
|
||||
//
|
||||
// JbcProcessor jbcProcessor = new JbcProcessor();
|
||||
//
|
||||
// String getToken = "getToken|" + username + "!!" + password;
|
||||
//
|
||||
// try {
|
||||
// authToken = jbcProcessor.callRoutine(getToken);
|
||||
// } catch (NullPointerException e) {
|
||||
// authToken = "{\"errorMsg\" :\"" + e.getLocalizedMessage() + " - Contact Sinapi\"}";
|
||||
// return authToken;
|
||||
// }
|
||||
// return authToken;
|
||||
// }
|
||||
//}
|
||||
Reference in New Issue
Block a user