mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-31 17:22:13 +00:00
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:
|
github:
|
||||||
client-id: replace-with-client-id
|
client-id: replace-with-client-id
|
||||||
client-secret: replace-with-client-secret
|
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.
|
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-id: replace-with-client-id
|
||||||
client-secret: replace-with-client-secret
|
client-secret: replace-with-client-secret
|
||||||
provider: github
|
provider: github
|
||||||
scopes: read:user,public_repo
|
scope: read:user,public_repo
|
||||||
----
|
----
|
||||||
+
|
+
|
||||||
.OAuth Client properties
|
.OAuth Client properties
|
||||||
|
@ -16,6 +16,6 @@ spring:
|
|||||||
client-id: replace-with-client-id
|
client-id: replace-with-client-id
|
||||||
client-secret: replace-with-client-secret
|
client-secret: replace-with-client-secret
|
||||||
provider: github
|
provider: github
|
||||||
scopes: read:user,public_repo
|
scope: read:user,public_repo
|
||||||
|
|
||||||
resource-uri: https://api.github.com/user/repos
|
resource-uri: https://api.github.com/user/repos
|
||||||
|
@ -40,7 +40,7 @@ spring:
|
|||||||
client-id: replace-with-client-id
|
client-id: replace-with-client-id
|
||||||
client-secret: replace-with-client-secret
|
client-secret: replace-with-client-secret
|
||||||
provider: github
|
provider: github
|
||||||
scopes: read:user,public_repo
|
scope: read:user,public_repo
|
||||||
----
|
----
|
||||||
+
|
+
|
||||||
.OAuth Client properties
|
.OAuth Client properties
|
||||||
|
@ -16,6 +16,6 @@ spring:
|
|||||||
client-id: replace-with-client-id
|
client-id: replace-with-client-id
|
||||||
client-secret: replace-with-client-secret
|
client-secret: replace-with-client-secret
|
||||||
provider: github
|
provider: github
|
||||||
scopes: read:user,public_repo
|
scope: read:user,public_repo
|
||||||
|
|
||||||
resource-uri: https://api.github.com/user/repos
|
resource-uri: https://api.github.com/user/repos
|
||||||
|
Loading…
x
Reference in New Issue
Block a user