Pipes
2.1.0 Pipes
2.1.0 Pipes
  • Introduction
  • Configuration
  • Valves
    • Debug
      • Dump Request
      • Dump Session
      • Dump State
    • Flow
      • Flow Fail
      • Flow State Add
      • Assert Value
      • Pipe Exec
      • Pipe Call
    • Item
      • Item Create
      • Item Merge
      • Item Remove
      • Items Remove
      • Item Property Add
      • Item Property Split
      • Item Property Rename
      • Item Property Token Replace
      • MV Property To Items
      • MV Property Join
    • Freja
    • BankID
      • BidOperation
      • BidToItems
    • DateTime
      • Instant Generator
      • Instant Transformer
    • HTTP
      • GET
      • PUT
      • POST
      • DELETE
    • JWT
      • CreateJwt
      • ParseJwt
    • JSON
      • JsonObjectCreate
    • LDAP
      • LDAP Search
      • LDAP Group Filter
      • LDAP Bind
      • LDAP Add
      • LDAP Modify
      • LDAP Move
      • DN Parse
    • JDBC Query
    • Cef event
    • Request
      • RequestParameterExist
      • RequestParameterRename
    • Session
      • Session Put
      • CopyFromSession
    • ScriptEval
    • Codecs
      • Base64 Encode
      • Base64 Decode
    • Tokens
      • Token Authentication
    • PKI
      • X509 Certificate Extractor
      • X509 Certificate Validator
    • Delivery
      • Clean Mobile Valve
      • SMS Valve
      • Voice Valve
      • SMTP Valve
    • OTP
      • OTP Generation
      • OTP Validation
    • Misc
      • Basic Auth
Powered by GitBook
On this page
  1. Valves
  2. JWT

CreateJwt

Creates a JSON Web Token, JWT.

Configuration

Valve name: CreateJwt

Name
Description
Default value
Mandatory
Expanded

dest

Name of item property receiving the JWT.

"jwt"

jwt_ttl

JWT time to live in minutes.

5

jwt_claims

JWT payload claims. Configured as a json object. Values are expandable.

N/A

jwt_headers

JWT header claims. Configured as a json object. Values are expandable.

{"alg":"RS256"}

keystore

Keystore reference or json object containing keystore configuration. Used for JWT signing.

N/A

keystore_alias

Keystore alias.

N/A

keystore_password

Keystore password.

N/A

{
    "name": "CreateJwt",
    "config": {
        "jwt_ttl": 5,
             "jwt_headers": {
             },
             "jwt_claims": {
                 "personalNumber":"{{{item.personalNumber}}}",
                 "name":"{{{item.name}}}",
                 "ipAddress":"{{{item.ipAddress}}}"
             },
        "keystore" : {
            "path" : "/fortified_test/keystore.p12",
            "password" : "secret",
            "type" : "PKCS12"
        },
        "keystore_password" : "secret",
        "keystore_alias" : "jwt",
    }
}

PreviousJWTNextParseJwt