ghost-passport-sso

0.0.1 • Public • Published

Ghost Passport Single Sign-on

This Ghost adapter allows you to use Passport authentication strategies to provide Single Sign-On (SSO) capabilities.

NOTE: development in progress. Do not use it!

Instalation

You need to enter the following commands in the directory in which ghost is installed. For example, if you followed the Ghost setup guide, it'll be in /var/www/ghost.

npm install ghost-passport-sso
mkdir -p content/adapters/sso
cp -r node_modules/ghost-passport-sso content/adapters/sso/ghost-passport-sso

Configuration

Create new azure storage account, and get the connection string (can be found in the preview portal)

Add sso block to file config.js in each environment as below:

  "adapters": {
      "sso": {
        "active": "ghost-passport-sso",
        "ghost-passport-sso": [
            {
                "id": "google", 
                "name": "Google",
                "strategy": "passport-google-oauth20",
                "options": {
                    "clientID": "YourClientIdStringHere",
                    "clientSecret": "YourClientSecretStringHere",
                    "scope": ["profile", "email"]
                }
            },
            {
                "id": "github", 
                "name": "GitHub",
                "strategy": "passport-github2",
                "options": {
                    "clientID": "YourClientIdStringHere",
                    "clientSecret": "YourClientIdStringHere",
                    "scope": ["user:email"]
                }
            }
        ]
      }
  },

Examples

License

Released under the MIT license.

Package Sidebar

Install

npm i ghost-passport-sso

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

5.48 kB

Total Files

4

Last publish

Collaborators

  • delfimrego