Browse Source

Polish ref-doc

Issue gh-1156
Steve Riesenberg 2 years ago
parent
commit
cec90dd73d

+ 1 - 1
docs/src/docs/asciidoc/examples/src/main/java/sample/jpa/service/authorization/JpaOAuth2AuthorizationService.java

@@ -173,7 +173,7 @@ public class JpaOAuth2AuthorizationService implements OAuth2AuthorizationService
 			builder.token(userCode, metadata -> metadata.putAll(parseMap(entity.getUserCodeMetadata())));
 		}
 
-		if (entity.getUserCodeValue() != null) {
+		if (entity.getDeviceCodeValue() != null) {
 			OAuth2DeviceCode deviceCode = new OAuth2DeviceCode(
 					entity.getDeviceCodeValue(),
 					entity.getDeviceCodeIssuedAt(),

+ 1 - 1
docs/src/docs/asciidoc/guides/how-to-jpa.adoc

@@ -185,7 +185,7 @@ include::code:ClientRepository[]
 [[authorization-repository]]
 === Authorization Repository
 
-The following listing shows the `AuthorizationRepository`, which is able to find an <<authorization-entity,`Authorization`>> by the `id` field as well as the `state`, `authorizationCodeValue`, `accessTokenValue` and `refreshTokenValue` token fields.
+The following listing shows the `AuthorizationRepository`, which is able to find an <<authorization-entity,`Authorization`>> by the `id` field as well as the `state`, `authorizationCodeValue`, `accessTokenValue`, `refreshTokenValue`, `userCodeValue` and `deviceCodeValue` token fields.
 It also allows querying a combination of token fields.
 
 [[sample.jpa.repository.authorization]]