Giter VIP home page Giter VIP logo

keycloak-protocol-cas's Introduction

keycloak-protocol-cas's People

Contributors

doccrazy avatar hamnis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

keycloak-protocol-cas's Issues

How to install on a domain cluster mode

Hi, i am using this for our production env.
I tried on my computer, with standalone mode, which copy jar to standalone/deployment, which will be auto-deployment.
But we use domain cluster mode on production env, and this is not working, the jar is not auto-deployment.
How can i do? deploy this jar as a module under module directory? i tried but got org/jboss/logging classNotFound error , and i downloaded jboss-log, jboss-log-annation, jboss-log-processor jar, put them under standalone/lib, which is not good.

Thank you.

Protocol federation

Hi, thanks for the extension and it helps me a lot. Is it possible to implement a protocol federation mechanism? That is to say after I successfully sso with CAS, I do not need to auth again with OIDC ?

Add session metadata attributes to serviceValidate response

The following attributes concerning session metadata are mentioned in some parts of the CAS spec, but omitted in others:

  • authenticationDate: Date of user authentication to CAS server
  • longTermAuthenticationRequestTokenUsed: True if remember-me authentication was used (should always be false as Keycloak does not support remember-me)
  • isFromNewLogin: True if interactive login was performed, false for cookie login

Example serviceValidate XML section:

<cas:attributes>
    <cas:authenticationDate>2015-11-12T09:30:10Z</cas:authenticationDate>
    <cas:longTermAuthenticationRequestTokenUsed>true</cas:longTermAuthenticationRequestTokenUsed>
    <cas:isFromNewLogin>true</cas:isFromNewLogin>
    <cas:myAttribute>myValue</cas:myAttribute>
    [...]
</cas:attributes>

There is no JSON example in the spec.

CAS specification link: https://apereo.github.io/cas/5.0.x/protocol/CAS-Protocol-Specification.html#saml-cas-response-attributes (Appendix A)

Implement proxy ticket service and proxy ticket validation

Proxy ticket granting and validation is a mandatory CAS 2.0 feature and should be supported. However not many clients use it and it is not required for basic SSO functionality.

The basic flow is the following:

  1. An intermediary service (proxy) requests a proxy granting ticket (PGT) for a user upon his call to serviceValidate during user login
  2. The proxy stores the PGT with the user session
  3. At a later point, the proxy can use this PGT to request service tickets from the IP (Keycloak) for a 3rd party service in the name of the user by calling /proxy
  4. The proxy can now call an API on the 3rd party service using the user's credentials
  5. The 3rd party service calls /proxyValidate instead of /serviceValidate to validate the proxy ticket

Affects the following endpoints:

  • /proxy [CAS 2.0]
  • /proxyValidate [CAS 2.0]

Web flow diagram: https://apereo.github.io/cas/4.2.x/protocol/CAS-Protocol.html#proxy-web-flow-diagram
CAS specification link: https://apereo.github.io/cas/5.0.x/protocol/CAS-Protocol-Specification.html#proxyvalidate-cas-20

keycloak 9.0.0 compilation error

When trying to compile branch 9.0.0 using maven on Centos7 got
error messages:
keycloak-protocol-cas/src/main/java/org/keycloak/protocol/cas/endpoints/AuthorizationEndpoint.java:[67,89] incompatible types: org.keycloak.models.KeycloakUriInfo cannot be converted to org.keycloak.models.KeycloakSession
keycloak-protocol-cas/src/main/java/org/keycloak/protocol/cas/endpoints/AuthorizationEndpoint.java:[79,82] incompatible types: org.keycloak.models.KeycloakUriInfo cannot be converted to org.keycloak.models.KeycloakSession
keycloak-protocol-cas/src/main/java/org/keycloak/protocol/cas/representations/SamlResponseHelper.java:[77,59] cannot find symbol
symbol: variable AUTH_METHOD_PASSWORD
....

Apache Maven 3.0.5 (Red Hat 3.0.5-17)
Java version: 1.8.0_252

Write integration test for the whole CAS flow

Yay, more tests!

Keycloak internal services are tested using Arquillian. It would be nice to add similar tests for CAS, but the Keycloak test framework is not published to maven so this might be some work.

New Keycloak versions available

There has been several versions, the last one is 4.4.0
Can we still use the keycloak-protocol-cas 4.1.0 for this last release as we are still on the same major version, or do we need new releases each time ?

CAS 5.2.2 tickets should not contain underscores

Hi,

Since CAS 5.2.2, service tickets should not contain underscores, but keycloak-protocol-cas creates tokens that contains some (here or there) :

FYI, CAS 5.2.2 no longer includes underscores in service tickets.

Since CAS 5.2.2, service tickets should not contain underscores.

Would it be possible to add in the client configuration an option to enable or disable the use of underscores in ticket generation please ?

Thank you

Keycloak configurations

Hi!

I am currently integrating Keycloak with Omeka via CAS with your plugin. The problem is that i don't now hot to configurate correctly. In Omeka it is requested host, port and uri then I add the following:

Host: login..cl
Port:
URI: auth/realms/
/protocol/cas

Resulting in the following redirection "https://login.****.cl/auth/realms/****/protocol/cas/login?service=http%3A%2F%2Fbiblioteca.****.cl%2Fadmin%2Fusers%2Flogin%2F" (**** is the domain name demo) but in keycloak give me a internal server error.

In keycloak i configured the following:

Client id: biblioteca
Client Protocol: cas
Root URL: http://biblioteca.****.cl/admin/users/login
Valid Redirect URIs: http://biblioteca.****.cl/admin/users/login

Finally mention that keycloak log is empty.
Greetings and thanks in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.