# Can't get the spring\_security\_saml example working

**URL:** <https://devforum.okta.com/t/cant-get-the-spring-security-saml-example-working/4805>\
**Category:** SAML\
**Created:** [April 11, 2019, 12:47pm UTC](https://devforum.okta.com/t/cant-get-the-spring-security-saml-example-working/4805 "2019-04-11T12:47:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![doug.zhang](https://avatars.discourse-cdn.com/v4/letter/d/8e7dd6/32.png) [@doug.zhang](https://devforum.okta.com/u/doug.zhang)\
**Post date:** [April 11, 2019, 12:47pm UTC](https://devforum.okta.com/t/cant-get-the-spring-security-saml-example-working/4805/1 "2019-04-11T12:47:39Z")

</div>

Hi there,

I am new to Okta and trying to have the example working:  
[https://okta.github.io/code/java/spring\_security\_saml](https://okta.github.io/code/java/spring_security_saml)

Followed the instruction to clone two repositories:

```auto
git clone https://github.com/spring-projects/spring-security-saml.git

```

```auto
git clone https://github.com/nshobayo/okta-SpringSAML.git

```

Now I have two folders: spring-security-saml and okta-SpringSAML.  
According to the example, the next step is to:

```auto
rm -rf spring-security-saml/sample/src/main

```

However, in the spring-security-saml directory, I can find a folder named “sample”.  
Could you please advise how to solve this problem?

---

<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:** [April 16, 2019, 1:30pm UTC](https://devforum.okta.com/t/cant-get-the-spring-security-saml-example-working/4805/2 "2019-04-16T13:30:24Z")

</div>

Hey @doug.zhang!

The example you referenced is a bit dated (we will get that updated). Until then, I’d suggest looking at this blog post: [https://developer.okta.com/blog/2017/03/16/spring-boot-saml](https://developer.okta.com/blog/2017/03/16/spring-boot-saml)

---

<div class="post-metadata">

**Author:** ![doug.zhang](https://avatars.discourse-cdn.com/v4/letter/d/8e7dd6/32.png) [@doug.zhang](https://devforum.okta.com/u/doug.zhang)\
**Post date:** [April 16, 2019, 10:38pm UTC](https://devforum.okta.com/t/cant-get-the-spring-security-saml-example-working/4805/3 "2019-04-16T22:38:32Z")

</div>

Dear Sir/Madam:

Thanks for your updates, much appreciated!

Kind regards,

Doug

![Inactive hide details for "bdemers via Okta Developer Forums" ---16/04/2019 11:10:32 PM--- *************************************](https://global.discourse-cdn.com/oktadev/original/2X/8/8d131f16ac63f0a9c083c1291a79b729af029b34.gif)“bdemers via Okta Developer Forums” —16/04/2019 11:10:32 PM—\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

![](https://global.discourse-cdn.com/oktadev/original/2X/6/61fb0df5a06b5ff020220d7287490b61e54130c6.gif)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [January 17, 2024, 8:00pm UTC](https://devforum.okta.com/t/cant-get-the-spring-security-saml-example-working/4805/4 "2024-01-17T20:00:32Z")

</div>

Closed on January 17, 2024, 8:00pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
