feat: add tool to fetch an application's SAML IdP metadata - #66
Open
mjdavidson wants to merge 1 commit into
Open
feat: add tool to fetch an application's SAML IdP metadata#66mjdavidson wants to merge 1 commit into
mjdavidson wants to merge 1 commit into
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
get_applicationexposes the metadata link but not its contents, and the SAML metadata endpoint requires authentication. Addsget_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.