Skip to content

Commit

Permalink
Client OAuth2 properties to use scope not scopes
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sdoxsee authored and jgrandja committed Feb 8, 2019
1 parent 51f905c commit 7633fbf
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion samples/boot/oauth2webclient-webflux/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion samples/boot/oauth2webclient/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7633fbf

Please sign in to comment.