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:
- Java Authentication and Authorization Service (JAAS) LoginModule Developer's Guide
- Interface LoginModule class (Java SE Developer's Documentation)
- Kaazing WebSocket Gateway Client API Documentation
Before You Begin
This optional procedure is part of Checklist: Configure Authentication and Authorization:
- Configure the HTTP Challenge Scheme
- Configure a Chain of Login Modules
- Create Custom Login Modules (Optional)
- Integrate an Existing Custom Login Module into the Gateway (Optional)
- Configure a Challenge Handler on the Client
- Configure Authorization
To Configure Custom Login Modules
- Write the login module interface (LoginContext API).
- Write the CallBackHandler interface that enables client to pass authentication data to the server.
- Configure the LoginModule and CallBackHandler with the server and application.
- Package the application along with module classes.
- Integrate the LoginModule with the application server.
Next Steps
Integrate an Existing Custom Login Module into the GatewaySee Also
- Checklist: Configure Kaazing WebSocket Gateway for more configuration information and examples
- Server API Documentation