-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Enable programmatic security in SmallRye GraphQL endpoints #10004
Conversation
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.
Thanks @jmartisk ! I wanted to ask you if you know how to do this !
...ye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/SecurityTest.java
Outdated
Show resolved
Hide resolved
Instance<CurrentIdentityAssociation> association = Arc.container().select(CurrentIdentityAssociation.class); | ||
if (association.isResolvable()) { | ||
association.get().setIdentity(QuarkusHttpUser.getSecurityIdentity(ctx, null)); | ||
} |
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.
@stuartwdouglas could you check that one? Looks like a good backport candidate.
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.
Other than this minor performance related change this LGTM.
...ntime/src/main/java/io/quarkus/smallrye/graphql/runtime/SmallRyeGraphQLExecutionHandler.java
Outdated
Show resolved
Hide resolved
677ad4b
to
a7192fe
Compare
a7192fe
to
1b5ff56
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.
Stuart's comment got addressed.
Fixes #10001