Exemple #1
0
 /// <inheritdoc />
 public async Task UnlinkCustomAsync(ISession session, string id)
 {
     var request = new ApiAccountCustom {
         Id = id
     };
     await _apiClient.UnlinkCustomAsync(session.AuthToken, request);
 }
Exemple #2
0
        /// <inheritdoc />
        public async Task <ISession> AuthenticateCustomAsync(string id)
        {
            var request = new ApiAccountCustom {
                Id = id
            };
            var resp = await _apiClient.AuthenticateCustomAsync(ServerKey, string.Empty, request);

            return(Session.Restore(resp.Token));
        }
Exemple #3
0
        /// <inheritdoc />
        public async Task <ISession> AuthenticateCustomAsync(string id, string username = null, bool create = true)
        {
            var request = new ApiAccountCustom {
                Id = id
            };
            var resp = await _apiClient.AuthenticateCustomAsync(ServerKey, string.Empty, request, create, username);

            return(Session.Restore(resp.Token, resp.Created));
        }