nsmcp::Authenticator method authenticate (public)
<instance of nsmcp::Authenticator> 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
![[i]](/resources/acs-subsite/ZoomIn16.gif)