xdmp.gssServerNegotiate( inputToken as String ) as Object
This function is used for kerberos GSS authentication in application level authentication.
Parameters | |
---|---|
inputToken | input token received from the client |
This function passes the input token to gss_accept_sec_context. The result is set in the negotiate status.
The structure of the data returned is as follows:
success
output-token
user
const authorization = xdmp.getRequestHeader("Authorization"); if (authorization != "") { xdmp.gssServerNegotiate(authorization); } else { xdmp.setResponseCode(401, "Unauthorized"); xdmp.addResponseHeader("WWW-Authenticate", "Negotiate "); } => { "success":true, "outputToken":"oRQwEqADCgEAoQsGCSqGSIb3EgECAg==", "user":"test1@MLTEST1.LOCAL" }