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
| Property | Returns | Description |
|---|---|---|
| appendChallengesFunc | String | Name of the JS function that appends this handler's challenge headers to a response, matching Milton's AuthenticationHandler.appendChallenges. |
| authenticateFunc | String | Name of the JS function that authenticates a request, matching Milton's AuthenticationHandler.authenticate. |
| credentialsPresentFunc | String | Name of the JS function that detects whether credentials for this handler are present on the request, matching Milton's AuthenticationHandler.credentialsPresent. |
| isCompatibleFunc | String | Name of the JS function that checks whether this handler is compatible with a given resource and request, matching Milton's AuthenticationHandler.isCompatible. |
| supportsFunc | String | Name 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.