::nsmcp::Object ::nsmcp::Object dict getdef ::nsmcp::Authenticator ::nsmcp::Authenticator authenticate ::nsmcp::Authenticator->::nsmcp::Object ::nsmcp::BearerAuthenticator ::nsmcp::BearerAuthenticator authenticate credentialInfo grant issue revoke ::nsmcp::BearerAuthenticator->::nsmcp::Authenticator

Class ::nsmcp::Authenticator

::nsmcp::Authenticator[i] create ...

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

Class Relations

  • class: ::nx::Class[i]
  • superclass: ::nsmcp::Object[i]
  • subclass: ::nsmcp::BearerAuthenticator[i]

Methods (to be applied on instances)

  • authenticate (scripted, public)

     <instance of nsmcp::Authenticator[i]> 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.