Skip to content

Opensearch dashboards.httpservicesetup.registeronpostauth

Home > opensearch-dashboards > HttpServiceSetup > registerOnPostAuth

HttpServiceSetup.registerOnPostAuth property

To define custom logic after Auth interceptor did make sure a user has access to the requested resource.

Signature:

registerOnPostAuth: (handler: OnPostAuthHandler) => void;

Remarks

The auth state is available at stage via http.auth.get(..) Can register any number of registerOnPostAuth, which are called in sequence (from the first registered to the last). See OnPostAuthHandler.