Authentication Flow
This is the first part of the Oauth Flow. It is the process where your application redirects users to the authorization server, users authenticate and grant permissions, and your application receives an authorization code.
OAuth Flow Diagram
This is what the OAuth flow looks like for almost all Oauth 2.0 Flows
FileMaker Implementation Notes
In FileMaker we only to handle these steps from the above diagram:
-
- Initiates login - send the to a url with Open Url or webviewer
-
- Somehow handle that redirect. ??
-
- POST request to the token endpoint with the code to get the access and refresh tokens.
Then we need to store the tokens so we can use them later.
Understanding OAuth Apps
Learn what OAuth Apps are and their crucial role in the authorization process
Handle Redirect
The only part of the Oauth Flow that is not easily handled by FileMaker Scripts is the redirect. You need to figure out to listen for the redirect, and then run a script to start the next step of the flow.