View source: R/verifiedpermissions_operations.R
verifiedpermissions_is_authorized_with_token | R Documentation |
Makes an authorization decision about a service request described in the parameters. The principal in this request comes from an external identity source in the form of an identity token formatted as a JSON web token (JWT). The information in the parameters can also define additional context that Verified Permissions can include in the evaluation. The request is evaluated against all matching policies in the specified policy store. The result of the decision is either Allow
or Deny
, along with a list of the policies that resulted in the decision.
See https://www.paws-r-sdk.com/docs/verifiedpermissions_is_authorized_with_token/ for full documentation.
verifiedpermissions_is_authorized_with_token(
policyStoreId,
identityToken = NULL,
accessToken = NULL,
action = NULL,
resource = NULL,
context = NULL,
entities = NULL
)
policyStoreId |
[required] Specifies the ID of the policy store. Policies in this policy store will be used to make an authorization decision for the input. |
identityToken |
Specifies an identity token for the principal to be authorized. This
token is provided to you by the identity provider (IdP) associated with
the specified identity source. You must specify either an Must be an ID token. Verified Permissions returns an error if the
|
accessToken |
Specifies an access token for the principal to be authorized. This token
is provided to you by the identity provider (IdP) associated with the
specified identity source. You must specify either an Must be an access token. Verified Permissions returns an error if the
|
action |
Specifies the requested action to be authorized. Is the specified principal authorized to perform this action on the specified resource. |
resource |
Specifies the resource for which the authorization decision is made. For example, is the principal allowed to perform the action on the resource? |
context |
Specifies additional context that can be used to make more granular authorization decisions. |
entities |
Specifies the list of resources and their associated attributes that Verified Permissions can examine when evaluating the policies. You can't include principals in this parameter, only resource and action entities. This parameter can't include any entities of a type that matches the user or group entity types that you defined in your identity source.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.