getSsoUrl method

Future<Uri> getSsoUrl(
  1. String serviceCode
)

Gets a browser-openable SSO URL for serviceCode.

Returns a URL containing an authorization code. Opening it in a system browser or any other HTTP client establishes an authenticated session for the target service without reusing this app's cookies.

Uses withAuth to automatically re-authenticate if the portal session has expired.

Implementation

Future<Uri> getSsoUrl(String serviceCode) async {
  return withAuth(() => _portalService.getSsoUrl(serviceCode));
}