Swiftpack.co - Package - nodes-vapor/admin-panel-nodes-sso

Admin Panel Nodes SSO 🔑

Swift Version Vapor Version Circle CI codebeat badge codecov Readme Score GitHub license

📦 Installation

Update your Package.swift file.

Swift 3

.Package(url: "https://github.com/nodes-vapor/admin-panel-nodes-sso.git", majorVersion: 0, minor: 4)

Swift 4

.package(url: "https://github.com/nodes-vapor/admin-panel-nodes-sso.git", .upToNextMinor(from: "0.4.3")),
targets: [
    .target(
        name: "App",
        dependencies: [
            ...
            "AdminPanelNodesSSO"
        ]
    ),
    ...
]

Install resources

Copy the sso-button.leaf file from Resources/Views/AdminPanel/Login/ and the nodes.png from Public/images/ from this repo into your project into the same directories. You can download this repo as a zip and then move the files into the mentioned directories. Remember to check that you're not overwriting any files in your project.

🚀 Getting started

import AdminPanelNodesSSO

Add the Provider

try addProvider(AdminPanelNodesSSO.Provider.self)

Embed the Button

Within index.leaf in your Resources/Views/AdminPanel/Login/ insert right after the opening <body> tag:

#embed("AdminPanel/Login/sso-button")

🔧 Configurations

Make sure configs are added to adminpanel-sso-nodes.json:

| Key | Example value | Required | Description | | -------------- | ------------------------------------- | -------- | ---------------------------------------- | | redirectUrl | http://provider.com/sso/my-web-site | Yes | The url used for opening up the SSO login. | | salt | som3Rand0mS4lt | Yes | The salt to use for the hasher. | | loginPath | /admin/sso/login | No | The project path to start the SSO flow. | | callbackPath | /admin/sso/callback | No | The project path after user has logged in using SSO. |

🏆 Credits

This package is developed and maintained by the Vapor team at Nodes. The package owner for this project is Steffen.

📄 License

This package is open-sourced software licensed under the MIT license

Github

link
Stars: 4
Help us keep the lights on

Used By

Total: 1

Releases

0.5.2 - Apr 16, 2018

Fixed

  • SSO users are now correctly being persisted when logging in.

0.5.1 - Mar 7, 2018

Fixed

  • SSO is now also skipped when running on "localhost" - before it would only happen for "0.0.0.0" or "127.0.0.1"

0.5.0 - Mar 6, 2018

Changed

  • depends on Admin Panel Provider 0.5.x

0.4.3 - Jan 5, 2018

Now pins to Admin Panel version 0.4

0.4.2 - Oct 23, 2017

Changed

  • Now pins to Admin Panel version 0.2