public bool LoginXSRFPrevention(RPAuthenticationConclusion conc) { VProgram_API.AssumeTrustedServer(googlePrincipal); VProgram_API.AssumeTrustedServer(SVX_Principal); VProgram_API.AssumeTrustedBrowser(conc.authenticatedClient); var idp = VProgram_API.GetParticipant <Google_IdP>(googlePrincipal); return(idp.Ghost_CheckSignedIn(VProgram_API.Owner(conc.authenticatedClient), conc.googleUsername)); }
public bool LoginSafety(RPAuthenticationConclusion conc) { var googleUser = GoogleUserPrincipal(conc.googleUsername); VProgram_API.AssumeTrustedServer(googlePrincipal); VProgram_API.AssumeTrustedServer(SVX_Principal); VProgram_API.AssumeTrusted(googleUser); return(VProgram_API.ActsFor(conc.authenticatedClient, googleUser)); }