Skip to content

Dolyyyy/nuxt-oidc-custom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nuxt-oidc-custom

OpenID ConnectID Custom authentication support for Nuxt.js

Usage

Install

$ npm install nuxt-oidc

Configuration

// nuxt.config.js
{
  modules: ["@nuxtjs/axios", "nuxt-oidc"],
  oidc: {
    issuer: "<Your issuer>",
    clientId: "<Client ID>",
    clientSecret: "<Client Secret>",
    callbackUrl: "http://localhost:3000/oidc/callback",
    scope: ["email", "profile", "address"],
    // express-session configuration
    session: {
      secret: "<secret>",
      cookie: {},
      resave: false,
      saveUninitialized: false,
    },
  },
}

Use 'oidc' middleware

Use oidc middleware for pages that require authentication.

<script>
export default {
  middleware: ["oidc"],
};
</script>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published