Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.05 KB

README.md

File metadata and controls

42 lines (31 loc) · 1.05 KB

PowerShell bindings for Ubisecure SSO Management API

Depends on Ubisecure.OAuth2, Ubisecure.QueryString

Install from github.com

Windows

cd /d %USERPROFILE%\Documents\WindowsPowerShell\Modules
git clone https://github.com/psteniusubi/Ubisecure.SSO.Management.git

Note! With PowerShell Core module path is %USERPROFILE%\Documents\PowerShell\Modules

Linux

cd ~/.local/share/powershell/Modules
git clone https://github.com/psteniusubi/Ubisecure.SSO.Management.git

Example

$client = New-OAuthClientConfig -Json @"
{
    "redirect_uris":  [
                          "http://localhost/public"
                      ],
    "grant_types":  [
                        "authorization_code"
                    ],
    "client_id":  "public",
    "client_secret":  "public"
}
"@

New-SSOLogon -Client $client -Uri "https://login.example.ubidemo.com" -ManageUri "https://manage.example.ubidemo.com" -Browser "default"

Get-SSOObject -Type "site" "System"