Skip to content

Print the auth URL when running blueapi login #1151

Closed

Description

@callumforrester

Blueapi login currently prints

Logging in

and then opens a browser popup window. Some users may have disabled popups or have configuration issues which means the browser doesn't open. At that point the URL is lost an they have no way to login. It may be worth printing the URL as a secondary option.

Tagging @ZohebShaikh for thoughts.

Acceptance Criteria

  • URL printed when logging in

Activity

  1. ZohebShaikh commented on Aug 7, 2025

    @ZohebShaikh
    Contributor

    I did think about this

    if not webbrowser.open_new_tab(response_json["verification_uri_complete"]):
    print(
    "Please login from this URL:- "
    f"{response_json['verification_uri_complete']}"
    )

    if it fails to open the browser it will print Please login @ URL

    Docs for open_new_tab

  2. callumforrester commented on Aug 7, 2025

    @callumforrester
    ContributorAuthor

    It didn't open in browser for @davehadley today and it didn't print that message either, maybe it should just always print it in case the browser is falsely reporting success or something

  3. added a commit that references this issue on Aug 8, 2025
    82a80c0
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