Immutable set of JS function names implementing Milton's AuthenticationHandler contract for one app, built by AuthHandlerBuilder and held on the app's controller mappings. Each property names a JS function used at a different point in authentication: whether the handler applies to a request, performing authentication, checking compatibility, appending challenge headers, and detecting whether credentials are present. JsAuthenticationHandler calls these functions when handling a request.


Properties

PropertyReturnsDescription
appendChallengesFuncStringName of the JS function that appends this handler's challenge headers to a response, matching Milton's AuthenticationHandler.appendChallenges.
authenticateFuncStringName of the JS function that authenticates a request, matching Milton's AuthenticationHandler.authenticate.
credentialsPresentFuncStringName of the JS function that detects whether credentials for this handler are present on the request, matching Milton's AuthenticationHandler.credentialsPresent.
isCompatibleFuncStringName of the JS function that checks whether this handler is compatible with a given resource and request, matching Milton's AuthenticationHandler.isCompatible.
supportsFuncStringName of the JS function that decides whether this handler applies to a given resource and request, matching Milton's AuthenticationHandler.supports.

Methods

getSupportsFunc()

Returns: String

Name of the JS function that decides whether this handler applies to a given resource and request, matching Milton's AuthenticationHandler.supports.

getAuthenticateFunc()

Returns: String

Name of the JS function that authenticates a request, matching Milton's AuthenticationHandler.authenticate.

getIsCompatibleFunc()

Returns: String

Name of the JS function that checks whether this handler is compatible with a given resource and request, matching Milton's AuthenticationHandler.isCompatible.

getAppendChallengesFunc()

Returns: String

Name of the JS function that appends this handler's challenge headers to a response, matching Milton's AuthenticationHandler.appendChallenges.

getCredentialsPresentFunc()

Returns: String

Name of the JS function that detects whether credentials for this handler are present on the request, matching Milton's AuthenticationHandler.credentialsPresent.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.