@Controller @RequestMapping(value="/userinfo") public class UserInfoEndpoint extends Object
Constructor and Description |
---|
UserInfoEndpoint() |
Modifier and Type | Method and Description |
---|---|
String |
getInfo(String claimsRequestJsonString,
String acceptHeader,
org.springframework.security.oauth2.provider.OAuth2Authentication auth,
org.springframework.ui.Model model)
Get information about the user as specified in the accessToken included in this request
|
public static final String URL
public UserInfoEndpoint()
@PreAuthorize(value="hasRole(\'ROLE_USER\') and #oauth2.hasScope(\'openid\')") @RequestMapping(method={GET,POST}, produces={"application/json","application/jwt"}) public String getInfo(@RequestParam(value="claims",required=false) String claimsRequestJsonString, @RequestHeader(value="Accept",required=false) String acceptHeader, org.springframework.security.oauth2.provider.OAuth2Authentication auth, org.springframework.ui.Model model)
Copyright © 2018. All rights reserved.