How to add a plugin?
Suppose, I have my own authentication UI which is developed using nodejs, express, jade.. blah blah..
Now I need to integrate this screen as the first Login screen which internally would connect to my LDAP server, authorizes the user and then come to Device Screen.
How can we do this? Can you give us step by step description?
That scenario is well supported. Your own separate authentication app and STF only need to know the secret key which is used to sign the JWT token. Essentially your app checks whether the login details are valid, and if they are, it generates a JWT token containing basic user information. It then signs the token using the secret key. Then it redirects to STF with the token as a URL parameter. STF checks that the JWT signature matches and if so, accepts the login using the provided information.
I can't give you step by step instructions. Honestly that would be a waste of time. Please look at one of the existing plugins, like the LDAP plugin for example, and just do the same thing. There's so little code that it should be fairly obvious what it does.
Perhaps try to get the built-in LDAP plugin working first, and then try to replace it with your own?
Sure thanks, Sorccu I will try this.
I want to add logout button in STF page. I did some changes in menu.jade file but it's not reflecting over UI. How the communication between webpack and js file happens? After every change I am restarting STF module using ./stf local But still not reflecting the changes :(. Who can help us in development related activity?
tadesushilgithub, 1 - You have to pull STF project from github and run from file. 2 - Run "gulp build" command in stf folder, this process do all jade extension files convert pug file. 3 - Now you can add button in menu.pug file not menu.jade. 4 - Run "gulp clean" command for every file changes, you can "gulp clean" when STF is running