Basic HTTP and Bearer Token Authentication

前端 未结 7 1173
谎友^
谎友^ 2020-12-22 21:39

I am currently developing a REST-API which is HTTP-Basic protected for the development environment. As the real authentication is done via a token, I\'m still trying to figu

7条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-22 22:33

    Standard (https://tools.ietf.org/html/rfc6750) says you can use:

    • Form-Encoded Body Parameter: Authorization: Bearer mytoken123
    • URI Query Parameter: access_token=mytoken123

    So it's possible to pass many Bearer Token with URI, but doing this is discouraged (see section 5 in the standard).

提交回复
热议问题