Package org.mitre.openid.connect.model

Examples of org.mitre.openid.connect.model.UserInfo.toJson()


    // get the userinfo claims for each scope
    UserInfo user = userInfoService.getByUsername(p.getName());
    Map<String, Map<String, String>> claimsForScopes = new HashMap<String, Map<String, String>>();
    if (user != null) {
      JsonObject userJson = user.toJson();
 
      for (SystemScope systemScope : sortedScopes) {
        Map<String, String> claimValues = new HashMap<String, String>();
 
        Set<String> claims = scopeClaimTranslationService.getClaimsForScope(systemScope.getValue());
View Full Code Here


            UserInfo user = userInfoService.getByUsername(p.getName());

            // if we have one, inject it so views can use it
            if (user != null) {
              modelAndView.addObject("userInfo", user);
              modelAndView.addObject("userInfoJson", user.toJson());
            }
          }
        }
      }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.