OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce Authentication Anonymous CustomerUser Authentication during Checkout

This topic contains 2 replies, has 2 voices, and was last updated by  Frank 2 years, 10 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
  • #40552


    Hi there,

    I am trying to modify Anonymous Customer User Authentification:

    I want to customize authenticate()-method (for checkout only) and depending on shoppinglist (my anonymous customer user can create multiple ones), which he uses during enabled guest-checkout-process.

    What would be the best way to pass which object into the authenticate-method():

    * Checkout (contains shoppinglist as a source)?
    * Request (should contain shoppingListId via Get)?
    * ..?

    I’m also unsure about the performance.

    Could you roughly sketch me a meaningful approach?

    Thanks a lot

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
  • #40569

    Andrey Yatsenko

    Hi Frank,
    I’m afraid, this is not the right place to extend.
    Please specify what are you trying to do with checkout and request data during the authentication process?

    Also, take a look at the possibility to extend the checkout workflow instead of using the listener. In the workflow, you have access to all the required data, including Checkout entity itself and it should not affect the performance.



    Hi Andrey,

    yes, AnonymousCustomerUserAuthenticationProvider is really not the right place to extend … !

    I followed your suggestion, and looked for some central place in the checkout-workflow to find a pracicable solution for my problem:

    What I found useful, was to extend the website-manager in OroWebsiteBundle:

    Method CeeWebsiteManager::getCurrentCheckout() allows access to Checkout-object using Request (slightly modified FrontendHelper).

    Now I can retrieve my previously to Checkout assigned (businessUnitOwner-driven, modified) owner-property and ‘transfer’ it to everything I want.

    For example to customer/customerUser (non-authenticated visitor/guest) creation after input of billing/shippment-addresses:

    I have to change owner-assignment in similiar way at all places during checkout-workflow, where customer/customerUser creation takes place.
    Another target is, for example the late-registration process (last step in checkout-workflow):

    Hope, this makes sense from the oro-developer-team point of view, too. And, may be, it is helpful for someone, who has a similiar problem to solve.

    Kind regards

Viewing 2 replies - 1 through 2 (of 2 total)

The forum ‘OroCommerce’ is closed to new topics and replies.

Back to top

You will be redirected to [title]. Would you like to continue?

Yes No

You will be redirected to [title]. Would you like to continue?

Yes No