Skip to content

Commit

Permalink
add warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sdelamo committed Nov 16, 2022
1 parent 8a0ba17 commit e420598
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/docs/guide/aot/aotJwks.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ Micronaut applications need to make a network request To fetch JWKS. You can u
To enable this optimization, add
`micronaut.security.jwks.enabled.enabled=true` to `aot.properties`.

WARNING: The application uses the JWKS exposed by the authorization server at build time. The JWKS may be out-of-date if the authorization server changes the them between build time and the application startup. You can clear keys with `JwksSignature::clear` or `JwkSetFetcher::clearCache`.

This comment has been minimized.

Copy link
@melix

melix Nov 16, 2022

Contributor

Typo: The JWKS may be out-of-date if the authorization server changes them between build time and application startup



Learn about https://micronaut-projects.github.io/micronaut-maven-plugin/latest/examples/aot.html#configuration[Micronaut Maven Plugin AOT configuration] and https://micronaut-projects.github.io/micronaut-gradle-plugin/latest/#_configuration[Micronaut Gradle Plugin AOT Configuration].
2 changes: 2 additions & 0 deletions src/main/docs/guide/aot/aotOpenidConfiguration.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ You can use Micronaut Security ahead-of-time build optimizations to do the reque
To enable this optimization, add
`micronaut.security.openid-configuration.enabled=true` to `aot.properties`.

WARNING: The application uses the configuration present at the authorization server at build time. The configuration may be out-of-date if the authorization server changes the configuration between the build time and the application startup.

This comment has been minimized.

Copy link
@melix

melix Nov 16, 2022

Contributor

I would remove "the" before "build time" and "application startup"


Learn about https://micronaut-projects.github.io/micronaut-maven-plugin/latest/examples/aot.html#configuration[Micronaut Maven Plugin AOT configuration] and https://micronaut-projects.github.io/micronaut-gradle-plugin/latest/#_configuration[Micronaut Gradle Plugin AOT Configuration].

0 comments on commit e420598

Please sign in to comment.