Authenticate without GAS

A native app, a Genero application that is not behind a Genero Application Server (GAS), such as a mobile, desktop, or Text User Interface (TUI) application, authenticates with the Identity Provider itself.

In your native app, call these functions in the following order:
  1. OAuthAPI.FetchOpenIDMetadata() to retrieve the metadata from the Identity Provider, including the token endpoint and the registration endpoint.
  2. OAuthAPI.RetrievePasswordTokenForNativeApp() to sign the user in and obtain the access token and the refresh token.
  3. OAuthAPI.InitNativeApp() to register the tokens, so that the access token is refreshed automatically when it expires.

For a code sample, go to OAuthAPI.InitNativeApp().