Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #18

Merged
merged 7 commits into from
Oct 22, 2024
Merged

Develop #18

merged 7 commits into from
Oct 22, 2024

Conversation

Mehrn0ush
Copy link
Owner

No description provided.

- Fixed RBAC test failure by ensuring consistent JWT_SECRET usage during token generation and validation.
- Added additional logging in extract_roles to aid debugging token validation.
- Refactored RBAC test cases to consistently use 'test_secret' for JWT signing and decoding.
- Implemented unit tests for core/pkce.rs to cover:
  - Valid PKCE verifier generation and challenge validation.
  - Invalid PKCE verifier length and character handling.
  - Challenge validation with both correct and incorrect verifiers.
…xtension_grants.rs

- Added tests for device code generation and polling in DefaultDeviceFlowHandler:
  - Test generating device code with valid user code and verification URI.
  - Test polling device code with valid and invalid device codes.
- Added tests for custom grant handling in CustomGrant:
  - Test handling a valid custom grant and returning a token response.
  - Test handling unsupported grant types and ensuring appropriate error response.
- Added unit tests to cover success and failure cases for the CustomGrant handler.
- Tests verify:
  - Successful handling of the custom grant type with valid parameters.
  - Unsupported grant type scenario returns an appropriate error.
  - Handling of missing parameters for the custom grant type.
- Corrected field types in TokenResponse for proper token generation.
- Added unit tests to cover success and failure cases for the CustomGrant handler.
- Tests verify:
  - Successful handling of the custom grant type with valid parameters.
  - Unsupported grant type scenario returns an appropriate error.
  - Handling of missing parameters for the custom grant type.
- Corrected field types in TokenResponse for proper token generation.
@Mehrn0ush Mehrn0ush merged commit 8a6e983 into main Oct 22, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant