CCF/tests/js-authentication/app.json

75 строки
1.8 KiB
JSON

{
"endpoints": {
"/cert": {
"get": {
"js_module": "endpoints.js",
"js_function": "cert",
"forwarding_required": "sometimes",
"redirection_strategy": "none",
"authn_policies": ["user_cert"],
"mode": "readonly",
"openapi": {}
}
},
"/jwt": {
"get": {
"js_module": "endpoints.js",
"js_function": "jwt",
"forwarding_required": "sometimes",
"redirection_strategy": "none",
"authn_policies": ["jwt"],
"mode": "readonly",
"openapi": {}
}
},
"/multi_auth": {
"post": {
"js_module": "endpoints.js",
"js_function": "multi_auth",
"forwarding_required": "sometimes",
"redirection_strategy": "none",
"authn_policies": [
"user_cert",
"member_cert",
"jwt",
"user_cose_sign1",
"no_auth"
],
"mode": "readonly",
"openapi": {}
}
},
"/secret": {
"get": {
"js_module": "endpoints.js",
"js_function": "get_secret",
"forwarding_required": "sometimes",
"redirection_strategy": "none",
"authn_policies": ["user_cert"],
"mode": "readonly",
"openapi": {}
},
"post": {
"js_module": "endpoints.js",
"js_function": "put_secret",
"forwarding_required": "sometimes",
"redirection_strategy": "none",
"authn_policies": ["user_cert"],
"mode": "readwrite",
"openapi": {}
}
},
"/roles": {
"post": {
"js_module": "endpoints.js",
"js_function": "add_role",
"forwarding_required": "sometimes",
"redirection_strategy": "none",
"authn_policies": ["user_cert"],
"mode": "readwrite",
"openapi": {}
}
}
}
}