GetOAuthSettingsResult GetOAuthSettings(GetOAuthSettingsArg tArg)
tArg. Operation execution parameters.
The GetOAuthSettings operation gets settings for working with OAuth servers specified on BI server.
The operation allows for getting settings of OAuth servers used as authorization services. The settings are determined in the registry or settings.xml file in the OAuth subsection.
To execute the operation, in the tArg.svcKey field specify key of the element with authorization service settings. When the value is -1, settings of all services determined on BI server are obtained.
The operation results in the obtained settings.
Below is the example of getting BI server settings for working with OAuth servers.
{
"GetOAuthSettings" :
{
"tArg" :
{
"svcKey" : "-1"
}
}
}
{
"GetOAuthSettingsResult" :
{
"settings" :
{
"it" :
{
"id" : "Google",
"key" : "0",
"authUrl" : "",
"icon" : "data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAB5SURBVDhPlZHJEQAhCASNy4CMx2hMxmBwPaBgxLXsJ9IyaKBHUKg5BiDmug47SnB6GeWwoLrtjVSSJ\/TqIJVZODIF7r+2L4HzQBiXIWwDJOFCTTaCTEABl5Ynwh22m3hpMWCLo2D+QY35ET4wuMIXBo5lY6Jw5VEgatYLFxcSCQWXAAAAAElFTkSuQmCC"
}
}
}
}
public static GetOAuthSettingsResult GetOAuthSettings()
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetOAuthSettings()
{
tArg = new GetOAuthSettingsArg()
{
svcKey = uint.MaxValue
}
};
// Get OAuth server settings determined on BI server
var result = somClient.GetOAuthSettings(tGet);
return result;
}
See also: