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

    Save user address and return address (postal_code, street, number...) in OAuth token

    Scheduled Pinned Locked Moved Unsolved
    General Discussion
    oauth userinfo user data
    2
    2
    3.5k
    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.
    • V
      vinicius.alfonso
      last edited by

      Hi everybody!

      I need return user address in OAuth token, and I find in documentation that is possible return address info.

      Follow the documentation
      https://fusionauth.io/learn/expert-advice/oauth/modern-guide-to-oauth#the-userinfo-endpoint

      On OAuth2 flow we call /userinfo end-point, so we couldn't return address.

      The authorize route on FusionAuth we set scope parameter to receive address openid, but not work.

      And I couldn't find where I can save the user address so that it is redeemed there in /userinfo.

      Can you help me?

      Thanks

      danD 1 Reply Last reply Reply Quote 0
      • V vinicius.alfonso marked this topic as a question on
      • danD
        dan @vinicius.alfonso
        last edited by dan

        Hi @vinicius-alfonso !

        As documented here: https://fusionauth.io/docs/v1/tech/oauth/endpoints#userinfo we don't provide the address info, even if you pass the address scope.

        Per the OpenID spec, section 5.4, it appears that supporting the address scope is optional: https://openid.net/specs/openid-connect-core-1_0.html#ScopeClaims

        If this is important to you, please file an issue here: https://github.com/fusionauth/fusionauth-issues/issues with details about the use case.

        We are guided by our customers and community when it comes to implementation of issues. Here's our general roadmap guidance: https://fusionauth.io/docs/v1/tech/core-concepts/roadmap

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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post