Skip to content

Commit

Permalink
Bear token! 🐻
Browse files Browse the repository at this point in the history
  • Loading branch information
zackkatz authored Jan 22, 2024
1 parent b1134d2 commit 57550b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/flows.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ An array of Secret IDs is returned. These are not the envelope itself; Secret ID

The Vendor plugin uses the Secret IDs to retrieve the envelopes from the Vault.

In addition to the Bear token, the request generates a signed nonce in [`TrustedLogin\Vendor\Encryption::createIdentityNonce()`](https://github.com/trustedlogin/vendor/blob/develop/php/Encryption.php#L399). The method:
In addition to the Bearer token, the request generates a signed nonce in [`TrustedLogin\Vendor\Encryption::createIdentityNonce()`](https://github.com/trustedlogin/vendor/blob/develop/php/Encryption.php#L399). The method:

- Generates a cryptographic nonce (in [`TrustedLogin\Vendor\Encryption::generateNonce()`](https://github.com/trustedlogin/vendor/blob/develop/php/Encryption.php#L485) using `random_bytes()`),
- Signs the nonce with the `sign_private_key` pair (in [`TrustedLogin\Vendor\Encryption::sign()`](https://github.com/trustedlogin/vendor/blob/develop/php/Encryption.php#L512), using `sodium_crypto_sign_detached()`), and
Expand Down

0 comments on commit 57550b2

Please sign in to comment.