FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login
    1. Home
    2. benjamineroommen
    3. Topics
    B
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 3
    • Best 1
    • Controversial 0
    • Groups 0

    Topics created by benjamineroommen

    • B

      Does fusion auth supports es256k header for secp256k1 curve keys?

      General Discussion
      • security jwt verification es256k secp256k1 • • benjamineroommen
      2
      1
      Votes
      2
      Posts
      1.5k
      Views

      danD

      Hiya @benjamineroommen ,

      I'm not sure what you mean? Are you talking about the JWT generated for a login event?

    • B

      fusion auth versus jose4j library for jwt using secp256k

      General Discussion
      • jwt verification fusionauth header • • benjamineroommen
      3
      0
      Votes
      3
      Posts
      3.2k
      Views

      B

      ok main thing is, is it ok to use header ES256 for jwt created using secp256k1 keys?

      https://datatracker.ietf.org/doc/html/rfc8812 says, secp256k1 curve should only be used with ES256k header, but in authfusion even if we give k1 pair keys and then use sign and encode a JWT using EC, it will come as ES256 only, is that okay?

      Another doubt is, those jwt (k1 curve keys + ES256) created in authfusion is only able to verify in jose4j with .setRelaxVerificationKeyValidation() //needed if the key is smaller than 256 bits.

      Without it we get the error:

      JWT processing failed. Additional details: [[17] Unable to process JOSE object (cause: org.jose4j.lang.InvalidKeyException: ES256/SHA256withECDSA expects a key using P-256 but was null):

      Description inside setRelaxVerificationKeyValidation :

      Bypass the strict checks on the verification key. This might be needed, for example, if the JWT issuer is using 1024-bit RSA keys or HMAC secrets that are too small (smaller than the size of the hash output)

      Is it the correct way to validate jwt created using ec in authfusion?