Rendering with User Input
The base domain, header, url token extension, and config can be flexibly rendered with user input from Connector Auths.
Last updated
Was this helpful?
The base domain, header, url token extension, and config can be flexibly rendered with user input from Connector Auths.
Last updated
Was this helpful?
In the , additional fields can be configured which are then shown in the Connector Auth creation and can be used for rendering in these fields:
Base Domain
Header (inside custom_headers
)
URL Token Extension
Authentication Configuration (inside config
)
For security reasons, not all can be used, only these variables are available:
account_id
api_endpoint
api_version
authorization_request_url
client_id
client_secret
config
domain
encoding
environment
grant_type
integration_code
key
port
protocol
refresh_request_url
region
scope
secret
slug
subdomain
system_id
EverReal has custom subdomains, OAuth2, and different environments which have different client IDs and secrets.
To be fully backwards compatible, for Connector Auths created before this change (these have the api_endpoint
variable specified, which consists of the entire base domain), one needs to check whether subdomain is defined
and, based on that, use either the subdomain
or the api_endpoint
to construct the OAuth2-specific URLs.
Base Domain
As mentioned above, the base domain is backwards compatible by design, as it's by default overwritten with the api_endpoint
variables if it is specified.
All other fields are not affected by the rendering.
Snowflake is an especially complex connector, as it requires custom OAuth2 clients and multiple account identifiers. See our Snowflake Connector docs for more details and the rendered Connector Auth form.
To avoid overcomplicating the rendering further, all existing Snowflake Connector Auths were migrated to work with the updated Connector setup, ensuring backwards compatibility was not an issue.
Due to the high number of required details in Snowflake, this is one of the most extensive configurations. Additionally, all fields are required, as no defaults can be set.
Base Domain
For Snowflake, and most other Connectors, the 'base' part of the base domain is the same as the 'base' part of the OAuth2 authorization URL:
This is also a good example of making the input for the user as easy as possible, as users can simply copy and based their organization and account name (which are by default shown in upper case letters in Snowflake) in the form and they do not need to know how exactly the URL is constructed.
Header
For SharpSpring, the auth token and another variable need to be sent as query parameters instead of header values.
Authentication Configuration
The configuration is a fairly regular basic auth configuration, except for the Account ID field.
URL Token Extension
Here the {{ endpoint }}
always needs to be specified and the auth token is always referenced to as token
.
Header
In the Header token_in_header
needs to be set to false
, so that it is available in the URL Token Extension fields.
Thus, the user needs to specify their subdomain and can optionally set their environment (default is production); see for an example.
The header follows the standard , except for one custom header, whose value is rendered from the Connector Auth user input: