device_flow_auth: Authenticate using device flow

Description Usage Arguments Value Examples

View source: R/auth.R

Description

Get an ID token using the OpenIDConnect Device Flow.

Usage

1
device_flow_auth(endpoint, client_id, scopes = c("openid", "offline_access"))

Arguments

endpoint

An oauth_endpoint with a device endpoint specified in it

client_id

The client ID for which the token should be obtained

scopes

the requested scopes, default to c("openid", "offline_access")

Value

The credentials retrieved from the token endpoint

Examples

1
2
3
4
5
## Not run: 
endpoint <- discover("https://auth.molgenis.org")
device_flow_auth(endpoint, "b396233b-cdb2-449e-ac5c-a0d28b38f791")

## End(Not run)

fdlk/molgenis-r-auth documentation built on Sept. 19, 2021, 3:06 p.m.