*/
public String verifyAssertion(GitCallbackRequest request) {
Preconditions.checkArgument(!Strings.isNullOrEmpty(request.getRequestUri()));
String ret = "error";
try {
GitServiceClient apiClient = Context.getGitServiceClient();
JSONObject idpAssertion = apiClient.verifyResponse(request.getRequestUri(), null);
request.setIdpAssertion(idpAssertion);
if (idpAssertion != null) {
if (idpAssertion.has("trusted")) {
request.setIdentifier(idpAssertion.getString("email"));
ret = idpAssertion.getBoolean("trusted") ? "trusted" : "untrusted";