'Write code to process the saml request from sp and generate saml response

Actually I developed a web application using tomcat and has user data in database. I want my web application to act as identity provider and Salesforce as service provider for single sign on.

How to send request from Salesforce for sso to my application (IDP) which should process the saml request and inturn should return saml response by generating saml token.. I need a java code to do it...

I am not able to find any resources to do it.. Help me!!!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source