<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D51Y00006cmBtJSAUOkta Classic EngineLifecycle ManagementAnswered2024-04-16T11:35:30.000Z2019-09-05T04:01:58.000Z2019-09-05T23:24:20.000Z

xdeav (xdeav) asked a question.

how to put a token in verification email via user registration process

Hi,

 

we have trying to integrate okta with our brand-new employee identity management system.

in our self-registration scenario, user have to input a 'name'"as mandatory attribute to finalize the process.

so we are creating our original landing page that provides form for the name, and modify link in verification email sent from okta. as you can imagine, our logic beghind the page have to know the target user id and also have to be retrieve some kind of token to update the user attributes. we can find "registrationEmailVerificationToken" in "Email and SMS Options" document page but there are no further information.

so can we implement this behavior with that token ? or is there any other better solution ?

 

thanks!


  • 0l4ye (0l4ye)

    Hi Kenichi,

     

    I think it needs a few steps:

     

    • You can change the activation link in the default template not using the ${activationLink} but link to your own self-registration system (I think you have already done this).
    • In the link to you put the ${activationToken} where you can redirect the user to, after providing the 'name'
    • also include the link the ${user.login} name (yes this works 🙂 and no, user.id is not working)
    • use the Okta API with a system api token, to update the user profile. using the ${user.login} name and the status of the user (wait for activation)
    • then redirect the user the Okta activation page with the activationtoken, to activate the account.

     

    I hope this helps.

    Kind regards, Fabian

     

     

     

     

     

    There are several thinks that pop up, but I'm not sure what is easiest for you.

    You can

     

     

     

    1. The activation email of Okta redirects the user by default to ${activationLink}; You can change the link to your own landing page and redirect the user, after input there name to the Okta activation page using the ${activationToken} you can put in the link to your backend system.
    2.  

    3.  

     

    Expand Post
    Selected as Best
  • 0l4ye (0l4ye)

    Hi Kenichi,

     

    I think it needs a few steps:

     

    • You can change the activation link in the default template not using the ${activationLink} but link to your own self-registration system (I think you have already done this).
    • In the link to you put the ${activationToken} where you can redirect the user to, after providing the 'name'
    • also include the link the ${user.login} name (yes this works 🙂 and no, user.id is not working)
    • use the Okta API with a system api token, to update the user profile. using the ${user.login} name and the status of the user (wait for activation)
    • then redirect the user the Okta activation page with the activationtoken, to activate the account.

     

    I hope this helps.

    Kind regards, Fabian

     

     

     

     

     

    There are several thinks that pop up, but I'm not sure what is easiest for you.

    You can

     

     

     

    1. The activation email of Okta redirects the user by default to ${activationLink}; You can change the link to your own landing page and redirect the user, after input there name to the Okta activation page using the ${activationToken} you can put in the link to your backend system.
    2.  

    3.  

     

    Expand Post
    Selected as Best
  • xdeav (xdeav)

    Hi Fabian,

     

    many thanks for your response. yes, we will try to follow your steps.

     

    cheers,

    ken

    Expand Post
This question is closed.
Loading
how to put a token in verification email via user registration process