Use code buckets based on authenticated user data

anabnlsn
anabnlsn PHP Developer Posts: 3 🧑🏻‍🚀 - Cadet

Hi! I was wondering if anyone had a solution for an issue we are encountering. We would like to use different code buckets based on the authenticated users type. The recommended way of having different domains for different code buckets just doesn't work for us as the session does not get shared between them, or at least we cannot find a way to do that. Any assistance would be greatly appreciated.

Answers

  • profuel
    profuel SSA Sprykee Posts: 106 🪐 - Explorer

    Sorry to disappoint you, but it's not possible change code-bucket on a such late stage, as after authentication of a user.

    I may suggest you to implement strategy plugins, selecting correct one based on the authenticated user type, and so the plugin will call needed piece code. This is the final goal with code bucket as well, although you have to add resolving yourself.