How to delete an authentication method for FlexiCapture12

Question

Is it possible to delete the authentication method that was created for FlexiCapture12? How to do it?

 

Answer

You can use a script to delete the authentication methods that you have created. To delete an authentication method using a script, do the following:

  1. Download the script here or use the script code provided below.

    PowerShell script

    $url = 'https://localhost';
    $IdPID = 22; # Id of Identity Provider to be deleted
    # Parse parameters from command line
    for ( $i = 0; $i -lt $args.count; $i++ ) {
        if ($args[ $i ] -eq "/url"){ $url = $args[ $i + 1 ];}
        if ($args[ $i ] -eq "/IdPID"){ $IdPID = $args[ $i + 1 ];}
    }
    # Auth service
    $serviceWsdlUrl = $url + '/FlexiCapture12/Server/AuthAPI/v1/WSDL';
    $svc = New-WebServiceProxy -Uri $serviceWsdlUrl -UseDefaultCredential;
    $ns = $svc.GetType().Namespace;
    $svc.Url = $url + '/FlexiCapture12/Server/AuthAPI/v1/SOAP';
    # Get TenantId from Application server
    if (![string]::IsNullOrEmpty($tenant)){
        $tenantId = $svc.FindTenant( $tenant );
    } else {
        $tenantId = $null;
    }
    $svc.DeleteIdentityProvider( $IdPID );

     

  2. On the machine where ABBYY FlexiCapture Application Server is installed, open the Windows PowerShell console as an administrator
  3. and specify the script name, the path to the script, and other required parameters.

    Note: The script must be run by a user that has administrative permissions for ABBYY FlexiCapture.

Below is a sample command that runs the script:

C:\Temp\DeleteIdentityProvider.ps1 /url 'https://localhost' /IdPID 22

In this sample command:

                 a. url is the path to the Application Server,
                for example, $url = 'https://localhost'.

                 b. IdPID is the ID of the identity provider that needs to be deleted,
                 for example, $IdPID = 22.

 

Note: how to get the identity of the provider is described in the following article.

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.