public void SetAuthToken(AuthTokenDto token, string key) { var authToken = _localData.Get(key); if (authToken != null) _localData.Remove(key); _localData.Add(key, token); }
public ServerNode (ServerDto dto) { _serverDto = dto; this.DisplayName = dto.ServerName; Tag = new AuthTokenDto { ServerDto = dto }; notificationObject = NSNotificationCenter.DefaultCenter.AddObserver ((NSString)"CloseApplication", OnCloseConnectionNotificationReceived); }
private void AddTenantNode (AuthTokenDto tokenDto, TenantDto tenant) { var node = new TenantNode (tokenDto.ServerDto, tenant.Name) { DisplayName = tenant.Name, Tag = tenant.Guid, Parent = this }; node.Refresh (this, EventArgs.Empty); AddTenantNode (node); }
private void PopulateToken(AuthTokenDto authToken) { TxtIDTokenString.StringValue = JwtHelper.Decode(authToken.Token.IdToken); TxtAccessTokenString.StringValue = JwtHelper.Decode(authToken.Token.AccessToken); TxtRefreshTokenString.StringValue = JwtHelper.Decode(authToken.Token.RefreshToken); }