Skip to content

AuthPolicyTenant

Provides a unified entry for querying the relationship between tenant, application and authorization policies


Set the default policy of user access application

PUT
/api/v1/auth/tenant/app/{appId}/policy/default/{policyId}

授权

UserHttpBearer

Use existing opaque tokens for authentication

类型HTTP (bearer)

参数

路径参数

appId*

Application id

类型integer
必填
format"int64"
policyId*

Authorization policy id

类型integer
必填
format"int64"

响应

OK

*/*
JSON
{
"code": "string",
"msg": "string",
"data": {
},
"datetime": "string",
"ext": {
"additionalProperties": {
}
}
}

试验场

服务器
授权
变量

示例

cURL
JavaScript
PHP
Python

Query all authorized applications of tenant

GET
/api/v1/auth/tenant/app

授权

UserHttpBearer

Use existing opaque tokens for authentication

类型HTTP (bearer)

响应

OK

*/*
JSON
{
"code": "string",
"msg": "string",
"data": {
},
"datetime": "string",
"ext": {
"additionalProperties": {
}
}
}

试验场

服务器
授权

示例

cURL
JavaScript
PHP
Python

Query all functions list of authorized application

GET
/api/v1/auth/tenant/app/{appId}/func

授权

UserHttpBearer

Use existing opaque tokens for authentication

类型HTTP (bearer)

参数

路径参数

appId*

Application id

类型integer
必填
format"int64"

响应

OK

*/*
JSON
{
"code": "string",
"msg": "string",
"data": {
},
"datetime": "string",
"ext": {
"additionalProperties": {
}
}
}

试验场

服务器
授权
变量

示例

cURL
JavaScript
PHP
Python

Query all functions tree of authorized application

GET
/api/v1/auth/tenant/app/{appId}/func/tree

授权

UserHttpBearer

Use existing opaque tokens for authentication

类型HTTP (bearer)

参数

路径参数

appId*

Application id

类型integer
必填
format"int64"

响应

OK

*/*
JSON
{
"code": "string",
"msg": "string",
"data": {
},
"datetime": "string",
"ext": {
"additionalProperties": {
}
}
}

试验场

服务器
授权
变量

示例

cURL
JavaScript
PHP
Python

Query the default policies of all authorized applications

GET
/api/v1/auth/tenant/app/default

授权

UserHttpBearer

Use existing opaque tokens for authentication

类型HTTP (bearer)

响应

OK

*/*
JSON
{
"code": "string",
"msg": "string",
"data": {
},
"datetime": "string",
"ext": {
"additionalProperties": {
}
}
}

试验场

服务器
授权

示例

cURL
JavaScript
PHP
Python

Delete user access application default policy, prevent new users to access the application

DELETE
/api/v1/auth/tenant/app/{appId}/policy/default

授权

UserHttpBearer

Use existing opaque tokens for authentication

类型HTTP (bearer)

参数

路径参数

appId*

Application id

类型integer
必填
format"int64"

响应

OK

*/*
JSON
{
"code": "string",
"msg": "string",
"data": {
},
"datetime": "string",
"ext": {
"additionalProperties": {
}
}
}

试验场

服务器
授权
变量

示例

cURL
JavaScript
PHP
Python

Released under the GPL-3.0 License.