Example #1
0
 public void AddNewExternalDomain(object sender, EventArgs e)
 {
     ActionHelper.Execute(delegate() {
         var form = new AddExternalIdentitySourceController {
             ServerDto  = GetServerDto(),
             TenantName = _tenantName
         };
         var result = NSApplication.SharedApplication.RunModalForWindow(form.Window);
         if (result == VMIdentityConstants.DIALOGOK)
         {
             UIErrorHelper.ShowAlert("Domain " + form.IdentityProviderDto.Name + " created successfully", "Information");
             Refresh(sender, e);
         }
     });
 }
Example #2
0
 public void View(object sender, EventArgs e)
 {
     ActionHelper.Execute(delegate() {
         var serverDto = GetServerDTO();
         var service   = SnapInContext.Instance.ServiceGateway;
         var auth      = SnapInContext.Instance.AuthTokenManager.GetAuthToken(serverDto.ServerName);
         var dto       = service.IdentityProvider.Get(serverDto, _tenantName, _provider.Name, auth.Token);
         var form      = new AddExternalIdentitySourceController {
             ServerDto           = serverDto,
             TenantName          = _tenantName,
             IdentityProviderDto = dto
         };
         NSApplication.SharedApplication.RunModalForWindow(form.Window);
     });
 }