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
This package is developed and maintained by the Vapor team at Nodes.
This package is open-sourced software licensed under the MIT license