Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GO-4642: Scoped Auth Tokens #2021

Conversation

jmetrikat
Copy link
Member

Introduces scoped authentication tokens with three levels of access:

  • Limited: Used for WebClipper - AccountSelect (to be deprecated), ObjectSearch, ObjectShow, ObjectCreate, ObjectCreateFromURL, BlockPreview, BlockPaste, and BroadcastPayloadEvent.
  • JsonAPI: Restricts access to JSON API only; direct gRPC API calls are not permitted.
  • Full: Provides full access, but not available via LocalLink.

RpcAccountLocalLinkNewChallengeRequest now takes Scope model.AccountAuthLocalApiScope to enable scoped key generation through local link challenge.

Copy link

github-actions bot commented Jan 19, 2025

New Coverage 50.6% of statements
Patch Coverage 19.5% of changed statements (23/118)

Coverage provided by https://github.com/seriousben/go-patch-cover-action

@jmetrikat jmetrikat force-pushed the go-4642-scoped-auth-tokens branch from d8bf87d to 4321252 Compare January 20, 2025 15:54
@jmetrikat jmetrikat requested a review from requilence January 20, 2025 19:45
@requilence requilence merged commit be21874 into go-4459-implement-first-stage-of-anytype-rest-api Jan 22, 2025
5 checks passed
@requilence requilence deleted the go-4642-scoped-auth-tokens branch January 22, 2025 10:09
@github-actions github-actions bot locked and limited conversation to collaborators Jan 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants