itpropro/nuxt-oidc-auth
关于
OIDC (OpenID connect) focused auth module for Nuxt
安全与隐私实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文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).
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 or per-page 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 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.
探索相关项目
加载中…