-
Notifications
You must be signed in to change notification settings - Fork 12
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
Bump io.dropwizard:dropwizard-dependencies from 2.1.1 to 4.0.6 #3284
Bump io.dropwizard:dropwizard-dependencies from 2.1.1 to 4.0.6 #3284
Conversation
A newer version of io.dropwizard:dropwizard-dependencies exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged. |
Bumps io.dropwizard:dropwizard-dependencies from 2.1.1 to 4.0.6. --- updated-dependencies: - dependency-name: io.dropwizard:dropwizard-dependencies dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
ae8fb2a
to
de9d875
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bin noch nicht durch, gh lässt mich jetzt jeden diff einzeln laden 😨
|
||
// TODO necessary? | ||
DefaultAuthFilter.registerTokenExtractor(JWTokenHandler.JWTokenExtractor.class, adminServlet.getJerseyConfig()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Einmal reicht eigentlich. kann dann aus dem if
heraus
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Die Frage hier ist ob ich den handler überhaupt regsitrieren darf/soll. Ich bin da nicht genug drin um zu wissen ob der per default immer registriert sein sollte.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Passt so wie es ist ich sortiere es noch
* @return | ||
*/ | ||
@Named("jwt-extractor") | ||
@Service |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wenn es als Service annotiert ist, muss es dann noch programmatisch registriert werden?
Bisher waren die Extractors Singletons, da sie stateless sind können wir sie request scoped machen, damit sie nicht doch mal zufällig einen shared state haben.
backend/src/main/java/com/bakdata/conquery/models/auth/develop/UserIdTokenExtractor.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/models/auth/web/DefaultAuthFilter.java
Outdated
Show resolved
Hide resolved
@Inject | ||
@Setter | ||
private IterableProvider<TokenExtractor> tokenExtractors; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noice! Setter kann weg denke ich
public static DefaultAuthFilter asDropwizardFeature() { | ||
final DefaultAuthFilter authFilter = | ||
new Builder() | ||
.setAuthenticator(new ConqueryAuthenticator()) | ||
.setUnauthorizedHandler(new DefaultUnauthorizedHandler()) | ||
.buildAuthFilter(); | ||
return authFilter; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Müsen wir und auch noch mal anschauen. Das mit dem DropwizardFeature war immer irgendwie ein Umweg.
Ich weiß auch gerade nicht nicht warum es DynamicFeature in Jersey gibt, aber daher kam das glaube ich
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Habe gerade nachgeschaut, das mit dem DynamicFeature nutzen wir nicht mehr und DropwizardFeature gibt es auch nicht mehr. Die Methode kann als eigentlich umbenannt werden.
public static void registerTokenExtractor(Class<? extends TokenExtractor> extractor, ResourceConfig config) { | ||
config.register(extractor); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vielleicht nicht notwendig durch Service annotation
//TODO shouldn't this be something with NotAuthenticated? | ||
catch (NotAuthorizedException e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guter Punkt, aber das versammelt sich glaube ich unter der Exception
Signed-off-by: Max Thonagel <12283268+thoniTUB@users.noreply.github.com>
Signed-off-by: Max Thonagel <12283268+thoniTUB@users.noreply.github.com>
…-dependencies-4.0.6 # Conflicts: # backend/src/test/java/com/bakdata/conquery/integration/tests/ExternalFormBackendTest.java
@awildturtok ich habe den konflikt beseitig und hoffentlich laufen jetzt die tests durch |
Signed-off-by: Max Thonagel <12283268+thoniTUB@users.noreply.github.com>
Signed-off-by: Max Thonagel <12283268+thoniTUB@users.noreply.github.com>
Signed-off-by: Max Thonagel <12283268+thoniTUB@users.noreply.github.com>
Signed-off-by: Max Thonagel <12283268+thoniTUB@users.noreply.github.com>
…-dependencies-4.0.6
Signed-off-by: Max Thonagel <12283268+thoniTUB@users.noreply.github.com>
backend/src/main/java/com/bakdata/conquery/models/auth/web/AuthCookieFilter.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/models/auth/develop/DevAuthConfig.java
Show resolved
Hide resolved
backend/pom.xml
Outdated
<dependency> | ||
<groupId>jakarta.ws.rs</groupId> | ||
<artifactId>jakarta.ws.rs-api</artifactId> | ||
<version>3.1.0</version> | ||
</dependency> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Das kann vielleicht raus ich probiere es mal
|
||
// TODO necessary? | ||
DefaultAuthFilter.registerTokenExtractor(JWTokenHandler.JWTokenExtractor.class, adminServlet.getJerseyConfig()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Passt so wie es ist ich sortiere es noch
Signed-off-by: Max Thonagel <12283268+thoniTUB@users.noreply.github.com>
…-dependencies-4.0.6
Bumps io.dropwizard:dropwizard-dependencies from 2.1.1 to 4.0.6.
You can trigger a rebase of this PR by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)