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

Enable programmatic security in SmallRye GraphQL endpoints #10004

Merged
merged 1 commit into from
Jun 18, 2020

Conversation

jmartisk
Copy link
Contributor

Fixes #10001

@jmartisk jmartisk requested a review from phillip-kruger June 15, 2020 09:19
Copy link
Member

@phillip-kruger phillip-kruger left a 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 !

@gsmet gsmet added this to the 1.6.0 - master milestone Jun 17, 2020
Instance<CurrentIdentityAssociation> association = Arc.container().select(CurrentIdentityAssociation.class);
if (association.isResolvable()) {
association.get().setIdentity(QuarkusHttpUser.getSecurityIdentity(ctx, null));
}
Copy link
Member

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.

Copy link
Member

@stuartwdouglas stuartwdouglas left a 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.

@jmartisk jmartisk force-pushed the master-issue-10001 branch 2 times, most recently from 677ad4b to a7192fe Compare June 18, 2020 10:43
@jmartisk jmartisk force-pushed the master-issue-10001 branch from a7192fe to 1b5ff56 Compare June 18, 2020 10:54
Copy link
Member

@gsmet gsmet left a 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.

@gsmet gsmet merged commit b139fa8 into quarkusio:master Jun 18, 2020
@gsmet gsmet modified the milestones: 1.6.0 - master, 1.5.2.Final Jun 18, 2020
@jmartisk jmartisk deleted the master-issue-10001 branch June 18, 2020 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SmallRye GraphQL is not integrated with programmatic security
4 participants