コード例 #1
0
        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);
        }
コード例 #2
0
 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));
 }
コード例 #3
0
 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));
 }