Skip to content

Conversation

omercnet
Copy link
Member

Introduce an asynchronous demo application to showcase the async capabilities of the Descope SDK. Enhance error handling in async methods and add comprehensive tests for these methods. Update the coverage threshold and refactor existing tests for improved readability. Include the asyncer dependency for async functionality.

- Introduced `async_demo_app.py` to demonstrate async capabilities of the Descope SDK.
- Added `asyncer` dependency to `pyproject.toml`.
- Updated coverage threshold to 97.
- Created comprehensive tests for async methods in `test_async.py`.
- Refactored existing tests for better readability and consistency.
- Enhanced error handling in async methods.
@omercnet omercnet requested a review from LioriE June 26, 2025 13:06
Updated the claims storage mechanism in multiple functions to use Flask's g object instead of _request_ctx_stack. This change improves the clarity and consistency of the code by utilizing the recommended context management approach in Flask.
@omercnet omercnet changed the title Add async support and tests for Descope SDK feat: add async support and tests for Descope SDK Jun 26, 2025
Copy link

Coverage report

The coverage rate went from 97.67% to 97.42% ⬇️

85.33% of new lines are covered.

Diff Coverage details (click to unfold)

descope/descope_client_async.py

85.71% of new lines are covered (85.71% of the complete file).
Missing lines: 93, 95, 105, 107, 166, 169, 180, 182, 202, 206

descope/auth.py

50% of new lines are covered (95.59% of the complete file).
Missing lines: 17

descope/management/jwt.py

100% of new lines are covered (100% of the complete file).

descope/init.py

100% of new lines are covered (100% of the complete file).

@omercnet omercnet requested review from aviadl and guyp-descope June 26, 2025 13:30
@LioriE
Copy link
Contributor

LioriE commented Jun 29, 2025

When using this I get no typehints or autocomplete. is this the same with your local setup?

@wiz-63f3d288d3
Copy link

wiz-63f3d288d3 bot commented Jun 30, 2025

Wiz Scan Summary

Displaying only findings that violated a policy

Scanner Findings
Vulnerability Finding Vulnerabilities
Data Finding Sensitive Data
Secret Finding Secrets
IaC Misconfiguration IaC Misconfigurations
Total

View scan details in Wiz

To detect these findings earlier in the dev lifecycle, try using Wiz Code VS Code Extension.

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