Skip to content

feat: add tool to fetch an application's SAML IdP metadata - #66

Open
mjdavidson wants to merge 1 commit into
okta:mainfrom
mjdavidson:feat/saml-idp-metadata-tool
Open

feat: add tool to fetch an application's SAML IdP metadata#66
mjdavidson wants to merge 1 commit into
okta:mainfrom
mjdavidson:feat/saml-idp-metadata-tool

Conversation

@mjdavidson

Copy link
Copy Markdown

get_application exposes the metadata link but not its contents, and the SAML metadata endpoint requires authentication. Adds get_app_saml_metadata, which fetches the metadata XML server-side and returns the raw XML plus the parsed entityID, SSO URL, and signing certificate (parsed with the standard library, no new dependency).

Tests: tests/test_get_app_saml_metadata.py.

get_application exposes the metadata link but not its contents, and the SAML
metadata endpoint requires authentication, so retrieving an app's IdP metadata
(entityID, SSO URL, signing certificate) previously meant calling the API
outside the server with the cached token.

Add get_app_saml_metadata, which fetches GET /api/v1/apps/{id}/sso/saml/metadata
server-side through the request executor and returns the raw XML plus the parsed
entityID, SSO URL, and x509 certificate. Parsing uses the standard library, so
no new dependency is added. Gated on okta.apps.read.
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.

1 participant