There’s this factory API you could try: https://github.com/apereo/cas/blob/master/support/cas-server-support-oauth/src/main/java/org/apereo/cas/ticket/accesstoken/AccessTokenFactory.java
D. From: Lewis Henderson <[email protected]> Reply: [email protected] <[email protected]> Date: November 15, 2016 at 9:11:06 AM To: CAS Community <[email protected]> Subject: [cas-user] Re: CAS and OAuth interoperability Ok, So after trying with a new proxyTicket, it fails with 2016-11-15T13:54:11.561707727Z java.lang.ClassCastException: Ticket [PT-74-1LaIaLLzAZaJBte9SXzU-f63a5c259f31 is of type class org.apereo.cas.ticket.ProxyTicketImpl when we were expecting interface org.apereo.cas.ticket.accesstoken.AccessToken understandably! So, now the question is, how do I swap a CAS ticket for a OAuth token? Cheers On Tuesday, 15 November 2016 12:31:45 UTC, Lewis Henderson wrote: Everything is Spring Cloud based. I have a CAS 5.0.0 service sitting behind a Zuul Gateway. All the OAuth secured applications work properly! I have an external CAS client that needs to talk to an OAuth resource server behind Zuul via a proxyTicket. The CAS client successfully authenticates against the Gateway and receives it's proxyTicket and needs to now get a Bearer token to talk to the resource server. How do I go about this? Is the proxyTicket equivalent to the Bearer token, can I just pass that on? I'm so close!!!! Cheers -- - CAS gitter chatroom: https://gitter.im/apereo/cas - CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html - CAS documentation website: https://apereo.github.io/cas - CAS project website: https://github.com/apereo/cas --- 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/d1b7a656-07e7-41f4-8088-098b4815b245%40apereo.org. -- - CAS gitter chatroom: https://gitter.im/apereo/cas - CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html - CAS documentation website: https://apereo.github.io/cas - CAS project website: https://github.com/apereo/cas --- 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/etPan.582b1a70.244c528d.284%40unicon.net.
