nsmcp::Authenticator method authenticate (public)

 <instance of nsmcp::Authenticator[i]> authenticate authorization \
    server

Defined in /usr/local/ns/tcl/nsmcp/security.tcl

Declare the authentication contract for a request. The base authenticator always rejects access; credential implementations override it.

Parameters:
authorization (required)
Authorization header supplied by the caller.
server (required)
Selected NaviServer virtual-server name.
Returns:
No normal result; raises an HTTP 401 authentication error.

Testcases:
No testcase defined.
Source code:
return -code error -errorcode {NSMCP HTTP 401} "Authentication required"
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: