- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::nsmcp::Authenticator
::nsmcp::Authenticatorcreate ...
Defined in /usr/local/ns/tcl/nsmcp/security.tcl
Class Relations
::nx::Class create ::nsmcp::Authenticator \ -superclass ::nsmcp::ObjectMethods (to be applied on instances)
authenticate (scripted, public)
<instance of nsmcp::Authenticator> authenticate authorization \ server
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.
return -code error -errorcode {NSMCP HTTP 401} "Authentication required"
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
![[i]](/resources/acs-subsite/ZoomIn16.gif)