azureazure-functionsazure-http-trigger

How azure function HttpTrigger edit code parameter name?


Azure Function HttpTrigger default use code parameter with token code, e.g: https://xxx.azurewebsites.net/api/xxxHttpTriggerCSharp?code=)#&)@^$^@#)

How can I replace code name by token like:
https://xxx.azurewebsites.net/api/xxxHttpTriggerCSharp?token=)#&)@^$^@#)

The situation I met:
A service also uses the code parameter, which leads to conflicts in authentication.


Solution

  • I think it is no possible. If you have an authentication type like 'function', then you need to give the function key. 'code=' is by design, I think your requirement is impossible.

    If you don't want to use the authentication type, you can set the authentication type to anonymous(If you use script language, you can set it in the functin.json. If you use language that needs to be compiled, you can set it in the declaration part).