All Projects → InCuca → vuepress-pass

InCuca / vuepress-pass

Licence: MIT license
VuePress authentication plugin

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to vuepress-pass

vuepress-plugin-svg-icons
🔥 SVG sprite plugin for VuePress
Stars: ✭ 17 (+30.77%)
Mutual labels:  vuepress, vuepress-plugin
vuepress-plugin-feed
RSS, Atom, and JSON feeds generator plugin for VuePress 1.x
Stars: ✭ 46 (+253.85%)
Mutual labels:  vuepress, vuepress-plugin
vuepress-creator
A lightweight creator for VuePress project.
Stars: ✭ 23 (+76.92%)
Mutual labels:  vuepress, vuepress-plugin
vuepress-plugin-autometa
Auto meta tags plugin for VuePress 1.x
Stars: ✭ 40 (+207.69%)
Mutual labels:  vuepress, vuepress-plugin
vuepress-plugin-demo-code
📝 Demo and code plugin for vuepress
Stars: ✭ 119 (+815.38%)
Mutual labels:  vuepress, vuepress-plugin
vuepress-plugin-run
vuepress 在线运行 Vue 单文件
Stars: ✭ 28 (+115.38%)
Mutual labels:  vuepress, vuepress-plugin
vuepress-theme-ououe
A blog theme for VuePress
Stars: ✭ 77 (+492.31%)
Mutual labels:  vuepress
vuepress-plugin-sitemap
Sitemap generator plugin for vuepress.
Stars: ✭ 92 (+607.69%)
Mutual labels:  vuepress
vuepress-theme-blog-vuetify
💥The world's most simple, beautiful and customizable 2 columns VuePress blog theme built with Vuetify
Stars: ✭ 37 (+184.62%)
Mutual labels:  vuepress
mtgjson-website
MTGJSON Documentation Front-End Application built with Vuepress 1
Stars: ✭ 29 (+123.08%)
Mutual labels:  vuepress
element-ui-s
🖖element-ui-s is a interesting component library 🦄https://shuangda1018.github.io/element-ui-s
Stars: ✭ 33 (+153.85%)
Mutual labels:  vuepress
qv2ray.github.io
🌟 Qv2ray 项目官方文档 🌟 ,使用 Vuepress / Markdown, 欢迎帮助完善 & 提交 PR!
Stars: ✭ 71 (+446.15%)
Mutual labels:  vuepress
vuepress-homepage
📄 Elegant & friendly homepage (bio, tech portfolio, resume, doc...) template with Markdown and VuePress
Stars: ✭ 302 (+2223.08%)
Mutual labels:  vuepress
vuepress-tools
A curated collection of Awesome vuepress themes and plugins
Stars: ✭ 37 (+184.62%)
Mutual labels:  vuepress
vuepress-theme-maker
🐉 A flat and clean Blog Theme for VuePress site | 一款多配置、简约风的VuePress 博客主题.
Stars: ✭ 67 (+415.38%)
Mutual labels:  vuepress
vue-telescope-extensions
Browser extensions for Vue Telescope
Stars: ✭ 121 (+830.77%)
Mutual labels:  vuepress
berlinblockchainweek
Website for Berlin Blockchain Week 2018
Stars: ✭ 15 (+15.38%)
Mutual labels:  vuepress
vuepress-web-app
📝 采用 VuePress 构建的 Web 应用程序,支持 Pwa、Github Issues 评论、Prettier Markdown 等。
Stars: ✭ 67 (+415.38%)
Mutual labels:  vuepress
developer-docs
developers.komodoplatform.com
Stars: ✭ 24 (+84.62%)
Mutual labels:  vuepress
growi-docs
⚓ GROWI documentation repository
Stars: ✭ 20 (+53.85%)
Mutual labels:  vuepress

VuePress Pass

Travis

VuePress oAuth2 - Implicity Grant plugin

Another options (behind a proxy server): Pomerium, Okta, vuepress-pomerium

Usage

npm i --save InCuca/vuepress-pass

.vuepress/config.js:

const Pass = require('vuepress-pass');

module.exports = {
  plugins: [
        [Pass, {
            url: 'https://foo.bar/oauth',
            redirectUri: 'https://foo.bar/callback',
            clientId: 'foobar',
            authenticated(redirectQuery, redirect) { redirect('/'); }, // optional
            unauthenticated(authQuery, redirect) { redirect(authQuery); }, // optional
            setState(state) { localStorage.setItem('auth', state); }, // optional
            getState() { return localStorage.getItem('auth'); }, // optional
        }],
    ]
};
  • authenticated is called when user comes back from provider authentication
  • unauthenticated is called when user need's authentication on provide and will redirect (through redirect function)

more details

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].