Skip to content

Commit

Permalink
Merge pull request #398 from daninus14/develop
Browse files Browse the repository at this point in the history
Fixing configuration setting name for jwt secret key
  • Loading branch information
alvarosanchez committed Jun 14, 2019
2 parents 50846f0 + 33c4059 commit 8401f68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions spring-security-rest-docs/src/docs/asciidoc/whatsNew20.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ more information about how to configure it.
=== JWT improvements

As of this version, there is no longer a default value for the configuration property
`grails.plugin.springsecurity.conf.rest.token.storage.jwt.secret`. Furthermore, if you are using JWT and no value has
`grails.plugin.springsecurity.rest.token.storage.jwt.secret`. Furthermore, if you are using JWT and no value has
been provided for that configuration property, an exception will be thrown during application startup.

It is also possible to influence the JWT generation by providing additional claims. Finally, the signing / encryption
Expand All @@ -55,4 +55,4 @@ algorithms used are configurable. Check the <<tokenGeneration>> section for more
* Snapshots are now published automatically to https://oss.jfrog.org[Artifactory OSS] on every successful build. You can
use them by defining this Maven repository inside the `repositories` block in your `build.gradle`:

maven { url "https://oss.jfrog.org/artifactory/oss-snapshot-local" }
maven { url "https://oss.jfrog.org/artifactory/oss-snapshot-local" }
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ class SpringSecurityRestGrailsPlugin extends Plugin {
!pluginManager.hasGrailsPlugin('springSecurityRestGrailsCache') &&
!pluginManager.hasGrailsPlugin('springSecurityRestRedis') &&
!pluginManager.hasGrailsPlugin('springSecurityRestMemcached')) {
throw new Exception("A JWT secret must be defined. Please provide a value for the config property: grails.plugin.springsecurity.conf.rest.token.storage.jwt.secret")
throw new Exception("A JWT secret must be defined. Please provide a value for the config property: grails.plugin.springsecurity.rest.token.storage.jwt.secret")
}
}

Expand Down

0 comments on commit 8401f68

Please sign in to comment.