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:
parent
17e774d8c7
commit
a7a9271313
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue