JWT verification adapter that delegates to boundary/user module.
Wraps boundary.user.shell.auth/validate-jwt-token to provide IJWTVerifier protocol implementation. Avoids direct dependency from core layer to user module.
Responsibilities (Shell/I/O):
JWT verification adapter that delegates to boundary/user module. Wraps boundary.user.shell.auth/validate-jwt-token to provide IJWTVerifier protocol implementation. Avoids direct dependency from core layer to user module. Responsibilities (Shell/I/O): - Call user module for JWT verification (I/O - external dependency) - Transform user module response to expected format - Handle verification errors
(create-test-jwt-adapter test-claims)Create test JWT adapter for testing without user module.
Args: test-claims - Map with claims to return for :expected-token Must include :expected-token key
Example: (create-test-jwt-adapter {:expected-token "test-token-123" :user-id #uuid "..." :email "test@example.com" :roles #{:user}})
Returns: TestJWTAdapter instance
Create test JWT adapter for testing without user module.
Args:
test-claims - Map with claims to return for :expected-token
Must include :expected-token key
Example:
(create-test-jwt-adapter
{:expected-token "test-token-123"
:user-id #uuid "..."
:email "test@example.com"
:roles #{:user}})
Returns:
TestJWTAdapter instance(create-user-jwt-adapter)Create JWT adapter that delegates to boundary/user module.
Returns: UserJWTAdapter instance implementing IJWTVerifier
Create JWT adapter that delegates to boundary/user module. Returns: UserJWTAdapter instance implementing IJWTVerifier
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |