Hi,

OAuth support can be used in two ways: you can turn your CAS server into an
OAuth server v2.0 which supports the "authorization code" grant type. For
that, you need the cas-server-support-oauth dependency and must follow:
http://jasig.github.io/cas/4.1.x/protocol/OAuth-Protocol.html

In your case, to delegate the authentication to Google (the CAS server
becomes an OAuth client), you need the cas-server-support-pac4j module and
must follow:
http://jasig.github.io/cas/4.1.x/integration/Delegate-Authentication.html.

Thanks.
Best regards,
Jérôme


2015-09-23 17:37 GMT+02:00 M4t <m.alexan...@outlook.com>:

> Hello
>
> i'm playing with CAS since few days.
> After sucessfully configure CAS with YAML serviceRegistry and
> authentification based on file (with MD5 password), i'd like to try oauth.
> My goal is :
> - Login on CAS with Google credentials after a redirect by a CASsified
> application
> - CAS authentification on Google via oauth protocol (no redirection after
> accept the first time i suppose)
> - Redirect on initial CASsified application with the username (need to
> extract it from the mail i suppose)
>
> To do that, it seems to have everything already.. (but i know with CAS,
> the doc is the bottleneck ^^)
> I try to follow this guide :
> - https://wiki.jasig.org/pages/viewpage.action?pageId=56164890
> and this one too :
> -
> http://jasig.github.io/cas/4.0.x/installation/OAuth-OpenId-Authentication.html
>
> My context :
> - CAS 4.0.4
> - Java version: 1.7.0_72
> - Apache Maven 2.2.1
>
> When i define cas-server-support-oauth in pom.xml of cas-server-webapp,
> the `mvn package` returns :
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Jasig CAS Web Application
> [INFO]    task-segment: [package]
> [INFO]
> ------------------------------------------------------------------------
> [WARNING] POM for
> 'org.jasig.cas:cas-server-support-oauth:pom:4.0.4:compile' is invalid.
>
> Does someone have already done this kind of config ?
>
> Thanks for helping me.
>
> --
> You are currently subscribed to cas-user@lists.jasig.org as: lel...@gmail.com
> To unsubscribe, change settings or access archives, see 
> http://www.ja-sig.org/wiki/display/JSG/cas-user
>
>

-- 
You are currently subscribed to cas-user@lists.jasig.org as: 
arch...@mail-archive.com
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to