FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login
    1. Home
    2. Tags
    3. verification
    Log in to post
    • All categories
    • F

      Solved Why doesn't user.update.complete fire when email verification changes verified flag?

      Frequently Asked Questions (FAQ)
      • webhooks kafka events email verification • • FASupportBot
      2
      0
      Votes
      2
      Posts
      106
      Views

      F

      The user.update.complete event intentionally does not fire when the verified flag changes through email verification. This is by design.

      Email verification is considered a distinct workflow separate from the general user update process in FusionAuth's event model. As noted in a related GitHub issue, the decision was made to introduce dedicated verification events rather than triggering user.update.complete because email verification "does not occur due to the Update User API, but because of a separate workflow." The user.update.complete event is reserved for changes made through the Update User API, while verification-specific changes trigger their own dedicated events.

      Recommended Solution

      You should listen to these specific webhook events for verification state changes:

      user.email.verified — fires when an email address is verified (available since 1.8.0) user.identity.verified — fires when an identity (email or phone number) is verified (available since 1.59.0) Handling Race Conditions

      If you're concerned about race conditions when multiple events fire simultaneously:

      Adjust your Kafka partitioning strategy to key on userId — this ensures all events for the same user go to the same partition and are processed in order Use event timestamps in your downstream consumers to deduplicate or order events correctly. Each event includes a createInstant field in the event object that can be used for ordering Design your sync logic to be idempotent so that processing events out of order doesn't cause inconsistent state

      The separate user.email.verified and user.identity.verified events provide more granular control over what verification changes you respond to, which is generally more useful than a generic user update event.

      Related Documentation User Update Complete Event — documentation for the user.update.complete event User Email Verified Event — documentation for the user.email.verified event User Identity Verified Event — documentation for the user.identity.verified event Kafka Integration — comprehensive guide to FusionAuth's Kafka integration for consuming webhook events Webhook Event Log — review events sent by FusionAuth with timing and result information
    • B

      Does fusion auth supports es256k header for secp256k1 curve keys?

      General Discussion
      • security jwt verification es256k secp256k1 • • benjamineroommen
      2
      1
      Votes
      2
      Posts
      3.3k
      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
      5.7k
      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?

    • A

      Email Send exception while calling the /registration API

      General Discussion
      • email registrations user creation verification • • apeksha.barhanpur
      1
      0
      Votes
      1
      Posts
      2.9k
      Views

      No one has replied

    • G

      Verification of ID Token using RSA public key

      General Discussion
      • rsa jwks verification validation client-library • • gokul.mahajan20
      2
      0
      Votes
      2
      Posts
      5.6k
      Views

      danD

      @gokul-mahajan20

      Can you add ----BEGIN to the JWKS certs?

    • A

      Unsolved Link in Email verification not working first time

      Q&A
      • email templates verification user creation application • • adam 0
      3
      0
      Votes
      3
      Posts
      5.4k
      Views

      S

      We have the exact same issue. If this was solved (hopefully) could you please provide a brief description on the fix?
      Thanks!

    • danD

      Email verification security hole?

      Q&A
      • email verification security • • dan
      2
      0
      Votes
      2
      Posts
      3.3k
      Views

      danD

      If you are using email verification, you can check this user state within your own app. (So, don't allow the attacker to access anything until their email address has been verified.)

      In version 1.27.0 you can configure a gated login flow when the user is not verified (this is a 'reactor' feature requiring a paid license). This will enforce email verification before we even redirect to your app. You can then also configure FusionAuth to delete users after N number of days if the user has not verified their email address. This can assist with build up of accounts that are not actually in use.

    • A

      Unable to invoke @ValidationMethod on the class [class io.fusionauth.app.action.oauth2.CompleteRegistrationAction]

      Q&A
      • oauth login registration verification • • alessandrojcm
      6
      0
      Votes
      6
      Posts
      9.1k
      Views

      joshuaJ

      @alessandrojcm,

      Sounds good. I have logged a bug report; we should have this one squashed soon!

      Thanks,
      Josh

    • danD

      Does FusionAuth support the ability to use codes for verification?

      Q&A
      • verification code • • dan
      2
      0
      Votes
      2
      Posts
      3.0k
      Views

      danD

      Yes. As of 1.27, you can use a verification strategy of FormField. This is configured on the tenant: https://fusionauth.io/docs/v1/tech/apis/tenants/

      You then provide the one time code in the oneTimeCode request body parameter. More about this in the email verification docs: https://fusionauth.io/docs/v1/tech/apis/users/#verify-a-users-email

      Note that this feature only works with email gating at the current time, which is a reactor feature requiring a paid license.

    • danD

      Email verification email for 'welcome message'

      Q&A
      • email verification welcome • • dan
      2
      0
      Votes
      2
      Posts
      7.1k
      Views

      danD

      You are correct. The verified flag exists on the corresponding user and the registration. You could optionally use the "verify registration" templatefor this purpose.

      If you then ignored the verified: false flag on the registration in your code, it should not impact you.

      Another option would be to listen for the user.registration.create event and then fire off an email on your end, or call the Email Send API to send a pre-made FusionAuth email template as a welcome event: https://fusionauth.io/docs/v1/tech/apis/emails/#send-an-email

    • danD

      Email verification without sending emails?

      Q&A
      • registrations email verification • • dan
      2
      0
      Votes
      2
      Posts
      4.3k
      Views

      danD

      You could use the skipVerification parameter (set it to true) on the user or registration create statement, and then the https://fusionauth.io/docs/v1/tech/apis/users#resend-verification-email call with sendVerifyEmail set to false.

      This would give you a verificationId you could use with this API call: https://fusionauth.io/docs/v1/tech/apis/users#verify-a-users-email

    • danD

      The default templates are being marked as spam?

      Q&A
      • spam verification email • • dan
      2
      0
      Votes
      2
      Posts
      3.0k
      Views

      danD

      It looks like the issue was our mail server. We are using Mailgun SMTP service for our mail sending and this offers a tracking feature.

      This tracking feature adds a invisible image to the html code in order to get request for stats. If I deactivate this feature, the HTML_IMAGE_ONLY_12 error is gone and the mail are no longer marked as SPAM. We don't have any issues with our other applications because sent emails are bigger in text content.

    • danD

      Token difference when account hasn't been verified

      Q&A
      • email verification jwt • • dan
      2
      0
      Votes
      2
      Posts
      3.8k
      Views

      danD

      The JWT (id_token or access_token) will contain the email_verified claim with a value of true or false, so if you wish to limit privilege based upon this state, that would be a good way to do it.