Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return Okta user ID and other user attributes in postSubmit registration hook #3673

Open
joshuacollins-deloitte opened this issue Jul 15, 2024 · 1 comment

Comments

@joshuacollins-deloitte
Copy link

Describe the feature request

Currently, when a user account is created using self-service registration, there seems to be no way to gain information about the created Okta account from the frontend for analytics purposes.

The Okta SDK receives the ID of the newly created user in the API response from the /idp/idx/enroll/new call - it would be helpful if the widget made this information available in hooks.

Snippet of /new response:

{
<snip>
"user": {
        "type": "object",
        "value": {
            "id": "00ugquwxxjnxSPgM5697",
            "identifier": "user@email.com",
            "profile": {
                "firstName": "abc",
                "lastName": "123",
                "timeZone": "America/Los_Angeles",
                "locale": "en_US",
                "email": "u***r@email.com"
            }
        }
    },
</snip>
}

New or Affected Resource(s)

postSubmit registration hook

Provide a documentation link

https://github.com/okta/okta-signin-widget?tab=readme-ov-file#registration

Additional Information?

No response

@denysoblohin-okta
Copy link
Contributor

denysoblohin-okta commented Jul 16, 2024

Thanks for your feature request. Sounds reasonable.
Internal ref: OKTA-749134

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants