Skip to content

fix: add example for create_auth_claim & delete_auth_claim#96

Merged
skumar-05 merged 2 commits intoPORTAL-4741_sdk_upgradefrom
update_sample
May 9, 2025
Merged

fix: add example for create_auth_claim & delete_auth_claim#96
skumar-05 merged 2 commits intoPORTAL-4741_sdk_upgradefrom
update_sample

Conversation

@Subterrane
Copy link
Copy Markdown
Contributor

This pull request adds functionality to manage authentication claims in sample_script.py. The new code demonstrates how to list authorization servers, create an authentication claim, verify its creation, and delete it, including error handling for each step.

Added functionality for managing authentication claims:

  • Created an instance of APIAuthClaimsApi and APIAuthorizationServerApi to interact with authentication claims and authorization servers.
  • Added logic to list available authorization servers, select the first server (if available), and create an authentication claim with a test configuration.
  • Implemented functionality to list all authentication claims to verify the creation of a new claim.
  • Added logic to delete the created authentication claim and verify its deletion by listing claims again.
  • Included comprehensive error handling for all API interactions to ensure robustness.

@skumar-05 skumar-05 merged commit 94a0921 into PORTAL-4741_sdk_upgrade May 9, 2025
6 checks passed
@Subterrane Subterrane deleted the update_sample branch May 9, 2025 18:19
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.

2 participants