FusionAuth Example Vue .Vue.js and Express example application that uses the OAuth 2 Authorization Code grant
Vue.js and Express example application that uses the OAuth 2 Authorization Code grant.
You can read full instructions with additional info and context on the blog post: https://fusionauth.io/blog/2020/08/06/securely-implement-oauth-vuejs
This application will use an OAuth Authorization Code workflow and the PKCE extension to log users in and an express backend server to store your access token securely. PKCE stands for Proof Key for Code Exchange, and is often pronounced “pixie”.
Following setup is required before running the application.
If you haven't already have an instance of FusionAuth running on local machine, follow this 5-Minute Setup Guide which will get you started in no time. For quick installation and configuration, Docker is the perfect choice.
Make sure you have Node installed on your local development machine.
git clone https://github.com/FusionAuth/fusionauth-example-vue.git
Create a new Application in your FusionAuth dashboard.
In your application OAuth tab:
Authorized redirect URLsto
http://localhost:8081or the port your Vue App is running.
Select Users on the dashboard, select Manage and go to the Registration tab. Then click
Add Registration, and add yourself to the application you just created.
Copy your app's Client ID, Client Secret, Redirect URI, Application ID, and API Key into the
server/.env.example file, you will also need to rename
SERVER_PORT = 9000 FUSIONAUTH_PORT = 9011 CLIENT_ID = '' CLIENT_SECRET = '' REDIRECT_URI = 'http://localhost:9000/oauth-callback' APLICATION_ID = '' API_KEY = ''
You can read how to create an API KEY here.
cd server npm install npm run dev
cd client npm install npm run serve
Your application is now running and you will be prompted to
Source Code: https://github.com/FusionAuth/fusionauth-example-vue
In this article, you’ll learn how to build a Vue custom select component that can be easily be styled using your own CSS. In fact, it’s the same component that we use in production on Qvault, and you can see it in action on the playground.
There are plenty of libraries out there that will have you up and running with a good tooltip solution in minutes. However, if you are like me, you are sick and tired of giant dependency trees that have the distinct possibility of breaking at any time.
Vue-ShortKey - The ultimate shortcut plugin to improve the UX .Vue-ShortKey - plugin for VueJS 2.x accepts shortcuts globaly and in a single listener.