diff --git a/docs/src/docs/asciidoc/getting-started.adoc b/docs/src/docs/asciidoc/getting-started.adoc index 81b8d75e..cb6103c7 100644 --- a/docs/src/docs/asciidoc/getting-started.adoc +++ b/docs/src/docs/asciidoc/getting-started.adoc @@ -80,7 +80,11 @@ If you want to customize the default configuration (regardless of whether you're These components can be defined as follows: [[sample.gettingStarted]] -include::code:SecurityConfig[] +.SecurityConfig.java +[source,java] +---- +include::{docs-java}/sample/gettingStarted/SecurityConfig.java[] +---- This is a minimal configuration for getting started quickly. To understand what each component is used for, see the following descriptions: diff --git a/docs/src/docs/asciidoc/guides/how-to-jpa.adoc b/docs/src/docs/asciidoc/guides/how-to-jpa.adoc index d7355d83..3e99478e 100644 --- a/docs/src/docs/asciidoc/guides/how-to-jpa.adoc +++ b/docs/src/docs/asciidoc/guides/how-to-jpa.adoc @@ -146,7 +146,10 @@ The following listing shows the `Client` entity, which is used to persist inform [[sample.jpa.entity.client]] .Client Entity -include::code:Client[] +[source,java] +---- +include::{examples-dir}/src/main/java/sample/jpa/entity/client/Client.java[] +---- [[authorization-entity]] === Authorization Entity @@ -155,7 +158,10 @@ The following listing shows the `Authorization` entity, which is used to persist [[sample.jpa.entity.authorization]] .Authorization Entity -include::code:Authorization[] +[source,java] +---- +include::{examples-dir}/src/main/java/sample/jpa/entity/authorization/Authorization.java[] +---- [[authorization-consent-entity]] === Authorization Consent Entity @@ -164,7 +170,10 @@ The following listing shows the `AuthorizationConsent` entity, which is used to [[sample.jpa.entity.authorizationConsent]] .Authorization Consent Entity -include::code:AuthorizationConsent[] +[source,java] +---- +include::{examples-dir}/src/main/java/sample/jpa/entity/authorizationConsent/AuthorizationConsent.java[] +---- [[create-spring-data-repositories]] == Create Spring Data repositories @@ -182,7 +191,10 @@ The following listing shows the `ClientRepository`, which is able to find a <> where we customize claims of the ID token, you can customize claims of the access token itself ahead of time, as in the following example: -include::code:JwtTokenCustomizerConfig[] +[source,java] +---- +include::{examples-dir}/src/main/java/sample/userinfo/jwt/JwtTokenCustomizerConfig.java[] +---- Whether you customize the user info response directly or use this example and customize the access token, you can look up information in a database, perform an LDAP query, make a request to another service, or use any other means of obtaining the information you want to be presented in the user info response.