# SAML 2.0 in an ASP.NET webforms application

**URL:** <https://devforum.okta.com/t/saml-2-0-in-an-asp-net-webforms-application/12005>\
**Category:** SAML\
**Created:** [December 4, 2020, 6:07pm UTC](https://devforum.okta.com/t/saml-2-0-in-an-asp-net-webforms-application/12005 "2020-12-04T18:07:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Omar\_Figueroa](https://avatars.discourse-cdn.com/v4/letter/o/a9adbd/32.png) [@Omar\_Figueroa](https://devforum.okta.com/u/Omar_Figueroa)\
**Post date:** [December 4, 2020, 6:07pm UTC](https://devforum.okta.com/t/saml-2-0-in-an-asp-net-webforms-application/12005/1 "2020-12-04T18:07:27Z")

</div>

Hello,

I’m building an [ASP.NET](http://ASP.NET) webforms application where I’m planning to use Okta as a way to authenticate users, and I was wondering if it’s possible to use the SAML protocol in these types of web applications.

I have seen this example ([Secure Your ASP.NET Web Forms Application with OpenID Connect and Okta | Okta Developer](https://developer.okta.com/blog/2018/08/29/secure-webforms-with-openidconnect-okta)) where Okta authentication is implemented in a webforms application, but it uses the OpenID Connect protocol, and up until now I have only found documentation for that protocol only. I’ve seen documentation for solutions with the SAML protocol, but they’re mostly for [ASP.NET](http://ASP.NET) MVC web applications.

---

<div class="post-metadata">

**Author:** ![twaner4390](https://avatars.discourse-cdn.com/v4/letter/t/a87d85/32.png) [@twaner4390](https://devforum.okta.com/u/twaner4390)\
**Post date:** [January 13, 2021, 5:59am UTC](https://devforum.okta.com/t/saml-2-0-in-an-asp-net-webforms-application/12005/2 "2021-01-13T05:59:33Z")

</div>

There are articles and Github samples but Okta has an article I was trying: [https://developer.okta.com/blog/2020/10/23/how-to-authenticate-with-saml-in-aspnet-core-and-csharp#:~:text=%20How%20to%20Authenticate%20with%20SAML%20in%20ASP.NET,You%20have%20added%20all%20of%20t...%20More%20](https://developer.okta.com/blog/2020/10/23/how-to-authenticate-with-saml-in-aspnet-core-and-csharp#:~:text=%20How%20to%20Authenticate%20with%20SAML%20in%20ASP.NET,You%20have%20added%20all%20of%20t...%20More%20)  
I get errors with compiling but I’m hoping they are versions of the packages I used but it links to other pages that describes the process. Easier for me just to set up a VM with a vendor SAML services to test SP to IdP and IdP to SP setup.

---

<div class="post-metadata">

**Author:** ![ramandeep\_singh](https://avatars.discourse-cdn.com/v4/letter/r/2acd7d/32.png) [@ramandeep\_singh](https://devforum.okta.com/u/ramandeep_singh)\
**Post date:** [October 28, 2021, 12:45pm UTC](https://devforum.okta.com/t/saml-2-0-in-an-asp-net-webforms-application/12005/3 "2021-10-28T12:45:44Z")

</div>

Hi Omar, I also have same situation. I am trying ti integrate okta saml in my [asp.net](http://asp.net) 4.5 web app. All material i find is for mvc. Do you have any link or your own project example which can help me?

---

<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 19, 2024, 12:51am UTC](https://devforum.okta.com/t/saml-2-0-in-an-asp-net-webforms-application/12005/4 "2024-01-19T00:51:27Z")

</div>

Closed on January 19, 2024, 12:51am UTC


