Method GetTokenSettings
GetTokenSettings(String)
Get settings for token login profiles
Declaration
List<TokenLoginSettingsContract> GetTokenSettings(string tenantName)
Parameters
Type | Name | Description |
---|---|---|
System.String | tenantName | Optional: Tenant name to logon to. See also GetAllTenantNames() |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<TokenLoginSettingsContract> | List of possible token login providers |
Examples
POST http://YourServerName/InfoShare/Json/Server/GetTokenSettings
Example for get settings for token login profiles.{
"tenantName": "DCIS_KENDOX Database"
}
Response:
{
"GetTokenSettingsResult": [{
"AllowedIssuer": "https://login.microsoftonline.com/17e0252a-c946-49c3-b18b-4609f1e4140e",
"Audience": "c2a0f988-ec1a-455b-9d7e-dd751b1f2603",
"AuthorizeURL": "",
"Description": {
"Values": [{
"Culture": "de",
"Text": "Azure AD" }] },
"Id": "9b1b329e-b0cc-4809-bb7c-a01d358ad91c",
"LoginRedirectUrl": "https://localhost/MobileWebClient",
"Name": {
"Values": [{
"Culture": "de",
"Text": "Azure AD" }] },
"ResponseType": "",
"TokenTypeEnum": "AzureAD"
}, {
"AllowedIssuer": "https://customername.okta.com/oauth2/default",
"Audience": "",
"Audience": "",
"AuthorizeURL": "https://login.customername.com/17e0252a-c946-49c3-b18b-4609f1e4140d/oauth2/v2.0/authorize?client_id=755ba78e-0cfb-4ecc-b4a5-141d9dfed9b4&redirect_uri=https%3A%2F%2Fvkojdev013%2Fmobilewebclient%2F&response_type=code&scope=openid%20profile&nonce=ef60c186-04d6-624c-b275-cabe4139fe84&state=0a41a7ef-347c-467a-93ac-e7657ce98749",
"ResponseType": "Code",
"Description": {
"Values": [{
"Culture": "en-US",
"Text": "" }, {
"Culture": "en",
"Text": ""}] },
"Id": "92d7a18c-40e7-4740-89ac-e95a8af6a9b5",
"LoginRedirectUrl": "",
"Name": {
"Values": [{
"Culture": "en-US",
"Text": "" }, {
"Culture": "en",
"Text": ""}] },
"TokenTypeEnum": "Okta"
}, {
"AllowedIssuer": "https://login.microsoftonline.com/17e0252a-c946-49c3-b18b-4609f1e4140e",
"Audience": "c2a0f988-ec1a-455b-9d7e-dd751b1f2603",
"AuthorizeURL": "https://login.microsoftonline.com/17e0252a-c946-49c3-b18b-4609f1e4140d/oauth2/v2.0/authorize?client_Id=c2a0f988-ec1a-455b-9d7e-dd751b1f2603&redirect_uri=https%3a%2f%2fvkojdev01%2fMobileWebClient%2f&response_type=code&scope=openid%20profile&nonce=6d43cda3-5943-43be-915e-1bf6b5570bdc&state=8203b317-9667-42ec-87d0-182717f69fa3",
"Description": {
"Values": [{
"Culture": "de",
"Text": "Generic Open Id Provider Beschreibung" }, {
"Culture": "en",
"Text": "Generic Open Id Provider Description" }] },
"Id": "8203b317-9667-42ec-87d0-182717f69fa3",
"LoginRedirectUrl": "https://localhost/MobileWebClient/",
"Name": {
"Values": [{
"Culture": "de",
"Text": "Generic Open Id Provider" }, {
"Culture": "en",
"Text": "Generic Open Id Provider" }] },
"ResponseType": "code",
"TokenTypeEnum": "GenericOpenIdProvider" }]
}
Exceptions
Type | Condition |
---|---|
ServiceException | URL {allowedIssuer} is not reachable (10249) |