Attach cas.properties & dependencias.
Check
3
4
5
<dependency>
<groupId>org.apereo.cas</groupId>
<artifactId>cas-server-support-token</artifactId>
<version>${cas.version}</version></dependency>
El jueves, 26 de abril de 2018, Michael JOIGNY <[email protected]>
escribió:
> Hi everybody,
>
> I'm trying to configure my CAS server (5.2.3) with JWT Service Ticket in
> order to let CAS generates my jwt tokens but it's not working.
>
> CAS keeps returning ST-xxx ticket instead of token=eyxxyyyzzz when i use
> curl to my service.
>
> I've followed this links below :
>
> https://apereo.github.io/cas/development/installation/Config
> ure-ServiceTicket-JWT.html
> https://apereo.github.io/2017/10/17/cas-jwt-authn-with-duo/
> https://www.npmjs.com/package/jwtgen
>
> My json service definition :
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *{ "@class" : "org.apereo.cas.services.RegexRegisteredService",
> "serviceId" : "^(http?|https?)://.*", "name" : "HTTPS", "id" : 10000001,
> "description" : "This service definition authorized all application urls
> that support HTTPS protocol.", "proxyPolicy" : { "@class" :
> "org.apereo.cas.services.RefuseRegisteredServiceProxyPolicy" },
> "properties" : { "@class" : "java.util.HashMap", "jwtSigningSecret" :
> { "@class" :
> "org.apereo.cas.services.DefaultRegisteredServiceProperty", "values" :
> [ "java.util.HashSet", [ "9qz--------DlSwNx" ] ]}, "jwtEncryptionSecret"
> : { "@class" :
> "org.apereo.cas.services.DefaultRegisteredServiceProperty", "values" :
> [ "java.util.HashSet", [ "j1cq----------Ssg" ] ] }
> "jwtSigningSecretAlg" : { "@class" :
> "org.apereo.cas.services.DefaultRegisteredServiceProperty", "values" :
> [ "java.util.HashSet", [ "HS512" ] ] }, "jwtEncryptionSecretAlg" :
> { "@class" :
> "org.apereo.cas.services.DefaultRegisteredServiceProperty", "values" :
> [ "java.util.HashSet", [ "dir" ] ] }, "jwtEncryptionSecretMethod" :
> { "@class" :
> "org.apereo.cas.services.DefaultRegisteredServiceProperty", "values" :
> [ "java.util.HashSet", [ "A256CBC-HS512" ] ] },
> "jwtSecretsAreBase64Encoded" : { "@class" :
> "org.apereo.cas.services.DefaultRegisteredServiceProperty", "values"
> : [ "java.util.HashSet", [ "false" ] ] }, "jwtAsResponse" : {
> "@class" : "org.apereo.cas.services.DefaultRegisteredServiceProperty",
> "values" : [ "java.util.HashSet", [ "true" ] ] }}
> "usernameAttributeProvider" : { "@class" :
> "org.apereo.cas.services.DefaultRegisteredServiceUsernameProvider" },
> "logoutType" : "BACK_CHANNEL", "attributeReleasePolicy" : { "@class" :
> "org.apereo.cas.services.ReturnAllAttributeReleasePolicy",
> "principalAttributesRepository" : { "@class" :
> "org.apereo.cas.authentication.principal.DefaultPrincipalAttributesRepository"
> }, "authorizedToReleaseCredentialPassword" : false,
> "authorizedToReleaseProxyGrantingTicket" : false }, "accessStrategy" :
> { "@class" :
> "org.apereo.cas.services.DefaultRegisteredServiceAccessStrategy",
> "enabled" : true, "ssoEnabled" : true }}NB: same result with
> jwtAsResponse or jwtAsServiceTicket
> (https://groups.google.com/a/apereo.org/forum/#!search/CAS$205.2$20return$20JWT$20for$20service/cas-user/c2usB0G2400/x5YGL9YYAgAJ
> <https://groups.google.com/a/apereo.org/forum/#!search/CAS$205.2$20return$20JWT$20for$20service/cas-user/c2usB0G2400/x5YGL9YYAgAJ>)*
> I'm using jwtgen to generate my token, you can find in my attached files
> (cas_starting.log and curl_cas.log).
>
> Kind regards.
>
> Michael.
>
> --
> - Website: https://apereo.github.io/cas
> - Gitter Chatroom: https://gitter.im/apereo/cas
> - List Guidelines: https://goo.gl/1VRrw7
> - Contributions: https://goo.gl/mh7qDG
> ---
> You received this message because you are subscribed to the Google Groups
> "CAS Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/a/ap
> ereo.org/d/msgid/cas-user/92cf8846-7f93-48c9-8aaa-ebdc722d87
> 36%40apereo.org
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/92cf8846-7f93-48c9-8aaa-ebdc722d8736%40apereo.org?utm_medium=email&utm_source=footer>
> .
>
--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAMY5mif1aW1qe7rraeULAQMeHVqJcgGrX0ScuUrOEmqpB2_N%3DA%40mail.gmail.com.