Client OAuth2 properties to use scope not scopes

OAuth2ClientProperties.Registration (which captures .properties and
.yml for OAuth2 Client) has a member `scope` but not `scopes`. Samples
and documentation were using `scopes` and have now been updated to use
`scope`.

Fixes gh-6510
This commit is contained in:
Stephen Doxsee 2019-02-08 08:41:03 -05:00 committed by Joe Grandja
parent 17e774d8c7
commit a7a9271313
5 changed files with 5 additions and 5 deletions

View File

@ -14,7 +14,7 @@ spring:
github:
client-id: replace-with-client-id
client-secret: replace-with-client-secret
scopes: read:user,public_repo
scope: read:user,public_repo
----
You will need to replace the `client-id` and `client-secret` with values registered with GitHub.

View File

@ -40,7 +40,7 @@ spring:
client-id: replace-with-client-id
client-secret: replace-with-client-secret
provider: github
scopes: read:user,public_repo
scope: read:user,public_repo
----
+
.OAuth Client properties

View File

@ -16,6 +16,6 @@ spring:
client-id: replace-with-client-id
client-secret: replace-with-client-secret
provider: github
scopes: read:user,public_repo
scope: read:user,public_repo
resource-uri: https://api.github.com/user/repos

View File

@ -40,7 +40,7 @@ spring:
client-id: replace-with-client-id
client-secret: replace-with-client-secret
provider: github
scopes: read:user,public_repo
scope: read:user,public_repo
----
+
.OAuth Client properties

View File

@ -16,6 +16,6 @@ spring:
client-id: replace-with-client-id
client-secret: replace-with-client-secret
provider: github
scopes: read:user,public_repo
scope: read:user,public_repo
resource-uri: https://api.github.com/user/repos