Security handler (CustomSecurityHandler class) |
The security handler allows you to integrate external user databases and modify the authentication and authorization process.
It handles the following events:
Example
In the following example, you will learn how to integrate an external user authentication using the custom security handler. For simplicity, it doesn't use any particular database. Instead, it only checks if the current user name and password are equal to some constants.
In real-world scenario, you will need to replace this condition with lookup of the user name with given password in your external database.
Put the following code inside the OnAuthentication method:
[C#]
|