Skip to content

Commit 70d433a

Browse files
committed
Update ref-doc with OAuth2Authorization.getAuthorizedScopes()
Issue gh-829
1 parent 2dabfa0 commit 70d433a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/src/docs/asciidoc/core-model-components.adoc

+6-4
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,9 @@ public class OAuth2Authorization implements Serializable {
163163
private String registeredClientId; <2>
164164
private String principalName; <3>
165165
private AuthorizationGrantType authorizationGrantType; <4>
166-
private Map<Class<? extends OAuth2Token>, Token<?>> tokens; <5>
167-
private Map<String, Object> attributes; <6>
166+
private Set<String> authorizedScopes; <5>
167+
private Map<Class<? extends OAuth2Token>, Token<?>> tokens; <6>
168+
private Map<String, Object> attributes; <7>
168169
169170
...
170171
@@ -174,8 +175,9 @@ public class OAuth2Authorization implements Serializable {
174175
<2> `registeredClientId`: The ID that uniquely identifies the <<registered-client, RegisteredClient>>.
175176
<3> `principalName`: The principal name of the resource owner (or client).
176177
<4> `authorizationGrantType`: The `AuthorizationGrantType` used.
177-
<5> `tokens`: The `OAuth2Token` instances (and associated metadata) specific to the executed authorization grant type.
178-
<6> `attributes`: The additional attributes specific to the executed authorization grant type – for example, the authenticated `Principal`, `OAuth2AuthorizationRequest`, authorized scope(s), and others.
178+
<5> `authorizedScopes`: The `Set` of scope(s) authorized for the client.
179+
<6> `tokens`: The `OAuth2Token` instances (and associated metadata) specific to the executed authorization grant type.
180+
<7> `attributes`: The additional attributes specific to the executed authorization grant type – for example, the authenticated `Principal`, `OAuth2AuthorizationRequest`, and others.
179181

180182
`OAuth2Authorization` and its associated `OAuth2Token` instances have a set lifespan.
181183
A newly issued `OAuth2Token` is active and becomes inactive when it either expires or is invalidated (revoked).

0 commit comments

Comments
 (0)