Skip to content

Akkoma: Authentication raises errors due to /.well-known/oauth-authorization-server endpoint call #422

@thcrt

Description

@thcrt

cb48c95 added a check to the endpoint /.well-known/oauth-authorization-server. Unfortunately, on Akkoma (and likely Pleroma, though I haven't checked), this endpoint doesn't exist. What's more, instead of returning the status code 404, it instead returns a code of 200 and a body containing the instance's web UI homepage.

This check can be skipped in Mastodon.auth_request_url() by passing skip_server_info=True. However, it's unavoidable when calling Mastodon.log_in(), as well as a few other methods.

I'll submit an issue to the Akkoma tracker as well, since this really shouldn't be happening on their side. But since this currently affects, to my knowledge, all Akkoma servers -- and many may take some time to update -- it might be worth adding a skip_server_info or similar parameter to either the individual methods or to Mastodon.__init__() itself?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions