Description Usage Arguments Details Value Examples
This is a wrapper to httr::oauth2.0_token()
, dedicated to Azure OAuth access.
1 2 3 |
tenant_id |
character, tenant id issued by Azure |
application_id |
character, application id issued by Azure |
name |
character, name of application (optional) |
user_params |
named list, see |
use_oob |
logical, see |
... |
other arguments passed to |
The tenant_id
is used to build the endpoint using oauth_endpoint_azure()
.
The application_id
and (optional) name
are used to build the
app using httr::oauth_app()
.
On the Azure side, can build the app from the Azure Portal:
Go to Active Directory > App registrations > New application registration.
For "Application type", choose "Native".
For "Sign-on URL", enter http://localhost:1410
.
Compose this link using tenant_id
and application_id
,
then send to your Azure Tenant adminstrator (maybe that's you)
to activate the permissions:
https://login.microsoftonline.com/{tenant_id}/adminconsent?client_id={application_id}&state=12345&redirect_uri=http://localhost/
For more information on "activating" your app, please see this Azure documentation.
A Token2.0
reference class (RC) object, returned by httr::oauth2.0_token()
.
1 2 3 4 5 6 7 8 | ## Not run:
oauth_token_azure(
tenant_id = "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
application_id = "ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj",
name = "test-app"
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.