@Controller @RequestMapping(value="register") public class DynamicClientRegistrationEndpoint extends Object
| Constructor and Description |
|---|
DynamicClientRegistrationEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
String |
deleteClient(String clientId,
org.springframework.ui.Model m,
org.springframework.security.oauth2.provider.OAuth2Authentication auth)
Delete the indicated client from the system.
|
String |
readClientConfiguration(String clientId,
org.springframework.ui.Model m,
org.springframework.security.oauth2.provider.OAuth2Authentication auth)
Get the meta information for a client.
|
String |
registerNewClient(String jsonString,
org.springframework.ui.Model m)
Create a new Client, issue a client ID, and create a registration access token.
|
String |
updateClient(String clientId,
String jsonString,
org.springframework.ui.Model m,
org.springframework.security.oauth2.provider.OAuth2Authentication auth)
Update the metainformation for a given client.
|
public static final String URL
public DynamicClientRegistrationEndpoint()
@RequestMapping(method=POST,
consumes="application/json",
produces="application/json")
public String registerNewClient(@RequestBody
String jsonString,
org.springframework.ui.Model m)
jsonString - m - p - @PreAuthorize(value="hasRole(\'ROLE_CLIENT\') and #oauth2.hasScope(\'registration-token\')")
@RequestMapping(value="/{id}",
method=GET,
produces="application/json")
public String readClientConfiguration(@PathVariable(value="id")
String clientId,
org.springframework.ui.Model m,
org.springframework.security.oauth2.provider.OAuth2Authentication auth)
clientId - m - auth - @PreAuthorize(value="hasRole(\'ROLE_CLIENT\') and #oauth2.hasScope(\'registration-token\')")
@RequestMapping(value="/{id}",
method=PUT,
produces="application/json",
consumes="application/json")
public String updateClient(@PathVariable(value="id")
String clientId,
@RequestBody
String jsonString,
org.springframework.ui.Model m,
org.springframework.security.oauth2.provider.OAuth2Authentication auth)
clientId - jsonString - m - auth - @PreAuthorize(value="hasRole(\'ROLE_CLIENT\') and #oauth2.hasScope(\'registration-token\')")
@RequestMapping(value="/{id}",
method=DELETE,
produces="application/json")
public String deleteClient(@PathVariable(value="id")
String clientId,
org.springframework.ui.Model m,
org.springframework.security.oauth2.provider.OAuth2Authentication auth)
clientId - m - auth - Copyright © 2018. All rights reserved.