Used by Ubisecure.OAuth2, Ubisecure.SSO.Management
Windows
cd /d %USERPROFILE%\Documents\WindowsPowerShell\Modules
git clone https://github.com/psteniusubi/Ubisecure.QueryString.git
Linux
cd ~/.local/share/powershell/Modules
git clone https://github.com/psteniusubi/Ubisecure.QueryString.git
$query = New-QueryString |
Add-QueryString "response_type" "code" |
Add-QueryString "client_id" "public" |
Add-QueryString "scope" "openid" |
Add-QueryString "redirect_uri" "http://localhost/public" |
ConvertTo-QueryString
Start-Process "https://login.example.ubidemo.com/uas/oauth2/authorization?$query"