Customer Portal

Get Involved. Join the Conversation.

Topic

    Narendra Muttineni
    Create contact if no contact found during SSO Log-In on...Answered
    Topic posted June 3, 2019 by Narendra MuttineniSilver Crown: 22,500+ Points 
    54 Views, 2 Comments
    Title:
    Create contact if no contact found during SSO Log-In on customer portal
    Summary:
    Create contact if no contact found during SSO Log-In on customer portal
    Content:

    Hi All,

    Based on the post https://cloudcustomerconnect.oracle.com/posts/8553262af0, I have created script using pre_login hook to create contact if not found. but this hook only being called if the contact already exist inside the OSvC. Am I missing anything here? I get the following error if contact does not exist in the service cloud ...../error/error_id/saml18/subject/contact.emails.address.

    SSO is working fine if there is contact exist in service cloud but the contact should have the Login otherwise it is getting failed. Is contact.Login is mandatory in order to SSO work successfully.

    Could some one please suggest the right path to implement this?

    Thanks,

    Narendra

    Version:
    18D

    Best Comment

    Narendra Muttineni

    Thank you for your response!! 

    I have implemented a script to call pre_login hook when try to login to service cloud. But the problem is the script is not at all being called.

    "Then I noticed that, Login is mandatory to login to osc cp pages. If we have only email address in the subject, then you can't call pre_login hook and it will check whether contact is having Login or not. However, if you use only conact.login in the subject, then we can call custom hook and can execute our script."

    Thanks,

    Narendra

    Comment

     

    • Daniel Rocha

      Not sure if this will help but you can try the code in this post https://cloudcustomerconnect.oracle.com/posts/302d10f034 to parse the SAML response and then check if  you need to create the contact.

    • Narendra Muttineni

      Thank you for your response!! 

      I have implemented a script to call pre_login hook when try to login to service cloud. But the problem is the script is not at all being called.

      "Then I noticed that, Login is mandatory to login to osc cp pages. If we have only email address in the subject, then you can't call pre_login hook and it will check whether contact is having Login or not. However, if you use only conact.login in the subject, then we can call custom hook and can execute our script."

      Thanks,

      Narendra