DataCater / datacater

The developer-friendly ETL platform for transforming data in real-time. Based on Apache Kafka® and Kubernetes®.
https://datacater.io
Other
82 stars 4 forks source link

feat(authorization): runtime authorization switcher #103

Closed ChrisRousey closed 1 year ago

ChrisRousey commented 1 year ago

@HknLof i added everything we need for the PR and everything works as expected, except that a random io.quarkus.vertx.http.runtime.security.AuthenticationRedirectException is thrown on authentication, even though the authentication and redirection are working correctly

ChrisRousey commented 1 year ago

working on the tests right now fyi. Tests are failing due to authentication with endpoints. I'm not 100% sure where the catch is though. Tests aren' being authorized.

I can turn the auth off, then the only tests failing are the authorization endpoint tests. My guess is a jwt token is being created and cached during the tests which isn't working correctly

update

tests are now working. I've turned off athentication off for endpoint tests, so we don't have to manually manage tokens. During the authentication endpoint tests, the config is altered, so authentication can be tested during those tests.

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication