Skip to content

Latest commit

 

History

History
88 lines (66 loc) · 2.63 KB

ApplicationSSOApi.md

File metadata and controls

88 lines (66 loc) · 2.63 KB

Okta.Sdk.Api.ApplicationSSOApi

All URIs are relative to https://subdomain.okta.com

Method HTTP request Description
PreviewSAMLmetadataForApplication GET /api/v1/apps/{appId}/sso/saml/metadata Preview the application SAML metadata

PreviewSAMLmetadataForApplication

string PreviewSAMLmetadataForApplication (string appId)

Preview the application SAML metadata

Previews the SSO SAML metadata for an application

Example

using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;

namespace Example
{
    public class PreviewSAMLmetadataForApplicationExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.OktaDomain = "https://subdomain.okta.com";
            // Configure API key authorization: apiToken
            config.Token ="YOUR_API_KEY";
            // Configure OAuth2 access token for authorization: oauth2
            config.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ApplicationSSOApi(config);
            var appId = 0oafxqCAJWWGELFTYASJ;  // string | Application ID

            try
            {
                // Preview the application SAML metadata
                string result = apiInstance.PreviewSAMLmetadataForApplication(appId);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ApplicationSSOApi.PreviewSAMLmetadataForApplication: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
appId string Application ID

Return type

string

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/xml, application/json

HTTP response details

Status code Description Response headers
200 OK -
403 Forbidden -
404 Not Found -
429 Too Many Requests -

[Back to top] [Back to API list] [Back to Model list] [Back to README]