Skip to content

Conversation

@aniket-okta
Copy link
Contributor

Description

Implements the Invoke-OktaPreviewSAMLMetadataForApplication cmdlet to retrieve SAML metadata for applications via the /api/v1/apps/{appId}/sso/saml/metadata endpoint.

Changes

  • Added /api/v1/apps/{appId}/sso/saml/metadata endpoint to OpenAPI specification
  • Generated new PowerShell cmdlet with support for optional keyId parameter
  • Added unit tests for endpoint validation and parameter handling
  • Updated module manifest and documentation

Usage

# Get SAML metadata for an application
$metadata = Invoke-OktaPreviewSAMLMetadataForApplication -AppId '0oaXXXXXX'

# Get SAML metadata with specific key credential
$metadata = Invoke-OktaPreviewSAMLMetadataForApplication -AppId '0oaXXXXXX' -KeyId 'SIMXXXXXX'

Testing

  • Unit tests pass (2/2)
  • Endpoint connectivity verified
  • Module builds successfully

Related Issues

Closes #88

Checklist

  • Code follows project style guidelines
  • Tests added and passing
  • Documentation updated
  • OpenAPI spec updated

@aniket-okta aniket-okta merged commit e22be1d into main Nov 7, 2025
6 checks passed
@aniket-okta aniket-okta deleted the OKTA-1051843 branch November 7, 2025 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Preview SAML Metadata cmdlet

3 participants