FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    How does one add custom claims to the JWT issued by the OAuth flow?

    Scheduled Pinned Locked Moved Solved
    Q&A
    claims jwt oauth
    1
    2
    10.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • danD
      dan
      last edited by

      How does one add custom claims to the JWT issued by an OAuth flow?

      I'm trying to use FusionAuth to add claims required by Hasura.

      --
      FusionAuth - Auth for devs, built by devs.
      https://fusionauth.io

      1 Reply Last reply Reply Quote 0
      • danD
        dan
        last edited by

        In general you are going to want to use a Lambda to populate additional claims: https://fusionauth.io/docs/v1/tech/lambdas/jwt-populate

        This issue has some notes about Hasura in particular: https://github.com/FusionAuth/fusionauth-issues/issues/61

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        1 Reply Last reply Reply Quote 0
        • B bharath.yadavally referenced this topic on
        • First post
          Last post