Agenda:
Review the current proposed final API and spec
Discuss the types of ClaimValue injections
ClaimValue<json-b-type>
ClaimValue<Optional<json-b-type>
Discuss the exposed token claim types
Use of Set<String> vs jsonb List<String> for an untyped mapping of a JSON array type (aud, groups claims vs a non-standard array type claim)
Jsonb does require the ability to bind to any collection, so Set<String> can be required
Discuss the scope of optional Java EE container TCK tests
Discuss the types of ClaimValue injections
ClaimValue<json-b-type> ClaimValue<Optional<json-b-type>
@Path("/endp")
@ApplicationScoped
public class RolesEndpoint {
...
...@Inject
@Claim("iat")
private ClaimValue<Long> issuedAt;
@Inject
@Claim("iat")
private ClaimValue<Long> dupIssuedAt;
@Inject
@Claim(standard = Claims.iat)
private Provider<Long> providerIAT;
@Inject
@Claim(standard = Claims.iat)
private Long longIAT;
--
You received this message because you are subscribed to the Google Groups "Eclipse MicroProfile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to microprofile...@googlegroups.com.
To post to this group, send email to microp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/fd6fb127-d1bb-4aeb-a26f-23946684a24e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
@Inject
@Claim("auth_time")
private ClaimValue<Optional<Long>> authTime;
public interface ClaimValue<T> extends Principal {
public String getName();
public T getValue();
void ifPresent(Consumer<T> consumer);
boolean isPresent();
ClaimValue<T> filter(Predicate<T> predicate);
<U> ClaimValue<U> map(Function<T,U> var1);
T orElse(T instance);
T orElseGet(Supplier<T> supplier);
<X extends Throwable> T orElseThrow(Supplier<X> supplier);
}
public interface ClaimValue<T> extends Principal {
@Override
public String getName();
public T getValue();
public Optional<T> asOptional();
}
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/44c0c5e4-9e1b-4c5d-b115-00d6ca3ec995%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to microprofile+unsubscribe@googlegroups.com.
To post to this group, send email to microprofile@googlegroups.com.