Skip to content

server: add bearer token and secret utilities - #93

Closed
littlegrasscao wants to merge 1 commit into
OpenSharing-IO:server/split2/05-http-errorsfrom
littlegrasscao:server/split2/06-auth-utilities
Closed

littlegrasscao wants to merge 1 commit into
OpenSharing-IO:server/split2/05-http-errorsfrom
littlegrasscao:server/split2/06-auth-utilities

Conversation

@littlegrasscao

Copy link
Copy Markdown
Collaborator

Stacks on #92.

Adds shared RFC 6750 bearer extraction plus cryptographically random recipient-token/activation-nonce generation and SHA-256 hashing. Tests cover malformed authorization headers, token encoding and length, uniqueness, and deterministic hashing.

Test plan

  • BearerTokensTest
  • SecretsTest

@littlegrasscao

Copy link
Copy Markdown
Collaborator Author

Closing to land bearer/secret utilities later with the first consumer (recipient tokens or admin auth), rather than as a standalone unused slice.

@littlegrasscao
littlegrasscao deleted the server/split2/06-auth-utilities branch September 15, 2026 19:22
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