GetExtServiceSettingsResult GetExtServiceSettings(GetExtServiceSettingsArg tArg)
tArg. Operation execution parameters.
The GetExtServiceSettings operation gets settings of the external authentication service, which the repository is set up to work with.
The operation enables the user to get address of the external service specified in repository settings. Settings are determined in the registry/ settings.xml file. To execute the operation, in the tArg.mbId field specify repository description identifier. Repository description is set in the Metabases.xml file.
The operation results in the obtained external service settings.
Below is the example of getting settings of the external authentication service, which the repository is set up to work with. The request contains repository description identifier. The response contains the obtained settings.
{
"GetExtServiceSettings" :
{
"tArg" :
{
"mbId" : "TEST_JWT"
}
}
}
{
"GetExtServiceSettingsResult" :
{
"settings" :
{
"id" : "JWT_PROVIDER",
"authUrl" : "https://example.com/jwt/login"
}
}
}
public static GetExtServiceSettingsResult GetExtServiceSettings(string metabaseDefinitionId)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetExtServiceSettings()
{
tArg = new GetExtServiceSettingsArg()
{
mbId = metabaseDefinitionId
}
};
// Get external service settings
var result = somClient.GetExtServiceSettings(tGet);
return result;
}
See also: