Wednesday, May 11, 2016

WSO2 IS SSO with .NET application

In this blog, I would like to discuss another common case which, I couldn't find many entries in explaining how to integrate WSO2 Identity Server with .NET web application.

 There are different types of 3rd party components available but out of that thought of demonstrating the demo with Component Space [1] which provides a comprehensive framework to implement SSO solutions and the demonstration was prepared with using those references.

I will use some steps (with images) to demonstrate how easily could integrate, the sample code can be download [3] and you could easily open up .NET IDE so, you can customize it according to your preference.


  • First, you should register .NET web application you have written as a service provider, you can customize SP parameters such as assertion encryption, SLO settings according to your preference. (I would assume at this point you may have covered fundamentals of WSO2 Identity server, such as registering Sevice Provide (SP), Identity Provider (IP) and other basic fundamentals, if not recommendation is to go through [2]




  • Then, you have to customize the SSO web app settings under web.config
<configuration>
  <appSettings>
    <add key="idpssoURL" value="https://localhost:9443/samlsso" />
    <add key="idpArtifactResponderURL" value="http://localhost:51394/SAML2IdentityProvider/SAML/ArtifactResponder.aspx" />
    <add key="idpLogoutURL" value="https://localhost:9443/samlsso" />
 </appSettings>
<connectionStrings/>




  • Once you do all the required modifications at SSO web app, then when deploying to IIS server, during initial startup it would ask the way SSOSAMLRequest should have generated, this is customizable, which means you don't need to expose to the actual client but for development perspective, you can play around with different options available.




  •  The next step would be, when you click "continue" button, it would direct you to IS SSO login page as depicted below.




  • Then once you log in successfully, it would show the welcome page as given below.






[1] https://docs.wso2.com/display/IS500/Samples
[2] http://www.componentspace.com/SAMLv20.aspx
[3] https://www.dropbox.com/s/jfik1852xdhf342/SAML2ServiceProvider.zip?dl=0

32 comments:

  1. it is so informational and descriptive post on how to integrate WSO2 Identity Server with .NET web application. it will help me resolve many issues regarding several projects. Keep blogging

    ReplyDelete
  2. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a .Net developer learn from Dot Net Training in Chennai. or learn thru Dot Net Training in Chennai. Nowadays Dot Net has tons of job opportunities on various vertical industry.
    or Javascript Training in Chennai. Nowadays JavaScript has tons of job opportunities on various vertical industry.

    ReplyDelete
  3. I am getting The SAML response signature failed to verify. after IS SSO login page, I believe its to do with the certs. How do I match them on the WSO2 IS and the sample .net app?

    Thanks
    Jay

    ReplyDelete
    Replies
    1. I'm also having this problem, did you manage to fix it?

      Delete
  4. Thanks for Nice and Informative Post. This article is really contains lot more information about This Topic.  https://internetprivatsphare.ch

    ReplyDelete
  5. I just want to let you know that I just check out your site and I find it very interesting and informative.. les meilleurs vpn

    ReplyDelete
  6. I am hoping the same best effort from you in the future as well. In fact your creative writing skills has inspired me. vpn reviews

    ReplyDelete
  7. It is interesting to read your blog post and I am going to share it with my friends.aybabg

    ReplyDelete
  8. This is a smart blog. I mean it. You have so much knowledge about this issue, and so much passion. You also know how to make people rally behind it, obviously from the responses. https://privacyonline.fi

    ReplyDelete
  9. The knowledge of technology you have been sharing thorough this post is very much helpful to develop new idea. here by i also want to share this.
    Best Devops training in sholinganallur
    Devops training in velachery
    Devops training in annanagar
    Devops training in tambaram

    ReplyDelete
  10. Nice information, valuable and excellent design, as share good stuff with good ideas and concepts, lots of great information and inspiration, both of which I need, thanks to offer such a helpful information here.
    python course in pune
    python course in chennai
    python course in Bangalore

    ReplyDelete
  11. This is an awesome post.Really very informative and creative contents. These concept is a good way to enhance the knowledge.I like it and help me to development very well.Thank you for this brief explanation and very nice information.Well, got a good knowledge.
    Data Science Training in Indira nagar
    Data Science training in marathahalli
    Data Science Interview questions and answers
    Data Science training in btm layout | Data Science Training in Bangalore
    Data Science Training in BTM Layout | Data Science training in Bangalore
    Data science training in kalyan nagar

    ReplyDelete
  12. Great Article… I love to read your articles because your writing style is too good, its is very very helpful for all of us and I never get bored while reading your article because, they are becomes a more and more interesting from the starting lines until the end.

    rpa training in chennai
    rpa training in bangalore
    rpa training in pune
    rpa training in marathahalli
    rpa training in btm
    best rpa training in chennai

    ReplyDelete
  13. Great Article… I love to read your articles because your writing style is too good, its is very very helpful for all of us and I never get bored while reading your article because, they are becomes a more and more interesting from the starting lines until the end.

    rpa training in chennai
    rpa training in bangalore
    rpa training in pune
    rpa training in marathahalli
    rpa training in btm
    best rpa training in chennai

    ReplyDelete
  14. When I initially commented, I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get several emails with the same comment. Is there any way you can remove people from that service? Thanks.
    AWS Training in Bangalore | Amazon Web Services Training in Bangalore
    Advanced Amazon Web Services Training in Pune | Best AWS Training in Pune
    AWS Online Training | Best Online AWS Certification Course - Gangboard
    Best Top 110 plus AWS Interview Question and Answers 2019

    ReplyDelete
  15. Come in and win right now. best slot machines Do not lose your luck.

    ReplyDelete
  16. Awesome..You have clearly explained …Its very useful for me to know about new things..Keep on blogging..
    Python Online training
    python Training in Chennai
    Python training in Bangalore

    ReplyDelete
  17. Are you looking for Web Application Development in India? Kanhasoft is providing Web Application Development services globally to boost your business. Get custom custom web application solution with professionals.

    ReplyDelete
  18. Hmm, it seems like your site ate my first comment (it was extremely long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog. I as well as an aspiring blog writer, but I’m still new to the whole thing. Do you have any recommendations for newbie blog writers? I’d appreciate it.
    Advanced AWS Course Interview Questions And Answers, Top 250+AWS Jobs Interviews Questions and Answers 2018
    Advanced AWS Jobs Interview questions and answers |Best Top 110 AWS Interview Question and Answers – india

    ReplyDelete
  19. Superb. I really enjoyed very much with this article here. Really it is an amazing article I had ever read. I hope it will help a lot for all. Thank you so much for this amazing posts and please keep update like this excellent article. thank you for sharing such a great blog with us.
    microsoft azure training in bangalore
    rpa training in bangalore
    rpa training in pune
    best rpa training in bangalore

    ReplyDelete
  20. A very nice guide. I will definitely follow these tips. Thank you for sharing such detailed article. I am learning a lot from you.
    Best Devops training in sholinganallur
    Devops training in velachery
    Devops training in annanagar
    Devops training in tambaram

    ReplyDelete
  21. Amazing Article ! I have bookmarked this article page as i received good information from this. All the best for the upcoming articles. I will be waiting for your new articles. Thank You ! Kindly Visit Us @ Coimbatore Travels | Ooty Travels | Coimbatore Airport Taxi

    ReplyDelete
  22. This is most informative and also this post most user friendly and super navigation to all posts... Thank you so much for giving this information to me.. 
    python Course in Pune
    python Course institute in Chennai
    python Training institute in Bangalore

    ReplyDelete
  23. Come and play with us in the best casino win online casino real money waiting for you in the best online casino in history.

    ReplyDelete
  24. I appreciate your efforts because it conveys the message of what you are trying to say. It's a great skill to make even the person who doesn't know about the subject could able to understand the subject . Your blogs are understandable and also elaborately described. I hope to read more and more interesting articles from your blog. All the best.
    Data Science course in rajaji nagar
    Data Science with Python course in chenni
    Data Science course in electronic city
    Data Science course in USA
    Data science course in pune | Data Science Training institute in Pune
    Data science course in bangalore


    ReplyDelete
  25. Если вы ищете rgb контроллер то я знаю где он может быть можете заглянуть в Ekodio

    ReplyDelete
  26. Nice blog and absolutely outstanding. You can do something much better but i still say this perfect.Keep trying for the best.
    web application development process

    ReplyDelete