Browse Source

Polish ref-doc

Issue gh-1156
pull/1161/head
Steve Riesenberg 3 years ago
parent
commit
cec90dd73d
No known key found for this signature in database
GPG Key ID: 5F311AB48A55D521
  1. 2
      docs/src/docs/asciidoc/examples/src/main/java/sample/jpa/service/authorization/JpaOAuth2AuthorizationService.java
  2. 2
      docs/src/docs/asciidoc/guides/how-to-jpa.adoc

2
docs/src/docs/asciidoc/examples/src/main/java/sample/jpa/service/authorization/JpaOAuth2AuthorizationService.java

@ -173,7 +173,7 @@ public class JpaOAuth2AuthorizationService implements OAuth2AuthorizationService @@ -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(),

2
docs/src/docs/asciidoc/guides/how-to-jpa.adoc

@ -185,7 +185,7 @@ include::code:ClientRepository[] @@ -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]]

Loading…
Cancel
Save