Skip to content

Auth Connector

The Auth connector validates JWT (JSON Web Tokens) in data payloads.

Connector Type: MeddleAuth

Validate JWT using a shared secret:

{
"type": "MeddleAuth",
"config": {
"mode": "JwtSecret",
"jwtSecretConfig": {
"key": "auth_token",
"secret": "your-secret-key-here"
}
}
}

Validate JWT using JSON Web Key Set (JWKS):

{
"type": "MeddleAuth",
"config": {
"mode": "Jwks",
"jwksConfig": {
"jwksUrl": "https://auth.example.com/.well-known/jwks.json",
"key": "token"
}
}
}
  1. Connector extracts JWT from payload using specified key
  2. Validates JWT signature and expiration
  3. If valid, passes payload through
  4. If invalid, blocks payload

Input:

{
"data": "sensor_reading",
"auth_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}

If token is valid, payload passes through.
If token is invalid, payload is blocked.

  • key: Payload field containing the JWT
  • secret: Shared secret for validation
  • key: Payload field containing the JWT
  • jwksUrl: URL to JWKS endpoint
  1. Secure API endpoints that receive data from external sources
  2. Validate user permissions before processing data
  3. Implement access control in data workflows
  4. Protect sensitive operations
  • Use JWKS for production environments
  • Rotate secrets regularly
  • Use HTTPS for JWKS URLs
  • Combine with other security measures