Skip to content

server: add bearer-token utilities (3/N) - #21

Closed
littlegrasscao wants to merge 5 commits into
OpenSharing-IO:server/03-config-errorsfrom
littlegrasscao:server/04-auth-utilities
Closed

littlegrasscao wants to merge 5 commits into
OpenSharing-IO:server/03-config-errorsfrom
littlegrasscao:server/04-auth-utilities

Conversation

@littlegrasscao

@littlegrasscao littlegrasscao commented Sep 1, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Part 3/N.

Shared auth helpers for bootstrap admin, principals, and recipient tokens:

  • BearerTokens — RFC 6750 bearer extraction from Authorization headers
  • Secrets — bearer token minting (os_ prefix + 32 random bytes, URL-safe Base64), activation nonces, and SHA-256 hashing for storage
  • SecretsTest — deterministic hashing, token prefix/uniqueness, length, and URL-safe Base64 format

Test plan

  • cd server && mvn test

@littlegrasscao
littlegrasscao changed the base branch from main to server/03-config-errors September 1, 2026 22:47
@littlegrasscao littlegrasscao changed the title server: add bearer-token utilities (4/N) server: add bearer-token utilities (3/N) Sep 1, 2026
@littlegrasscao

Copy link
Copy Markdown
Collaborator Author

Closing as superseded: this split was cut against the reference server as it existed on 2026-09-01, before the module split (opensharing-server-core/opensharing-server), Unity Catalog integration, embedding, and the current auth model. #14 has moved well past this. Restarting the split against #14's current state instead.

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.

1 participant