getIdentityToken: Get the User's Identity Token

View source: R/auth.R

getIdentityTokenR Documentation

Get the User's Identity Token

Description

Retrieve the user's OpenID Connect identity token for the current Posit Workbench session, if any. This token can be used to authenticate with services that trust Workbench's identity provider.

Usage

getIdentityToken()

Value

A list containing:

token

The identity token string.

expiry

The token expiry time as a POSIXct datetime object.

Throws an error if the token cannot be retrieved.

Note

This function works for any IDE running within a Posit Workbench session, not just RStudio.


rstudioapi documentation built on Jan. 16, 2026, 5:18 p.m.