# SAML integration with OKTA

**URL:** <https://devforum.okta.com/t/saml-integration-with-okta/4705>\
**Category:** SAML\
**Created:** [April 3, 2019, 1:56pm UTC](https://devforum.okta.com/t/saml-integration-with-okta/4705 "2019-04-03T13:56:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mandeepjangra87](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@mandeepjangra87](https://devforum.okta.com/u/mandeepjangra87)\
**Post date:** [April 3, 2019, 1:56pm UTC](https://devforum.okta.com/t/saml-integration-with-okta/4705/1 "2019-04-03T13:56:32Z")

</div>

I need to integrate OKTA SSO using SAML, in an [ASP.NET](http://ASP.NET) web form application. Need input for the code changes which will required to be done in the [ASP.NET](http://ASP.NET) web form application to accommodate the OKTA SSO using SAML

---

<div class="post-metadata">

**Author:** ![dragos](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/dragos/32/1313_2.png) [@dragos](https://devforum.okta.com/u/dragos)\
**Post date:** [April 3, 2019, 2:49pm UTC](https://devforum.okta.com/t/saml-integration-with-okta/4705/2 "2019-04-03T14:49:50Z")

</div>

Hi @mandeepjangra87

You can use [https://github.com/Sustainsys/Saml2#kentor-authentication-services](https://github.com/Sustainsys/Saml2#kentor-authentication-services) to implement Okta SSO via SAML in [ASP.NET](http://ASP.NET). Please check out the samples provided in the repository.

---

<div class="post-metadata">

**Author:** ![mandeepjangra87](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@mandeepjangra87](https://devforum.okta.com/u/mandeepjangra87)\
**Post date:** [April 7, 2019, 10:44am UTC](https://devforum.okta.com/t/saml-integration-with-okta/4705/3 "2019-04-07T10:44:22Z")

</div>

Hi Dragos  
Thanks for the reply. This example only includes the web config changes. Also following are my requirements:

- the application will be accessed by both internal as well as external users. So we are thinking of having two okta accounts one having internal users and one having external users details. So OKTA will act as 2 IDP’s one for internal and one for exteranl.

I need to know how to do this in [ASP.net](http://ASP.net) WEB FORM application. How to have 2 IDP’s configuration in [asp.net](http://asp.net) web form application. I can think of having an extra field on the login page which will have external/internal option with username and password and then in the code on the basis of internal external field value I can decide on which IDP i need to use.

But how to configure 2 idp’s which is OKTA itself. And sample examples are not available.  
I am looking for both ways SAML as well as OpenID connect with Oauth.

Can you help me out with this?

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [January 17, 2024, 11:19pm UTC](https://devforum.okta.com/t/saml-integration-with-okta/4705/4 "2024-01-17T23:19:12Z")

</div>

Closed on January 17, 2024, 11:19pm UTC


