Skip to content
This repository was archived by the owner on Dec 12, 2018. It is now read-only.

Commit 080ef43

Browse files
author
Mario
committed
1217 - Update tutorial to mention a single property to disable Spring Security
1 parent 988c751 commit 080ef43

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

docs/source/tutorial.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,14 @@ disable it. That's where the ``application.properties`` files comes in:
239239
.. code-block:: java
240240
:linenos:
241241
242-
stormpath.spring.security.enabled = false
243242
security.basic.enabled = false
244243
245-
The first line disables Stormpath's hooks into Spring Security and the second line disables Spring Security itself.
244+
That property disables Spring Security and avoids our Spring Security integration to be loaded.
245+
246+
.. note::
247+
Alternatively you can disable the Stormpath Spring Security integration while keeping Spring Security enabled. Such setup will allow you
248+
to take full control of Spring Security's configuration without having Stormath's integration in the mix. This can be
249+
achieved by having `stormpath.spring.security.enabled = false` in your configuration file.
246250

247251
Pretty simple setup, right? In the next section, we'll layer in some flow logic based on logged-in state. And then we
248252
will refine that to make use of all the Spring Security has to offer in making our lives easier.

tutorials/spring-boot/00-the-basics/src/main/resources/application.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,4 @@
1919
#
2020
#stormpath.application.href = https://api.stormpath.com/v1/applications/YOUR_APPLICATION_ID_HERE
2121

22-
stormpath.spring.security.enabled = false
2322
security.basic.enabled = false

tutorials/spring-boot/01-some-access-controls/src/main/resources/application.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,4 @@
1919
#
2020
#stormpath.application.href = https://api.stormpath.com/v1/applications/YOUR_APPLICATION_ID_HERE
2121

22-
stormpath.spring.security.enabled = false
2322
security.basic.enabled = false

tutorials/spring/00-the-basics/src/main/resources/application.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,4 @@
1919
#
2020
#stormpath.application.href = https://api.stormpath.com/v1/applications/YOUR_APPLICATION_ID_HERE
2121

22-
stormpath.spring.security.enabled = false
2322
security.basic.enabled = false

tutorials/spring/01-some-access-controls/src/main/resources/application.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,3 @@
2020
#stormpath.application.href = https://api.stormpath.com/v1/applications/YOUR_APPLICATION_ID_HERE
2121

2222
stormpath.spring.security.enabled = false
23-
security.basic.enabled = false

0 commit comments

Comments
 (0)