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:
OAuthAPI.FetchOpenIDMetadata()to retrieve the metadata from the Identity Provider, including the token endpoint and the registration endpoint.OAuthAPI.RetrievePasswordTokenForNativeApp()to sign the user in and obtain the access token and the refresh token.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().