Repository navigation
Tags
Tags
Add BearerToken with allowlist example (#12) Creates a new example based on bearer tokens, a common authentication requirement, with a new helper method BearerToken to assist. This is used to provide the example. A new method Echo is added to the example ping service to showcase conditionally applying authentication based on the Procedure name. Signed-off-by: Edward McFarlane <emcfarlane@buf.build>
Prep for OSS (#3) * Rename to connectrpc.com/authn * Generate code as part of build * Reword GoDoc, remove ref to deleted type * Remove Buf-specific GitHub actions * Add contribution guide * Add SECURITY.md * Focus examples on authentication * Add cookie support * Flesh out README * Separate protobuf messages with empty lines * Make auth logic more prominent in README example * Fix broken README link * Update examples_test.go * Address review feedback * Authenticate non-RPC requests * Use crypto/subtle to mitigate timing attacks * Upgrade to connect 1.14.0 * Rely on new ErrorWriter fallback logic * Fix GoDoc rendering for README link --------- Co-authored-by: Edward McFarlane <3036610+emcfarlane@users.noreply.github.com>