# Simple Java SAML SP Testing

**URL:** <https://devforum.okta.com/t/simple-java-saml-sp-testing/3530>\
**Category:** SAML\
**Created:** [December 2, 2018, 8:22pm UTC](https://devforum.okta.com/t/simple-java-saml-sp-testing/3530 "2018-12-02T20:22:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![arofer](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@arofer](https://devforum.okta.com/u/arofer)\
**Post date:** [December 2, 2018, 8:22pm UTC](https://devforum.okta.com/t/simple-java-saml-sp-testing/3530/1 "2018-12-02T20:22:54Z")

</div>

We need an IDP for testing a simple java servlet implementation of SAML 2.0 SP. We don’t use Spring, Python, or other third-party frameworks. It looks like [http://saml.oktadev.com/](http://saml.oktadev.com/) could work, but there are no instructions how to integrate a java SP to this IDP. Can you help? Our customer has Okta.

---

<div class="post-metadata">

**Author:** ![bdemers](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/bdemers/32/23_2.png) [@bdemers](https://devforum.okta.com/u/bdemers)\
**Post date:** [December 3, 2018, 4:36pm UTC](https://devforum.okta.com/t/simple-java-saml-sp-testing/3530/2 "2018-12-03T16:36:03Z")

</div>

Can you tell us a bit more about your stack? Are you trying to stay with something EE?

---

<div class="post-metadata">

**Author:** ![arofer](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@arofer](https://devforum.okta.com/u/arofer)\
**Post date:** [December 3, 2018, 6:25pm UTC](https://devforum.okta.com/t/simple-java-saml-sp-testing/3530/3 "2018-12-03T18:25:30Z")

</div>

We use a servlet to contain our application. It runs under various web app servers like tomcat, weblogic, jboss, etc. J2SE is sufficient but J2EE works for us as well. We are using opensaml for the current SP logic, but we need to support other configurations and profiles, e.g., IDP-initiated.

---

<div class="post-metadata">

**Author:** ![arofer](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@arofer](https://devforum.okta.com/u/arofer)\
**Post date:** [February 18, 2019, 7:39pm UTC](https://devforum.okta.com/t/simple-java-saml-sp-testing/3530/4 "2019-02-18T19:39:20Z")

</div>

EE works for us, but we don’t require it. We are a standard servlet.

---

<div class="post-metadata">

**Author:** ![bdemers](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/bdemers/32/23_2.png) [@bdemers](https://devforum.okta.com/u/bdemers)\
**Post date:** [February 19, 2019, 5:56pm UTC](https://devforum.okta.com/t/simple-java-saml-sp-testing/3530/5 "2019-02-19T17:56:59Z")

</div>

Take a look at: [https://github.com/AlainODea/opensaml-idp-example](https://github.com/AlainODea/opensaml-idp-example)

I haven’t looked at the code, and this project was originally a reproduce case, Alain has sent us a few nice PRs in the past.

If that doesn’t help reach out to support, keep us posted!

---

<div class="post-metadata">

**Author:** ![arofer](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@arofer](https://devforum.okta.com/u/arofer)\
**Post date:** [February 19, 2019, 7:20pm UTC](https://devforum.okta.com/t/simple-java-saml-sp-testing/3530/6 "2019-02-19T19:20:39Z")

</div>

Thanks for the response.  
Sadly, the example is only applicable to those who are configuring the Okta.  
We are developers of a servlet that uses OpenSAML to access Okta, but we have no direct access to the Okta configuration that would allow us to use the referenced test.  
That’s why I was originally looking for a test IDP. I have given up on that now. We will work with our customers to configure an Okta IDP for testing.

---

<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, 7:40pm UTC](https://devforum.okta.com/t/simple-java-saml-sp-testing/3530/7 "2024-01-17T19:40:01Z")

</div>

Closed on January 17, 2024, 7:40pm UTC


