Code Monkey home page Code Monkey logo

passport-apple-multi-tenant's Introduction

 Request Context Based and Multi Tenant Sign in with Apple for Passport.js 

This strategy integrates Apple login. Is useful specially when you're trying to use it with NestJS Passaport Module, where you don't have so much control of passport instances and uses.

Installation

npm install --save passport-apple-multi-tenant

Usage

Strategy Options

  • clientInfoGenerator: Function/Async Function which will return the following properties:
    • clientID: Apple OAuth2.0 Client ID
    • teamID: Apple Developer Team ID
    • keyID: Apple Key ID
    • key: Contents of the Apple Key. If you want the library to load the contents, use keyFilePath instead.
    • keyFilePath: File path to Apple Key; library will load content using fs.readFileSync
    • scope: An array of scopes, e.g., ['email', 'name']
    • callbackURL: Callback URL configured and authorized on your apple service provider
  • authorizationURL: (Optional) Authorization URL; default is https://appleid.apple.com/auth/authorize
  • tokenURL: (Optional) Token URL; default is https://appleid.apple.com/auth/token
  • sessionKey: (Optional) Session Key
  • state: (Optional) Should state parameter be used
  • passReqToCallback: (Optional) Should request be passed to the validate callback; default is false

Validate Callback

The validate callback is called after successful authentication and contains the accessToken, refreshToken, and profile.

License

Licensed under MIT.

passport-apple-multi-tenant's People

Contributors

brunosoaresds avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.