cweiske / anoweco

Anonymous web comments for the indieweb
https://commentpara.de/
GNU Affero General Public License v3.0
13 stars 0 forks source link

auth.php: return JSON #9

Closed cweiske closed 6 years ago

cweiske commented 6 years ago

Because the current IndieAuth spec says so.

Previously: https://indieweb.org/authorization-endpoint

The response content-type should be either application/x-www-form-urlencoded or application/json depending on the value of the HTTP Accept header.

Now: https://indieauth.spec.indieweb.org/#access-token-response

The token response is a JSON [RFC7159] object containing the OAuth 2.0 Bearer Token [RFC6750], as well as a property me,

https://github.com/pstuifzand/micropub-android/issues/13