Opensearch dashboards.httpservicesetup.registerauth
Home > opensearch-dashboards > HttpServiceSetup > registerAuth
HttpServiceSetup.registerAuth property
To define custom authentication and/or authorization mechanism for incoming requests.
Signature:
registerAuth: (handler: AuthenticationHandler) => void;
Remarks
A handler should return a state to associate with the incoming request. The state can be retrieved later via http.auth.get(..) Only one AuthenticationHandler can be registered. See AuthenticationHandler.