Authenticate without GAS
To authenticate an application that is not behind GAS, for example applications that include mobile, desktop, and Text User Interface (TUI) , you need to implement OAuth in a specific way.
In your application code, these functions need to be called in the following order:
-
OAuthAPI.FetchOpenIDMetadata()
to retrieve the metadata from the Identity Provider from the required URL. OAuthAPI.RetrievePasswordToken()
to return the access token.OAuthAPI.initService()
to register the access token.