protected OperationResult SaveNewccessToken(AccessToken accessToken) { IDeleteAccessTokenBusinessService bs = (IDeleteAccessTokenBusinessService)BusinessFactory.Create("Find.Tools.OAuthServerManager.AccessToken"); OperationResult result = bs.DeleteByRefreshToken(accessToken.RefreshToken); if (result.Result) { Com.Wiseape.Framework.BaseBusinessService <AccessToken> bs2 = (Com.Wiseape.Framework.BaseBusinessService <AccessToken>)bs; result = bs2.Add(accessToken); } return(result); }
public OperationResult SaveAuthorizationCode(AuthenticationCode authorizationCode) { Com.Wiseape.Framework.BaseBusinessService <AuthenticationCode> bs = (Com.Wiseape.Framework.BaseBusinessService <AuthenticationCode>)BusinessFactory.Create("Update.Tools.OAuthServerManager.AuthenticationCode"); return(bs.Add(authorizationCode)); }
public OperationResult SaveAuthenticationSession(AuthenticationSession session) { Com.Wiseape.Framework.BaseBusinessService <AuthenticationSession> authenticationSession = (Com.Wiseape.Framework.BaseBusinessService <AuthenticationSession>)BusinessFactory.Create("Find.Tools.OAuthServerManager.AuthenticationSession"); return(authenticationSession.Add(session)); }