Depends on Ubisecure.OAuth2, Ubisecure.QueryString
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
cd ~/.local/share/powershell/Modules
git clone https://github.com/psteniusubi/Ubisecure.SSO.Management.git
$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"