| getOAuthIntegration | R Documentation |
Retrieve metadata for a specific OAuth integration by its globally unique identifier.
This is a convenience function that calls findOAuthIntegration(guid = guid).
getOAuthIntegration(guid)
guid |
The globally unique identifier (GUID) of the OAuth integration to retrieve. |
A list containing the integration metadata:
The integration type (e.g., "custom").
The integration name.
The display name (may be NULL).
The OAuth client ID.
The authorization URL.
The token URL.
A character vector of OAuth scopes.
The OAuth issuer URL.
Boolean indicating if currently authenticated.
The globally unique identifier for this integration.
Returns NULL if no integration with the specified GUID is found.
This function requires Posit Workbench version 2026.01.0 or later. It works in any IDE running within a Posit Workbench session (not just RStudio).
## Not run:
# Get a specific integration by GUID
integration <- getOAuthIntegration("4c1cfecb-1927-4f19-bc2f-d8ac261364e0")
if (!is.null(integration)) {
cat("Found integration:", integration$name, "\n")
cat("Authenticated:", integration$authenticated, "\n")
# Get credentials if authenticated
if (integration$authenticated) {
creds <- getOAuthCredentials(audience = integration$guid)
}
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.