Exemplo n.º 1
0
        public override void Refresh(object sender, EventArgs e)
        {
            Children.Clear();
            var identitySourceNode = new IdentitySourcesNode(_serverDto, _tenantName)
            {
                Parent = this
            };

            identitySourceNode.Refresh(this, EventArgs.Empty);
            Children.Add(identitySourceNode);
            Children.Add(new IdentityProvidersNode()
            {
                Parent = this
            });
            Children.Add(new RelyingPartyNode()
            {
                Parent = this
            });
            Children.Add(new OidcClientNode()
            {
                Parent = this
            });
            Children.Add(new ServerCertificatesNode(_serverDto, _tenantName)
            {
                Parent = this
            });
            NSNotificationCenter.DefaultCenter.PostNotificationName("ReloadOutlineView", this);
        }
Exemplo n.º 2
0
		public override void Refresh (object sender, EventArgs e)
		{
			Children.Clear ();
			var identitySourceNode = new IdentitySourcesNode (_serverDto, _tenantName){ Parent = this };
			identitySourceNode.Refresh (this, EventArgs.Empty);
			Children.Add (identitySourceNode);
			Children.Add (new IdentityProvidersNode (){ Parent = this });
			Children.Add (new RelyingPartyNode (){ Parent = this });
			Children.Add (new OidcClientNode (){ Parent = this });
			Children.Add (new ServerCertificatesNode (_serverDto, _tenantName){ Parent = this });
			NSNotificationCenter.DefaultCenter.PostNotificationName ("ReloadOutlineView", this);
		}
Exemplo n.º 3
0
        public void Refresh()
        {
            Children.Clear();
            var identitySourceNode = new IdentitySourcesNode(_serverDto, _tenantName)
            {
                Parent = this
            };
            var roles = new List <String>()
            {
                "Administrator", "RegularUser"
            };
            var auth = SnapInContext.Instance.AuthTokenManager.GetAuthToken(_serverDto.ServerName);
            var role = auth.Token.Role;

            if (roles.Contains(role))
            {
                identitySourceNode.Refresh(this, EventArgs.Empty);
            }
            Children.Add(identitySourceNode);
            Children.Add(new IdentityProvidersNode()
            {
                Parent = this
            });
            Children.Add(new RelyingPartyNode()
            {
                Parent = this
            });
            Children.Add(new OidcClientNode()
            {
                Parent = this
            });
            Children.Add(new ServerCertificatesNode(_serverDto, _tenantName)
            {
                Parent = this
            });
            NSNotificationCenter.DefaultCenter.PostNotificationName("ReloadOutlineView", this);
        }