aaronpk / Aperture

Aperture is a Microsub server. Currently in beta.
https://aperture.p3k.io
Apache License 2.0
70 stars 5 forks source link

signing in with hosted known gives a micropub failure #53

Open kevinmarks opened 6 years ago

kevinmarks commented 6 years ago

micropub config says

{
    "error": "forbidden",
    "error_description": "",
    "messages": []
}

logging in with monocle gives:

Error There was a problem trying to load the channels from your Microsub endpoint.

Microsub endpoint: https://aperture.p3k.io/microsub/63 Your website: http://known.kevinmarks.com/ The endpoint returned the following response.

{
    "code": 403,
    "header": "HTTP/1.1 403 Forbidden\r\nServer: nginx/1.14.0\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nConnection: keep-alive\r\nX-Powered-By: PHP/7.2.7-1+ubuntu16.04.1+deb.sury.org+1\r\nCache-Control: no-cache, private\r\nDate: Thu, 16 Aug 2018 13:41:31 GMT",
    "body": "{\"error\":\"forbidden\",\"error_description\":\"The token endpoint could not verify this access token\",\"token_endpoint\":{\"url\":\"http:\\/\\/known.kevinmarks.com\\/indieauth\\/token\",\"code\":404,\"response\":\"Client mismatch.\"}}",
    "error": "",
    "error_description": "",
    "url": "https://aperture.p3k.io/microsub/63?action=channels",
    "debug": "HTTP/1.1 403 Forbidden\r\nServer: nginx/1.14.0\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nConnection: keep-alive\r\nX-Powered-By: PHP/7.2.7-1+ubuntu16.04.1+deb.sury.org+1\r\nCache-Control: no-cache, private\r\nDate: Thu, 16 Aug 2018 13:41:31 GMT\r\n\r\n{\"error\":\"forbidden\",\"error_description\":\"The token endpoint could not verify this access token\",\"token_endpoint\":{\"url\":\"http:\\/\\/known.kevinmarks.com\\/indieauth\\/token\",\"code\":404,\"response\":\"Client mismatch.\"}}",
    "headers": {
        "Server": "nginx/1.14.0",
        "Content-Type": "application/json",
        "Transfer-Encoding": "chunked",
        "Connection": "keep-alive",
        "X-Powered-By": "PHP/7.2.7-1+ubuntu16.04.1+deb.sury.org+1",
        "Cache-Control": "no-cache, private",
        "Date": "Thu, 16 Aug 2018 13:41:31 GMT"
    },
    "rels": []
}          

The known endpoints are

<link rel="authorization_endpoint" href="http://known.kevinmarks.com/indieauth/auth">
<link rel="token_endpoint" href="http://known.kevinmarks.com/indieauth/token">
<link rel="micropub" href="http://known.kevinmarks.com/micropub/endpoint">
aaronpk commented 6 years ago

This sounds like a problem with Known. Aperture is saying "The token endpoint could not verify this access token," and that Known returned a 404 code and "Client mismatch." when trying to verify the token. IIRC this has been fixed in the open source version but that hasn't been deployed to hosted known yet.