oxd-node-demo#
The following documentation demonstrates how to use Gluu's commercial OAuth 2.0 client software, oxd, to send users from a Node app to an OpenID Connect Provider (OP) for login. You can send users to any standard OP for login, including Google. In these docs we use the free open source Gluu Server as the OP.
Installation:#
Attention:
Application will not be working if your host does not have https://.
Configuration:#
Once the library is installed, create a copy of the sample configuration file for your website in a server writable location and edit the configuration. For example
Go to properties.js,
find exports.app_port=null and enter port no inplace of "null" which ever is free on your server.
How to use:#
- Download source code for demo client application [oxd-node-demo]
- Configure your port in
properties.js
file in root directory - From command line, move into demo client application and enter
npm update
, and run it [node index]. - Go to web browser and access demo application with this url
https://localhost.com:{port}
(you can use any other port incase if 5053 port is busy in any other process) - Register your website with oxd, fill the site registration form and submit it.
- Now your site user can login using oxd-server
Demo Video:#
Have a look into this demo video, a screen recording of this demo website’s features.