Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing configuration setting name for jwt secret key #398

Merged
merged 3 commits into from
Jun 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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