我有一个 azure 函数,我想将我的 azure 函数的 authlevel 从 更改为authLevel = AuthorizationLevel.ANONYMOUS
或FUNCTION
。ADMIN
我如何实现并且我正在使用java spring boot功能应用程序?
代码:
@FunctionName("funcName")
public HttpResponseMessage execute(@HttpTrigger(name = "request", methods = { HttpMethod.GET,HttpMethod.POST },
authLevel = AuthorizationLevel.ANONYMOUS)
HttpRequestMessage<Optional<User>> request,
ExecutionContext context){
<------body ------>
}
Run Code Online (Sandbox Code Playgroud)