WebKDC(3pm) | User Contributed Perl Documentation | WebKDC(3pm) |
WebKDC - Send requests to a WebAuth WebKDC
use WebKDC; use WebKDC::Exception; use WebKDC::WebRequest; use WebKDC::WebResponse; my ($status, $exception) = WebKDC::make_request_token_request ($req, $resp); my ($token, $subject); ($status, $exception, $token, $subject) = WebKDC::make_proxy_token_request ($krbreq, $tgt);
This module provides functions to make a <requestToken> and a <webkdcProxyToken> call to a WebAuth WebKDC. These functions encapsulate the XML protocol and HTTP requests. This module is primarily intended for use by the WebLogin server to process requests from WebAuth Application Servers.
AUTH is a Kerberos authenticator for the WebKDC's Kerberos principal, as generated by the WebAuth::Krb5 make_auth method. TGT is a Kerberos ticket-granting ticket, exported with the WebAuth::Krb5 export_cred method, and then encrypted in the same call to make_auth as the DATA argument. Both must already be base64-encoded.
The return value is a four-element list. The first value will be the status. On error, the second value is an exception object and the remaining values are undef. On success, the second value is undef, the third value is the webkdc-proxy token (base64-encoded), and the fourth value is the subject (the identity) represented by the webkdc-proxy token.
The return value is a list of the status and the exception object, if any. The status will be WK_SUCCESS on success and some other WK_ERR_* status code on failure. See WebKDC::WebKDCException for the other status codes.
There is no return value. Instead, data is parsed from the WebKDC's response and placed into the WebKDC::WebResponse object passed to the function. On an error, we throw an exception with a specific error code.
The return value is a list of the returned proxy token and subject. On any failure, we throw an exception with a specific error code.
Roland Schemers and Russ Allbery <eagle@eyrie.org>.
WebAuth(3), WebAuth::Krb5(3), WebKDC::WebKDCException(3), WebKDC::WebRequest(3), WebKDC::WebRespsonse(3)
This module is part of WebAuth. The current version is available from <http://webauth.stanford.edu/>.
2019-01-05 | perl v5.28.1 |