| getOAuthIntegrations | R Documentation |
Retrieve a list of all OAuth integrations configured in Posit Workbench. This returns metadata about each integration including its authentication status, scopes, and configuration details.
getOAuthIntegrations()
A list of OAuth integrations, where each element contains:
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 (useful for getOAuthCredentials()).
Returns an empty list if no integrations are configured.
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 all OAuth integrations
integrations <- getOAuthIntegrations()
# Show all integrations
for (int in integrations) {
cat(sprintf("%s (%s): %s\n",
int$name,
int$guid,
if (int$authenticated) "authenticated" else "not authenticated"))
}
# Filter to authenticated integrations only
authenticated <- Filter(function(x) x$authenticated, integrations)
# Get credentials for the first authenticated integration
if (length(authenticated) > 0) {
creds <- getOAuthCredentials(audience = authenticated[[1]]$guid)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.