use of org.mamute.auth.GoogleAPI in project mamute by caelum.
the class GoogleAuthController method signUpViaGoogle.
@Get("/sign-up/google/")
public void signUpViaGoogle(String state, String code) {
Token token = service.getAccessToken(null, new Verifier(code));
SocialAPI googleAPI = new GoogleAPI(token, service);
loginManager.merge(MethodType.GOOGLE, googleAPI);
redirectToRightUrl(state);
}