1.0.8 • Published 5 years ago
yet-another-nuxt-oauth2 v1.0.8
YANO : Yet another nuxt oauth2 module
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 :fireworks:)
/!\ Store need to be enable (See https://nuxtjs.org/guide/vuex-store/#activate-the-store) /!\
// TODO