io.smallrye.jwt.auth.cdi.PrincipalProducer Java Examples
The following examples show how to use
io.smallrye.jwt.auth.cdi.PrincipalProducer.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JWTHttpAuthenticationMechanism.java From smallrye-jwt with Apache License 2.0 | 5 votes |
public JWTHttpAuthenticationMechanism(JWTAuthContextInfo authContextInfo, JWTParser jwtParser, PrincipalProducer producer) { this.authContextInfo = authContextInfo; this.jwtParser = jwtParser; this.producer = producer; }
Example #2
Source File: MPJWTExtension.java From thorntail with Apache License 2.0 | 5 votes |
/** * Register the MPJWTProducer JsonWebToken producer bean * * @param bbd before discovery event * @param beanManager cdi bean manager */ public void observeBeforeBeanDiscovery(@Observes BeforeBeanDiscovery bbd, BeanManager beanManager) { log.debugf("MPJWTExtension(), adding producers"); String extensionName = MPJWTExtension.class.getName(); for (Class<?> clazz : new Class<?>[] { JWTAuthContextInfoProvider.class, CommonJwtProducer.class, PrincipalProducer.class, RawClaimTypeProducer.class, ClaimValueProducer.class, JsonValueProducer.class, }) { bbd.addAnnotatedType(beanManager.createAnnotatedType(clazz), extensionName + "_" + clazz.getName()); } }
Example #3
Source File: JWTAuthMechanism.java From quarkus with Apache License 2.0 | 4 votes |
private void preparePrincipalProducer(JsonWebToken jwtPrincipal) { PrincipalProducer principalProducer = CDI.current().select(PrincipalProducer.class).get(); principalProducer.setJsonWebToken(jwtPrincipal); }
Example #4
Source File: JWTAuthMechanism.java From thorntail with Apache License 2.0 | 4 votes |
private void preparePrincipalProducer(JsonWebToken jwtPrincipal) { PrincipalProducer principalProducer = CDI.current().select(PrincipalProducer.class).get(); principalProducer.setJsonWebToken(jwtPrincipal); }