Create Custom Login Modules

Even though Kaazing WebSocket Gateway provides several standard types of login-module implementations, you might choose to write a custom implementation. Because the JAAS interface implementation holds the authentication logic, most of the material you need to implement the LoginModule interface is provided in the following documentation:

Before You Begin

This optional procedure is part of Checklist: Configure Authentication and Authorization:

  1. Configure the HTTP Challenge Scheme
  2. Configure a Chain of Login Modules
  3. Configure a Challenge Handler on the Client
  4. Configure Authorization

To Configure Custom Login Modules

  1. Write the login module interface (LoginContext API).
  2. Write the CallBackHandler interface that enables client to pass authentication data to the server.
  3. Configure the LoginModule and CallBackHandler with the server and application.
  4. Package the application along with module classes.
  5. Integrate the LoginModule with the application server.

Next Steps

Integrate an Existing Custom Login Module into the Gateway

See Also

TOP