mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-02-05 07:37:02 +01:00
add a note about us only supporting bearer oauth tokens
This commit is contained in:
parent
53fcea5751
commit
dc02c87e2d
1 changed files with 3 additions and 0 deletions
|
@ -80,6 +80,9 @@ func Idempotency() gin.HandlerFunc {
|
||||||
// request fingerprint along with idempotency
|
// request fingerprint along with idempotency
|
||||||
// key to ensure uniqueness across logged-in
|
// key to ensure uniqueness across logged-in
|
||||||
// device sessions regardless of IP.
|
// device sessions regardless of IP.
|
||||||
|
//
|
||||||
|
// NOTE: using the auth header is only an option
|
||||||
|
// because we ONLY support bearer oauth tokens.
|
||||||
key = c.Request.Header.Get("Authorization") +
|
key = c.Request.Header.Get("Authorization") +
|
||||||
c.Request.UserAgent() + key
|
c.Request.UserAgent() + key
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue