You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add comprehensive unit and integration tests for Keycloak functionality (#20)
* Add comprehensive unit and integration tests for Keycloak functionality
- Implement unit tests for the Token class, covering constructor behavior, expiration checks, role verification, and edge cases.
- Create integration tests for Keycloak interactions, including access token generation, role verification, token verification (both online and offline), and error handling.
- Set up Docker-based integration testing environment with Keycloak and PostgreSQL.
- Include a realm export configuration for testing, defining users, roles, and client settings.
- Add a script to wait for Keycloak to be ready before running integration tests.
- Document integration test setup and usage in README.md.
* Update workflow to trigger on pull requests to both main and master branches
* Update README.md
This method requires online connection to the Keycloak service to validate the access token. It is highly secure since it also check for possible token invalidation. The disadvantage is that a request to the Keycloak service happens on every validation:
This method perform offline JWT verification against the access token using the Keycloak Realm public key. Performance is higher compared to the online method, as a disadvantage no access token invalidation on Keycloak server is checked:
0 commit comments