Posts

Showing posts from November, 2021

How to use OAuth 2.0 to secure your Vue.js application and Quarkus REST API with Keycloak

Image
  How to use OAuth 2.0 to secure your Vue.js application and Quarkus REST API with Keycloak Introduction In this post I’ll show you how to use OAuth 2.0/OpenID Connect to secure a Vue.js application interacting with a REST API. You can find all the (commented) code on  GitHub . If you are developing a Vue.js app and you’re not sure how to implement OAuth this is for you! What you will not find is a deep dive into how OAuth works. If you are new to this topic I recommend you to start working through the links at the end of this post. Background In my  first blog post  I wrote my own authentication implementation using JSON Web Token (JWT). When it comes to security it is best left to the experts. I’m not one of them… But I want to sleep at night without worrying that I made a mistake and all the data stored in my application was stolen or corrupted. Therefore I decided to find a more sophisticated solution. At the start of my journey I only knew the following things: ...

The Complete Guide to Vue.js User Authentication with Auth0

Image
  Learn how to secure a Vue.js application by implementing user authentication, which includes user login, logout, and sign-up, along with protecting Vue.js routes.   You'll enhance a starter Vue.js application to practice the following security concepts: Add user login and logout. Retrieve user information. Protect application routes. Call protected endpoints from an API. Look for the 🛠️️ emoji if you'd like to skim through the content while focusing on the build steps. This guide uses the Auth0 SPA SDK to secure Vue.js applications, which provides Vue.js developers with an easier way to  add user authentication to Vue.js applications using a Vue.js plugin.  The  Auth0 SPA SDK  provides a high-level API to handle a lot of authentication implementation details. You can now secure your Vue.js applications using security best practices while writing less code. This guide covers Vue.js 2. How does Auth0 work? With the help of Auth0,  you don't need to be...