nuxt-oidc-auth v1.0.0-beta.5
Nuxt OIDC Auth
Welcome to Nuxt OIDC Auth, a Nuxt module focusing on native OIDC (OpenID Connect) based authentication for Nuxt with a high level of customizability and security for SSR applications.
This module doesn't use any external dependencies outside of the unjs ecosystem except for token validation (the well known and tested jose
library for JWT interactions).
š Documentation
Features
ā©ļøĀ Automatic session and token renewal
š¾Ā Encrypted server side refresh/access token storage powered by Nitro storage
šĀ Token validation
šĀ Secured & sealed cookies sessions
āļøĀ Presets for popular OIDC providers
š¤Ā Global middleware with automatic redirection to default provider or a custom login page (see playground)
š¤Ā useOidcAuth
composable for getting the user information, logging in and out, refetching the current session and triggering a token refresh
šļøĀ Multi provider support with auto registered routes (/auth/<provider>/login
, /auth/<provider>/logout
, /auth/<provider>/callback
)
šĀ Generic spec OpenID compatible connect provider with fully configurable OIDC flow (state, nonce, PKCE, token request, ...)
šĀ Session expiration check
Installation
Add nuxt-oidc-auth
dependency to your project
With nuxi
pnpm dlx nuxi@latest module add nuxt-oidc-auth
or manually
pnpm add -D nuxt-oidc-auth
Add nuxt-oidc-auth
to the modules
section of nuxt.config.ts
export default defineNuxtConfig({
modules: [
'nuxt-oidc-auth'
]
})
ā ļø Disclaimer
This module is still in development, feedback and contributions are welcome! Use at your own risk.
5 months ago
5 months ago
5 months ago
10 months ago
10 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
8 months ago
8 months ago
8 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago