[ Version ( since = "3.54" ) ]
public Cookie? acquire_prt_sso_cookie_sync (Object account, string sso_url, Array scopes, string redirect_uri, Cancellable? cancellable = null) throws Error
Synchronously calls acquirePrtSsoCookie D-Bus method on the Microsoft OAuth2 broker service and converts the result into a
new Cookie.
The account object needs to be taken from the accounts list that is returned by get_accounts_sync. The SSO URL is the OAuth2 authentication endpoint. The scopes are the requested scopes for the OAuth2 service (usually only https://graph.microsoft.com/.default). The redirect URI is the OAuth2 service redirect URI.
| this |
an MsOapxbc |
| account |
an account returned from get_accounts_sync |
| sso_url |
an SSO URL to acquire the PRT SSO cookie for. |
| scopes |
array of scopes |
| redirect_uri |
redirect URI |
| cancellable |
|
an acquired cookie, or null on error |