--
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/df7986e9-29c6-4c88-be4b-fe72bf91aded%40googlegroups.com.
On Aug 7, 2017, at 1:56 PM, Alasdair Nottingham <alasdair....@gmail.com> wrote:Is a reasonable interpretation of this thread that it is possible to do CDI integration? If I’ve interpreted the thread correctly I think that the JWT-MP 1.0 spec should enable this.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/5A9384C3-AF5C-4838-8AC6-6C4A15ACAD33%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/1A588BA7-1329-4A07-8A1E-02EF8BF38418%40tomitribe.com.
I think request scope is 100% right. Why not providing a DTO (injection without Provider) and a single claim by Provider. I think provider is more complex for beginners. Simply injection a DTO is more user friendly. Supplier support looks nice at first moment. Here frameworks like Spring could provide the same API in future but in general I think Provider interface is made for exactly this so I would start with this one.
Why does @Claim has ElementType.METHOD?
ElementType.ANNOTATION_TYPE should be added to @Claim. By doing so specific qualifiers for default claims can be defined (like @IssuedAtClaim).
Keycloak contains a DTO for the token: org.keycloak.representations.JsonWebToken
Maybe this can be defined as a basic interface. By doing so MicroProfile and KeyCloak (and later Spring) can share the same interface.
On Aug 7, 2017, at 3:19 PM, Hendrik Ebbers <hendrik...@gmail.com> wrote:I think request scope is 100% right. Why not providing a DTO (injection without Provider) and a single claim by Provider. I think provider is more complex for beginners. Simply injection a DTO is more user friendly. Supplier support looks nice at first moment. Here frameworks like Spring could provide the same API in future but in general I think Provider interface is made for exactly this so I would start with this one.
Why does @Claim has ElementType.METHOD?
ElementType.ANNOTATION_TYPE should be added to @Claim. By doing so specific qualifiers for default claims can be defined (like @IssuedAtClaim).
Keycloak contains a DTO for the token: org.keycloak.representations.JsonWebToken
Maybe this can be defined as a basic interface. By doing so MicroProfile and KeyCloak (and later Spring) can share the same interface.
I like that interface name quite a lot. Simple and clean. I suggested above we could maybe just use it. I guess the question is do we want something that is or is not tied to javax.security.Principal.Keycloak contains a DTO for the token: org.keycloak.representations.JsonWebToken
Maybe this can be defined as a basic interface. By doing so MicroProfile and KeyCloak (and later Spring) can share the same interface.
--
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/897ae360-1056-4248-84a1-a77925ca8088%40googlegroups.com.