Exemplo n.º 1
0
 public void SetAuthToken(AuthTokenDto token, string key)
 {
     var authToken = _localData.Get(key);
     if (authToken != null)
         _localData.Remove(key);
     _localData.Add(key, token);
 }
Exemplo n.º 2
0
		public ServerNode (ServerDto dto)
		{
			_serverDto = dto;
			this.DisplayName = dto.ServerName;
			Tag = new AuthTokenDto { ServerDto = dto };
			notificationObject = NSNotificationCenter.DefaultCenter.AddObserver ((NSString)"CloseApplication", OnCloseConnectionNotificationReceived);
		}
Exemplo n.º 3
0
		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);
		}