30 lines
1.0 KiB
Java
Executable File
30 lines
1.0 KiB
Java
Executable File
//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;
|
|
// }
|
|
//}
|