Skip to content

Conversation

@daeMOn63
Copy link
Contributor

Introduced AccessTokenBuilder type, responsible of access token generation, with an instance provided at hubauth service creation.

Created a BearerBuilder, which is the default out of the box selected builder, generating the actual oauth signed access tokens.
Created a BiscuitBuilder allowing to generate biscuit access token. It can be enabled by following the readme instructions

Added a biscuit package, exposing helpers for signed biscuit generation, signature and verification, its aimed to be included in both client and audience applications, so maybe we'll need to move it somewhere else to not embed the full hubauth there.

Added a /public-key endpoint, serving the hubauth public key

Modified /token endpoint, to accept an extra b64 encoded public key string parameter

The generated biscuit features:

  • audience signature, using the audience kms key.
  • user signature requirement, with an ecdsa p256 public key provided by the user when exchanging the code.
  • expiration time, with the same duration as bearer tokens had.
  • metadata, for transmitting userID / email to the audience.

@daeMOn63 daeMOn63 requested a review from titanous October 13, 2020 12:52
@daeMOn63 daeMOn63 force-pushed the biscuit_integration branch 2 times, most recently from b851540 to cce7101 Compare October 21, 2020 13:52
@daeMOn63 daeMOn63 mentioned this pull request Nov 10, 2020
@daeMOn63 daeMOn63 force-pushed the biscuit_integration branch from cce7101 to 249a3e9 Compare December 11, 2020 08:26
@daeMOn63 daeMOn63 force-pushed the biscuit_integration branch from 249a3e9 to f7f02c7 Compare December 16, 2020 14:24
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