Within Gravity, an Auth is a component that defines how Gravity will connect to the system. Multiple Auths can exist where needed, and creating an Auth is one of the first and most critical steps when building your app.
Considering that standards regarding Auth are very loose, and third-party applications tend to build custom requirements into their systems, we have designed the Auth section of Gravity to be highly extensible and customizable to account for any use case.
The fundamental parts of any Auth include:
Setting up the Gravity connection to the application (API keys, etc.). This is typically done at the outset using apps@mindcloudconnections.com to create a developer account with third party.
Retrieving the standard arguments (username and password, for example). These are preconfigured for each auth type.
Adding in any custom arguments and mapping.
Triggering an action as needed.
Creating an Auth
When you create an Auth, you will see the following:
Since OAuth 2.0 is the most common Auth type, it is the default. However, the following Auth types are supported:
Each is configured according to the type.
Test Credentials
Each Auth type gives you option to set Test Credentials, which is represented here (using OAuth 2.0 as an example):
You can also set which action will be used to validate the auth.
Default Credentials
When running an Action from the App Screen, it will always use the Default credentials. Make sure to set whichever test credentials you want to be default as default.