Skip to content

Allow changing redirect URI or --headless option #62

Closed

Description

@joeldeteves

Currently there is no way to authenticate xurl from a headless server instance.

Because it forces the callback to localhost, unless you have a direct GUI with browse you can't authenticate properly from headless systems.

Either a new --headless option that allows authentication from these environments or a custom redirect URI (so we can use tailscale) would be possible solutions.

Thanks,

Activity

  1. robert-hoffmann commented on Apr 19, 2026

    @robert-hoffmann
    Contributor

    There is even a nuance

    X breaks on 127.0.0.1, so xurl tells you to use localhost (btw port seems hardcoded to 8080 too), but internally xurl is listening on 127.0.0.1, which can break in some instances (mine for example)

    localhost and 127.0.0.1 aren't "quite" the same

  2. robert-hoffmann commented on Apr 20, 2026

    @robert-hoffmann
    Contributor

    This closes this issue too

    #64

  3. santiagomed commented on Jun 29, 2026

    @santiagomed
    Collaborator

    Fixed in #78 (v1.2.0): adds xurl auth oauth2 --headless, which prints the authorize URL and reads the pasted redirect URL/code back — no reachable localhost callback needed. Combined with the per-app redirect URI from #64, headless auth is now fully supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions