Skip to content

Add browser authorization grant login API - #88

Closed
FelixJacobi wants to merge 1 commit into
passbolt:mainfrom
haspr-dev:feat/browser-auth
Closed

FelixJacobi wants to merge 1 commit into
passbolt:mainfrom
haspr-dev:feat/browser-auth

Conversation

@FelixJacobi

@FelixJacobi FelixJacobi commented Nov 10, 2026 •

Copy link
Copy Markdown

Summary

This pull request adds support for browser-authorized login via the /auth/verify.json endpoint to the Passbolt Go SDK (LoginWithBrowserAuthorization).

User Story

  • Given an SDK consumer receiving a browser authorization grant token and ephemeral in-memory private key,
  • When calling client.LoginWithBrowserAuthorization(ctx, privateKey, serverVerifyToken, serverVerifyEncToken),
  • Then the client completes the challenge-response verification against /auth/verify.json and establishes an authenticated API session without storing credentials on disk.

Changes

  • Add LoginWithBrowserAuthorization(ctx, privateKey, serverVerifyToken, serverVerifyEncToken) to Client.
  • Verify user identity by decrypting the server verification challenge token and returning the decrypted token to the server.
  • Add unit tests verifying authentication, account identity checking, and rejection on missing grants.
  • Coordinate with browser authorization grant flow described in detail in Add browser-based authentication agent mode and native messaging host go-passbolt-cli#154.

@cedricherzog-passbolt

Copy link
Copy Markdown
Contributor

Hi @FelixJacobi,

Thank you for contributing to Passbolt, we really appreciate it. Unfortunately, we can’t merge this PR as it stands.

You’ve opened several large PRs at once, which is more than we can review and maintain. For features of this size, we usually ask contributors to first open a post on the community forum to see if there is interest. We’re fine with AI-assisted contributions, but the author needs to own them.

For next time, please open an issue first and keep each PR small and focused. We’re happy to discuss your ideas on the forum, and we’ll work on making our contribution guide clearer.

Thanks again!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants