import { AuthzDetailsElement } from "https://deno.land/x/authlete_deno@v1.2.7/mod.ts";
A class that represents an element in authorization_details
which
is defined in "OAuth 2.0 Rich Authorization Requests".
Properties
The actions.
From "OAuth 2.0 Rich Authorization Requests":
"An array of strings representing the kinds of actions to be taken at the resource. The values of the strings are determined by the API being protected."
The identifier of a specific resource.
From "OAuth 2.0 Rich Authorization Requests":
"A string identifier indicating a specific resource available at the API."
The resources and/or resource servers.
From "OAuth 2.0 Rich Authorization Requests":
"An array of strings representing the location of the resource or resource server. This is typically composed of URIs."
The other fields (than type
, locations
, actions
and identifier
)
as a string in the JSON format.
The content varies depending on the type
field.
The types or levels of privilege.
From "OAuth 2.0 Rich Authorization Requests":
"An array of strings representing the types or levels of privilege being requested at the resource."