eclipse / microprofile-conference

Microprofile.io Demo Code - Web Services Conference Application
http://microprofile.io/
Apache License 2.0
117 stars 116 forks source link

Demonstrate MP JWT #166

Open Emily-Jiang opened 7 years ago

Emily-Jiang commented 6 years ago

Andy Guibert is working on updating vote service to demonstrate FT on WebSphere Liberty.

starksm64 commented 6 years ago

Why don't we agree on some config properties that we need in order to validate the token so that there is an integration between jwt and config as an example. For example, some cdi producer can use injected configuration properties such as the following in order to create the validation context used by the jwt implementation:

    @Inject
    @ConfigProperty(name = "mpjwt.signerPublicKey")
    private String publicKeyPemEnc;
    @Inject
    @ConfigProperty(name = "mpjwt.issuedBy")
    private String issuedBy;
    @Inject
    @ConfigProperty(name = "mpjwt.expGracePeriodSecs")
    private int expGracePeriodSecs = 60;