cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

B2B storefront and SAML SSO integration using okta

Former Member
0 Kudos
1,234

Hi,

We are in the process of integrating hybris b2b accelerator with Okta SSO solution. We leveraged 'samlsinglesignon' extension and all the configuration done properly. Round-trip from Okta to hybris happens successfully and able to get the uid in hybris.

But not sure about how to set this user in session and create hybris session Hybris SSO trail shows only ASM integration. I tried the same as reference in storefront but i'm not able to get the session in hybris with the user from okta. Where and which class/flow should I customize in order to successfully establish the session?

Accepted Solutions (0)

Answers (1)

Answers (1)

aimprosoft
Participant

Dear Andres

Please check my comments below:

After you have got oktaUserUID you need to do something like the following:
..
UserModel currentUser = userService.getUserForUID(oktaUserUID);
userService.setCurrentUser(currentUser);
...
customerFacade.loginSuccess();

Please let me know if it works for you.

Thanks

Igor

phoude
Participant
0 Kudos
I am facing the same issue. I have done the above and for some reason the currentUser reverts to Anonymous when I set a breakpoint in a beforeControllerHandler for example.