getSsoUrl abstract method

Future<Uri> getSsoUrl(
  1. String serviceCode
)

Returns a URL that authenticates the user with a target NTUT service via OAuth2 authorization code.

The returned URL contains an authorization code. Opening it in any HTTP client (including a system browser) will establish a session for that service — no cookies from this app are needed.

This enables "open in browser" functionality: the app performs login and SSO negotiation, then hands off the resulting URL to the system browser.

Requires an active portal session (call login first).

Throws an Exception if the SSO form is not found (user may not be logged in).

Implementation

Future<Uri> getSsoUrl(String serviceCode);