cancel
Showing results for 
Search instead for 
Did you mean: 

Hybris user not authenticated after SAML successful round trip

phoude
Participant
0 Kudos
612

Hi,

we are using the samlsinglesignon extension to implement SSO with Azure B2C IDP. After going through all the configuration steps, we are able to perform SSO authentication but the hybris user is not authenticated. I was expecting the extension to take care of it.

I extended DefaultSSOService and added the below code:

this.userService.setCurrentUser(user);
this.customerFacade.loginSuccess();
 
In my debugging session, I can see that "user" is the one I authenticated via SSO. However, I see that the "currentUser" is reverted to Anonymous. I can see that when placing a breakpoint in a BeforeControllerHandler code for example.
 
I am not sure what I am missing here
 
View Entire Topic
phoude
Participant
0 Kudos

This article helped me resolve my problem: https://nurayfahri.medium.com/for-our-latest-finished-project-we-had-to-implement-sso-from-sharepoin...

This should be in a SAP Commerce Blog...

dprajeu
Discoverer
0 Kudos

@phoude 

I am facing the same issue as you did. Implementing CDC as IDP for B2B.

I've read the suggested article but can't really pin point where the ootb code is failing. Can you provide more insights on your findings as far as root cause, but also the solution?

phoude
Participant
0 Kudos
@dprajeu I don't quite recall. Maybe it centered around the creation of the AuthenticationToken but I don't remember for sure. I was expecting the OOTB to do a seemless integration but it is not. There is a lot that you have to do on your own to make it work such as in the article link I provided.