更新时间:2022-09-01 GMT+08:00
查看自定义认证详情
功能介绍
查看自定义认证详情
URI
HTTP/HTTPS请求方法以及URI如下表所示。
|
请求方法 |
URI |
|---|---|
|
GET |
/v1.0/apigw/authorizers/{id} |
URI中的参数说明如下表所示。
|
名称 |
是否必选 |
类型 |
说明 |
|---|---|---|---|
|
id |
是 |
String |
自定义认证的ID |
请求消息
无
响应消息
|
名称 |
类型 |
说明 |
|---|---|---|
|
id |
String |
编号 |
|
name |
String |
自定义认证的名称 |
|
type |
String |
自定义认证类型:
|
|
authorizer_type |
String |
只能为:FUNC |
|
authorizer_uri |
String |
函数urn |
|
identities |
Array |
认证来源 |
|
ttl |
Integer |
缓存时间 |
|
user_data |
String |
用户数据 |
|
create_time |
Time |
创建时间 |
|
名称 |
类型 |
说明 |
|---|---|---|
|
name |
String |
参数名称 |
|
location |
String |
参数位置:
|
响应消息样例:
{
"name":"Authorizer_9dlh",
"type":"FRONTEND",
"authorizer_type":"FUNC",
"authorizer_uri":"urn:fss:regionexample:dbb5762c88f045c6a1427a952bcae284:function:default:test111",
"identities":[
{
"name":"Authorization",
"location":"HEADER",
}
],
"ttl":10,
"user_data":"aaaa",
"id":"7345e3fe4047491ebd8ecb0acd665a4c",
"create_time":"2020-01-19T11:48:56.576611862Z"
}
状态码
|
状态码 |
说明 |
|---|---|
|
201 |
Created |
|
400 |
Bad Request |
|
401 |
Unauthorized |
|
403 |
Forbidden |
|
500 |
Server Internal Error |
父主题: 自定义认证管理