/admin-panel-nodes-sso

Nodes SSO for AdminPanel

Primary LanguageSwiftMIT LicenseMIT

Admin Panel Nodes SSO

Language Build Status codecov GitHub license

Integration

Update your Package.swift file.

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

Add NodesSSO as SSOProvider when adding AdminPanel.Provider

try drop.addProvider(AdminPanel.Provider(drop: drop, ssoProvider: NodesSSO(droplet: drop)))

Make sure configs are added / setup adminpanel.json

"ssoRedirectUrl": "#SSO_REDIRECT_URL",
"ssoCallbackPath": "#SSO_CALLBACK_PATH",
"nodesSSOSalt": "#NODES_SSO_SALT"

(Note these 3 vars will be replaced in deployment)

Note this package is also used for prototyping features before making PRs to Vapor

🏆 Credits

This package is developed and maintained by the Vapor team at Nodes.

📄 License

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