Skip to content

LuxChanLu/yet-another-nuxt-oauth2

Repository files navigation

YANO : Yet another nuxt oauth2 module

Build Status

Codacy Badge Maintainability David Known Vulnerabilities

Downloads FOSSA Status

Features

  • Configuration by object or .well-known/openid-configuration
  • Full SSR compatible
  • JWT Tokens
  • Expiration/Refresh token

Grant type support

Grant
Authorization code
Implicit
Password
Device code

Module options

{
  endpoints: {
    authorization_endpoint: 'http://auth.server/authorization',
    token_endpoint: 'http://auth.server/token'
    userinfo_endpoint: 'http://auth.server/userinfo'
  }, // Object or 'http://auth.my.server/.well-known/openid-configuration'
  router: false // Auto add auth middleware to the router
}

How to use it

If you want a great open source auth/IAM server : https://www.keycloak.org/ (This one is 🎆)

/!\ Store need to be enable (See https://nuxtjs.org/guide/vuex-store/#activate-the-store) /!\

// TODO