@loopback/docs
Version:
Documentation for LoopBack 4
1,603 lines • 103 kB
JSON
{
"metadata": {
"toolPackage": "@microsoft/api-extractor",
"toolVersion": "7.3.8",
"schemaVersion": 1003,
"oldestForwardsCompatibleVersion": 1001
},
"kind": "Package",
"canonicalReference": "@loopback/authorization!",
"docComment": "",
"name": "@loopback/authorization",
"members": [
{
"kind": "EntryPoint",
"canonicalReference": "@loopback/authorization!",
"name": "",
"members": [
{
"kind": "Variable",
"canonicalReference": "@loopback/authorization!ANONYMOUS:var",
"docComment": "",
"excerptTokens": [
{
"kind": "Reference",
"text": "ANONYMOUS"
},
{
"kind": "Content",
"text": " = \"$anonymous\""
}
],
"releaseTag": "Public",
"name": "ANONYMOUS",
"variableTypeTokenRange": {
"startIndex": 0,
"endIndex": 0
}
},
{
"kind": "Variable",
"canonicalReference": "@loopback/authorization!AUTHENTICATED:var",
"docComment": "",
"excerptTokens": [
{
"kind": "Reference",
"text": "AUTHENTICATED"
},
{
"kind": "Content",
"text": " = \"$authenticated\""
}
],
"releaseTag": "Public",
"name": "AUTHENTICATED",
"variableTypeTokenRange": {
"startIndex": 0,
"endIndex": 0
}
},
{
"kind": "Variable",
"canonicalReference": "@loopback/authorization!AUTHORIZATION_CLASS_KEY:var",
"docComment": "",
"excerptTokens": [
{
"kind": "Reference",
"text": "AUTHORIZATION_CLASS_KEY"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Reference",
"text": "MetadataAccessor"
},
{
"kind": "Content",
"text": "<"
},
{
"kind": "Reference",
"text": "AuthorizationMetadata"
},
{
"kind": "Content",
"text": ", "
},
{
"kind": "Reference",
"text": "ClassDecorator"
},
{
"kind": "Content",
"text": ">"
}
],
"releaseTag": "Public",
"name": "AUTHORIZATION_CLASS_KEY",
"variableTypeTokenRange": {
"startIndex": 2,
"endIndex": 8
}
},
{
"kind": "Variable",
"canonicalReference": "@loopback/authorization!AUTHORIZATION_METHOD_KEY:var",
"docComment": "",
"excerptTokens": [
{
"kind": "Reference",
"text": "AUTHORIZATION_METHOD_KEY"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Reference",
"text": "MetadataAccessor"
},
{
"kind": "Content",
"text": "<"
},
{
"kind": "Reference",
"text": "AuthorizationMetadata"
},
{
"kind": "Content",
"text": ", "
},
{
"kind": "Reference",
"text": "MethodDecorator"
},
{
"kind": "Content",
"text": ">"
}
],
"releaseTag": "Public",
"name": "AUTHORIZATION_METHOD_KEY",
"variableTypeTokenRange": {
"startIndex": 2,
"endIndex": 8
}
},
{
"kind": "Namespace",
"canonicalReference": "@loopback/authorization!AuthorizationBindings:namespace",
"docComment": "/**\n * Binding keys used by authorization component.\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "export declare namespace "
},
{
"kind": "Reference",
"text": "AuthorizationBindings"
},
{
"kind": "Content",
"text": " "
}
],
"releaseTag": "Public",
"name": "AuthorizationBindings",
"members": [
{
"kind": "Variable",
"canonicalReference": "@loopback/authorization!AuthorizationBindings.COMPONENT:var",
"docComment": "",
"excerptTokens": [
{
"kind": "Reference",
"text": "COMPONENT"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Reference",
"text": "BindingKey"
},
{
"kind": "Content",
"text": "<"
},
{
"kind": "Reference",
"text": "AuthorizationComponent"
},
{
"kind": "Content",
"text": ">"
}
],
"releaseTag": "Public",
"name": "COMPONENT",
"variableTypeTokenRange": {
"startIndex": 2,
"endIndex": 6
}
},
{
"kind": "Variable",
"canonicalReference": "@loopback/authorization!AuthorizationBindings.METADATA:var",
"docComment": "",
"excerptTokens": [
{
"kind": "Reference",
"text": "METADATA"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Reference",
"text": "BindingKey"
},
{
"kind": "Content",
"text": "<"
},
{
"kind": "Reference",
"text": "AuthorizationMetadata"
},
{
"kind": "Content",
"text": ">"
}
],
"releaseTag": "Public",
"name": "METADATA",
"variableTypeTokenRange": {
"startIndex": 2,
"endIndex": 6
}
}
]
},
{
"kind": "Class",
"canonicalReference": "@loopback/authorization!AuthorizationComponent:class",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "export declare class "
},
{
"kind": "Reference",
"text": "AuthorizationComponent"
},
{
"kind": "Content",
"text": " implements "
},
{
"kind": "Reference",
"text": "Component"
},
{
"kind": "Content",
"text": " "
}
],
"releaseTag": "Public",
"name": "AuthorizationComponent",
"members": [
{
"kind": "Property",
"canonicalReference": "@loopback/authorization!AuthorizationComponent#bindings:member",
"docComment": "",
"excerptTokens": [
{
"kind": "Reference",
"text": "bindings"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Content",
"text": "import(\"@loopback/core\")."
},
{
"kind": "Reference",
"text": "Binding"
},
{
"kind": "Content",
"text": "<import(\"@loopback/core\")."
},
{
"kind": "Reference",
"text": "Interceptor"
},
{
"kind": "Content",
"text": ">[]"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "bindings",
"propertyTypeTokenRange": {
"startIndex": 2,
"endIndex": 7
},
"isStatic": false
}
],
"implementsTokenRanges": [
{
"startIndex": 3,
"endIndex": 5
}
]
},
{
"kind": "Interface",
"canonicalReference": "@loopback/authorization!AuthorizationContext:interface",
"docComment": "/**\n * Request context for authorization\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "export interface "
},
{
"kind": "Reference",
"text": "AuthorizationContext"
},
{
"kind": "Content",
"text": " "
}
],
"releaseTag": "Public",
"name": "AuthorizationContext",
"members": [
{
"kind": "PropertySignature",
"canonicalReference": "@loopback/authorization!AuthorizationContext#invocationContext:member",
"docComment": "/**\n * Context for the invocation\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "invocationContext"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Reference",
"text": "InvocationContext"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "invocationContext",
"propertyTypeTokenRange": {
"startIndex": 2,
"endIndex": 3
}
},
{
"kind": "PropertySignature",
"canonicalReference": "@loopback/authorization!AuthorizationContext#principals:member",
"docComment": "/**\n * An array of principals identified for the request - it should come from authentication\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "principals"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Reference",
"text": "Principal"
},
{
"kind": "Content",
"text": "[]"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "principals",
"propertyTypeTokenRange": {
"startIndex": 2,
"endIndex": 4
}
},
{
"kind": "PropertySignature",
"canonicalReference": "@loopback/authorization!AuthorizationContext#resource:member",
"docComment": "/**\n * An name for the target resource to be accessed, such as `OrderController.prototype.cancelOrder`\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "resource"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Content",
"text": "string"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "resource",
"propertyTypeTokenRange": {
"startIndex": 2,
"endIndex": 3
}
},
{
"kind": "PropertySignature",
"canonicalReference": "@loopback/authorization!AuthorizationContext#roles:member",
"docComment": "/**\n * An array of roles for principals\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "roles"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Reference",
"text": "Role"
},
{
"kind": "Content",
"text": "[]"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "roles",
"propertyTypeTokenRange": {
"startIndex": 2,
"endIndex": 4
}
},
{
"kind": "PropertySignature",
"canonicalReference": "@loopback/authorization!AuthorizationContext#scopes:member",
"docComment": "/**\n * An array of scopes representing granted permissions - usually come from access tokens\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "scopes"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Content",
"text": "string[]"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "scopes",
"propertyTypeTokenRange": {
"startIndex": 2,
"endIndex": 3
}
}
],
"extendsTokenRanges": []
},
{
"kind": "Enum",
"canonicalReference": "@loopback/authorization!AuthorizationDecision:enum",
"docComment": "/**\n * Decisions for authorization\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "export declare enum "
},
{
"kind": "Reference",
"text": "AuthorizationDecision"
},
{
"kind": "Content",
"text": " "
}
],
"releaseTag": "Public",
"name": "AuthorizationDecision",
"members": [
{
"kind": "EnumMember",
"canonicalReference": "@loopback/authorization!AuthorizationDecision.ABSTAIN:member",
"docComment": "/**\n * No decision\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "ABSTAIN"
},
{
"kind": "Content",
"text": " = "
},
{
"kind": "Content",
"text": "\"Abstain\""
}
],
"releaseTag": "Public",
"name": "ABSTAIN",
"initializerTokenRange": {
"startIndex": 2,
"endIndex": 3
}
},
{
"kind": "EnumMember",
"canonicalReference": "@loopback/authorization!AuthorizationDecision.ALLOW:member",
"docComment": "/**\n * Access allowed\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "ALLOW"
},
{
"kind": "Content",
"text": " = "
},
{
"kind": "Content",
"text": "\"Allow\""
}
],
"releaseTag": "Public",
"name": "ALLOW",
"initializerTokenRange": {
"startIndex": 2,
"endIndex": 3
}
},
{
"kind": "EnumMember",
"canonicalReference": "@loopback/authorization!AuthorizationDecision.DENY:member",
"docComment": "/**\n * Access denied\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "DENY"
},
{
"kind": "Content",
"text": " = "
},
{
"kind": "Content",
"text": "\"Deny\""
}
],
"releaseTag": "Public",
"name": "DENY",
"initializerTokenRange": {
"startIndex": 2,
"endIndex": 3
}
}
]
},
{
"kind": "Class",
"canonicalReference": "@loopback/authorization!AuthorizationError:class",
"docComment": "/**\n * The custom error class that describes the error thrown by the authorization module. Should be extracted to the common layer shared by authentication and authorization.\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "export declare class "
},
{
"kind": "Reference",
"text": "AuthorizationError"
},
{
"kind": "Content",
"text": " extends "
},
{
"kind": "Reference",
"text": "Error"
},
{
"kind": "Content",
"text": " "
}
],
"releaseTag": "Public",
"name": "AuthorizationError",
"members": [
{
"kind": "Property",
"canonicalReference": "@loopback/authorization!AuthorizationError#code:member",
"docComment": "/**\n * Machine readable code, can be understood by any clients\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "code"
},
{
"kind": "Content",
"text": "?: "
},
{
"kind": "Content",
"text": "string"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "code",
"propertyTypeTokenRange": {
"startIndex": 2,
"endIndex": 3
},
"isStatic": false
},
{
"kind": "Property",
"canonicalReference": "@loopback/authorization!AuthorizationError#statusCode:member",
"docComment": "/**\n * The status code for HTTP requests\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "statusCode"
},
{
"kind": "Content",
"text": "?: "
},
{
"kind": "Content",
"text": "number"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "statusCode",
"propertyTypeTokenRange": {
"startIndex": 2,
"endIndex": 3
},
"isStatic": false
}
],
"extendsTokenRange": {
"startIndex": 3,
"endIndex": 5
},
"implementsTokenRanges": []
},
{
"kind": "Class",
"canonicalReference": "@loopback/authorization!AuthorizationInterceptor:class",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "export declare class "
},
{
"kind": "Reference",
"text": "AuthorizationInterceptor"
},
{
"kind": "Content",
"text": " implements "
},
{
"kind": "Reference",
"text": "Provider"
},
{
"kind": "Content",
"text": "<"
},
{
"kind": "Reference",
"text": "Interceptor"
},
{
"kind": "Content",
"text": "> "
}
],
"releaseTag": "Public",
"name": "AuthorizationInterceptor",
"members": [
{
"kind": "Constructor",
"canonicalReference": "@loopback/authorization!AuthorizationInterceptor:constructor(1)",
"docComment": "/**\n * Constructs a new instance of the `AuthorizationInterceptor` class\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "constructor("
},
{
"kind": "Reference",
"text": "authorizers"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Reference",
"text": "Authorizer"
},
{
"kind": "Content",
"text": "[]"
},
{
"kind": "Content",
"text": ", "
},
{
"kind": "Reference",
"text": "options"
},
{
"kind": "Content",
"text": "?: "
},
{
"kind": "Reference",
"text": "AuthorizationOptions"
},
{
"kind": "Content",
"text": ");"
}
],
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [
{
"parameterName": "authorizers",
"parameterTypeTokenRange": {
"startIndex": 3,
"endIndex": 5
}
},
{
"parameterName": "options",
"parameterTypeTokenRange": {
"startIndex": 8,
"endIndex": 9
}
}
]
},
{
"kind": "Method",
"canonicalReference": "@loopback/authorization!AuthorizationInterceptor#intercept:member(1)",
"docComment": "",
"excerptTokens": [
{
"kind": "Reference",
"text": "intercept"
},
{
"kind": "Content",
"text": "("
},
{
"kind": "Reference",
"text": "invocationCtx"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Reference",
"text": "InvocationContext"
},
{
"kind": "Content",
"text": ", "
},
{
"kind": "Reference",
"text": "next"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Reference",
"text": "Next"
},
{
"kind": "Content",
"text": "): "
},
{
"kind": "Reference",
"text": "Promise"
},
{
"kind": "Content",
"text": "<any>"
},
{
"kind": "Content",
"text": ";"
}
],
"isStatic": false,
"returnTypeTokenRange": {
"startIndex": 10,
"endIndex": 12
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [
{
"parameterName": "invocationCtx",
"parameterTypeTokenRange": {
"startIndex": 4,
"endIndex": 5
}
},
{
"parameterName": "next",
"parameterTypeTokenRange": {
"startIndex": 8,
"endIndex": 9
}
}
],
"name": "intercept"
},
{
"kind": "Method",
"canonicalReference": "@loopback/authorization!AuthorizationInterceptor#value:member(1)",
"docComment": "",
"excerptTokens": [
{
"kind": "Reference",
"text": "value"
},
{
"kind": "Content",
"text": "(): "
},
{
"kind": "Reference",
"text": "Interceptor"
},
{
"kind": "Content",
"text": ";"
}
],
"isStatic": false,
"returnTypeTokenRange": {
"startIndex": 2,
"endIndex": 3
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [],
"name": "value"
}
],
"implementsTokenRanges": [
{
"startIndex": 3,
"endIndex": 7
}
]
},
{
"kind": "Interface",
"canonicalReference": "@loopback/authorization!AuthorizationMetadata:interface",
"docComment": "/**\n * Authorization metadata supplied via `@authorize` decorator\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "export interface "
},
{
"kind": "Reference",
"text": "AuthorizationMetadata"
},
{
"kind": "Content",
"text": " "
}
],
"releaseTag": "Public",
"name": "AuthorizationMetadata",
"members": [
{
"kind": "PropertySignature",
"canonicalReference": "@loopback/authorization!AuthorizationMetadata#allowedRoles:member",
"docComment": "/**\n * Roles that are allowed access\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "allowedRoles"
},
{
"kind": "Content",
"text": "?: "
},
{
"kind": "Content",
"text": "string[]"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "allowedRoles",
"propertyTypeTokenRange": {
"startIndex": 2,
"endIndex": 3
}
},
{
"kind": "PropertySignature",
"canonicalReference": "@loopback/authorization!AuthorizationMetadata#deniedRoles:member",
"docComment": "/**\n * Roles that are denied access\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "deniedRoles"
},
{
"kind": "Content",
"text": "?: "
},
{
"kind": "Content",
"text": "string[]"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "deniedRoles",
"propertyTypeTokenRange": {
"startIndex": 2,
"endIndex": 3
}
},
{
"kind": "PropertySignature",
"canonicalReference": "@loopback/authorization!AuthorizationMetadata#resource:member",
"docComment": "/**\n * Name of the resource, default to the method name\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "resource"
},
{
"kind": "Content",
"text": "?: "
},
{
"kind": "Content",
"text": "string"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "resource",
"propertyTypeTokenRange": {
"startIndex": 2,
"endIndex": 3
}
},
{
"kind": "PropertySignature",
"canonicalReference": "@loopback/authorization!AuthorizationMetadata#scopes:member",
"docComment": "/**\n * Define the access scopes\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "scopes"
},
{
"kind": "Content",
"text": "?: "
},
{
"kind": "Content",
"text": "string[]"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "scopes",
"propertyTypeTokenRange": {
"startIndex": 2,
"endIndex": 3
}
},
{
"kind": "PropertySignature",
"canonicalReference": "@loopback/authorization!AuthorizationMetadata#voters:member",
"docComment": "/**\n * Voters that help make the authorization decision\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "voters"
},
{
"kind": "Content",
"text": "?: "
},
{
"kind": "Content",
"text": "("
},
{
"kind": "Reference",
"text": "Authorizer"
},
{
"kind": "Content",
"text": " | "
},
{
"kind": "Reference",
"text": "BindingAddress"
},
{
"kind": "Content",
"text": "<"
},
{
"kind": "Reference",
"text": "Authorizer"
},
{
"kind": "Content",
"text": ">)[]"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "voters",
"propertyTypeTokenRange": {
"startIndex": 2,
"endIndex": 9
}
}
],
"extendsTokenRanges": []
},
{
"kind": "Interface",
"canonicalReference": "@loopback/authorization!AuthorizationOptions:interface",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "export interface "
},
{
"kind": "Reference",
"text": "AuthorizationOptions"
},
{
"kind": "Content",
"text": " "
}
],
"releaseTag": "Public",
"name": "AuthorizationOptions",
"members": [
{
"kind": "PropertySignature",
"canonicalReference": "@loopback/authorization!AuthorizationOptions#defaultDecision:member",
"docComment": "/**\n * Default decision if all authorizers vote for ABSTAIN If not set, default to `AuthorizationDecision.DENY`\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "defaultDecision"
},
{
"kind": "Content",
"text": "?: "
},
{
"kind": "Reference",
"text": "AuthorizationDecision"
},
{
"kind": "Content",
"text": "."
},
{
"kind": "Reference",
"text": "DENY"
},
{
"kind": "Content",
"text": " | "
},
{
"kind": "Reference",
"text": "AuthorizationDecision"
},
{
"kind": "Content",
"text": "."
},
{
"kind": "Reference",
"text": "ALLOW"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "defaultDecision",
"propertyTypeTokenRange": {
"startIndex": 2,
"endIndex": 9
}
},
{
"kind": "PropertySignature",
"canonicalReference": "@loopback/authorization!AuthorizationOptions#precedence:member",
"docComment": "/**\n * Controls if Allow/Deny vote takes precedence and override other votes. If not set, default to `AuthorizationDecision.DENY`.\n *\n * Once a vote matches the `precedence`, it becomes the final decision. The rest of votes will be skipped.\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "precedence"
},
{
"kind": "Content",
"text": "?: "
},
{
"kind": "Reference",
"text": "AuthorizationDecision"
},
{
"kind": "Content",
"text": "."
},
{
"kind": "Reference",
"text": "DENY"
},
{
"kind": "Content",
"text": " | "
},
{
"kind": "Reference",
"text": "AuthorizationDecision"
},
{
"kind": "Content",
"text": "."
},
{
"kind": "Reference",
"text": "ALLOW"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "precedence",
"propertyTypeTokenRange": {
"startIndex": 2,
"endIndex": 9
}
}
],
"extendsTokenRanges": []
},
{
"kind": "Interface",
"canonicalReference": "@loopback/authorization!AuthorizationRequest:interface",
"docComment": "/**\n * Inspired by https://github.com/casbin/node-casbin\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "export interface "
},
{
"kind": "Reference",
"text": "AuthorizationRequest"
},
{
"kind": "Content",
"text": " "
}
],
"releaseTag": "Public",
"name": "AuthorizationRequest",
"members": [
{
"kind": "PropertySignature",
"canonicalReference": "@loopback/authorization!AuthorizationRequest#action:member",
"docComment": "/**\n * The operation that the requestor performs on the resource.\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "action"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Content",
"text": "string"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "action",
"propertyTypeTokenRange": {
"startIndex": 2,
"endIndex": 3
}
},
{
"kind": "PropertySignature",
"canonicalReference": "@loopback/authorization!AuthorizationRequest#domain:member",
"docComment": "/**\n * The domain (realm/tenant)\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "domain"
},
{
"kind": "Content",
"text": "?: "
},
{
"kind": "Content",
"text": "string"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "domain",
"propertyTypeTokenRange": {
"startIndex": 2,
"endIndex": 3
}
},
{
"kind": "PropertySignature",
"canonicalReference": "@loopback/authorization!AuthorizationRequest#object:member",
"docComment": "/**\n * The resource that is going to be accessed.\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "object"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Content",
"text": "string"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "object",
"propertyTypeTokenRange": {
"startIndex": 2,
"endIndex": 3
}
},
{
"kind": "PropertySignature",
"canonicalReference": "@loopback/authorization!AuthorizationRequest#subject:member",
"docComment": "/**\n * The requestor that wants to access a resource.\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "subject"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Content",
"text": "string"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "subject",
"propertyTypeTokenRange": {
"startIndex": 2,
"endIndex": 3
}
}
],
"extendsTokenRanges": []
},
{
"kind": "Namespace",
"canonicalReference": "@loopback/authorization!AuthorizationTags:namespace",
"docComment": "/**\n * Binding tags used by authorization component\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "export declare namespace "
},
{
"kind": "Reference",
"text": "AuthorizationTags"
},
{
"kind": "Content",
"text": " "
}
],
"releaseTag": "Public",
"name": "AuthorizationTags",
"members": [
{
"kind": "Variable",
"canonicalReference": "@loopback/authorization!AuthorizationTags.AUTHORIZER:var",
"docComment": "/**\n * A tag for authorizers\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "AUTHORIZER"
},
{
"kind": "Content",
"text": " = \"authorizer\""
}
],
"releaseTag": "Public",
"name": "AUTHORIZER",
"variableTypeTokenRange": {
"startIndex": 0,
"endIndex": 0
}
}
]
},
{
"kind": "Function",
"canonicalReference": "@loopback/authorization!authorize:function(1)",
"docComment": "/**\n * Decorator `@authorize` to mark methods that require authorization\n *\n * @param - spec Authorization metadata\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "export declare function "
},
{
"kind": "Reference",
"text": "authorize"
},
{
"kind": "Content",
"text": "("
},
{
"kind": "Reference",
"text": "spec"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Reference",
"text": "AuthorizationMetadata"
},
{
"kind": "Content",
"text": "): "
},
{
"kind": "Content",
"text": "("
},
{
"kind": "Reference",
"text": "target"
},
{
"kind": "Content",
"text": ": any, "
},
{
"kind": "Reference",
"text": "method"
},
{
"kind": "Content",
"text": "?: string | undefined, "
},
{
"kind": "Reference",
"text": "methodDescriptor"
},
{
"kind": "Content",
"text": "?: "
},
{
"kind": "Reference",
"text": "TypedPropertyDescriptor"
},
{
"kind": "Content",
"text": "<any> | undefined) => any"
},
{
"kind": "Content",
"text": ";"
}
],
"returnTypeTokenRange": {
"startIndex": 7,
"endIndex": 16
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [
{
"parameterName": "spec",
"parameterTypeTokenRange": {
"startIndex": 5,
"endIndex": 6
}
}
],
"name": "authorize"
},
{
"kind": "Namespace",
"canonicalReference": "@loopback/authorization!authorize:namespace",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "export declare namespace "
},
{
"kind": "Reference",
"text": "authorize"
},
{
"kind": "Content",
"text": " "
}
],
"releaseTag": "Public",
"name": "authorize",
"members": [
{
"kind": "Variable",
"canonicalReference": "@loopback/authorization!authorize.allow:var",
"docComment": "/**\n * Shortcut to configure allowed roles\n *\n * @param - roles\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "allow"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Content",
"text": "(..."
},
{
"kind": "Reference",
"text": "roles"
},
{
"kind": "Content",
"text": ": string[]) => ("
},
{
"kind": "Reference",
"text": "target"
},
{
"kind": "Content",
"text": ": any, "
},
{
"kind": "Reference",
"text": "method"
},
{
"kind": "Content",
"text": "?: string | undefined, "
},
{
"kind": "Reference",
"text": "methodDescriptor"
},
{
"kind": "Content",
"text": "?: "
},
{
"kind": "Reference",
"text": "TypedPropertyDescriptor"
},
{
"kind": "Content",
"text": "<any> | undefined) => any"
}
],
"releaseTag": "Public",