I have seen a lot of solutions on having OAuth user authentication as well as Token authentication through POST headers/request body. But I would like to ask how can I implement a token authentication by inserting into the url? Is it something about the controllers? For example if the original endpoint is api.mysite.com/action, and I would like to make it become api.mysite.com/tokenSOMETOKENHERE/action
if token is wrong/not given, respond a custom unauthorized response.
The idea was from the Telegram's bot API. The token is passed to the URL so that people can use HTTP GET request instead of POST.