This project is an example Node.js application that illustrates how to integrate with FusionAuth using the Authorization Code grant.
This assumes you already have a running FusionAuth instance, user and application running locally. If you don't, please see the 5-Minute Setup Guide to do so.
- log into the admin UI of FusionAuth
** update your FusionAuth application to allow a redirect of
http://localhost:3000/oauth-redirect** add a logout url ofhttp://localhost:3000/logout** make sure your user has a first name. ** note your client id and client secret - copy
.env.sampleto.envand update it with your Client Id, Client Secret and FusionAuth instance base URL. - run
npm install npm start
Go to http://localhost:3000/ and login with the previously created user.
You should see 'Hello '
You should be able to logout as well.
Aug 2024