Polish ref-doc

Issue gh-1156
This commit is contained in:
Steve Riesenberg
2023-04-12 10:37:52 -05:00
parent 13a61034ed
commit cec90dd73d
2 changed files with 2 additions and 2 deletions

View File

@@ -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(),

View File

@@ -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]]