Liking cljdoc? Tell your friends :D

boundary.realtime.shell.adapters.jwt-adapter

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
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
raw docstring

create-test-jwt-adapterclj

(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
sourceraw docstring

create-user-jwt-adapterclj

(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
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close