mirror of https://github.com/jacekkow/keycloak-protocol-cas

Nithe14
2 days ago 7bc48f59e745e5e6098fdde7d838feeb4d93f2a8
Changes for Keycloak 26.0.1
3 files modified
8 ■■■■ changed files
pom.xml 4 ●●●● patch | view | raw | blame | history
src/main/java/org/keycloak/protocol/cas/CASLoginProtocol.java 2 ●●● patch | view | raw | blame | history
src/main/java/org/keycloak/protocol/cas/endpoints/AbstractValidateEndpoint.java 2 ●●● patch | view | raw | blame | history
pom.xml
@@ -22,7 +22,7 @@
    <groupId>org.keycloak</groupId>
    <artifactId>keycloak-protocol-cas</artifactId>
    <version>26.0.8</version>
    <version>26.1.0</version>
    <name>Keycloak CAS Protocol</name>
    <description />
@@ -36,7 +36,7 @@
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.release>17</maven.compiler.release>
        <project.build.outputTimestamp>1736844450</project.build.outputTimestamp>
        <project.build.outputTimestamp>1737017225</project.build.outputTimestamp>
    </properties>
    <dependencies>
src/main/java/org/keycloak/protocol/cas/CASLoginProtocol.java
@@ -120,7 +120,7 @@
    }
    @Override
    public Response sendError(AuthenticationSessionModel authSession, Error error) {
    public Response sendError(AuthenticationSessionModel authSession, Error error, String errorMessage) {
        if (authSession.getClientNotes().containsKey(CASLoginProtocol.GATEWAY_PARAM)) {
            if (error == Error.PASSIVE_INTERACTION_REQUIRED || error == Error.PASSIVE_LOGIN_REQUIRED) {
                return Response.status(302).location(URI.create(authSession.getRedirectUri())).build();
src/main/java/org/keycloak/protocol/cas/endpoints/AbstractValidateEndpoint.java
@@ -260,7 +260,7 @@
    {
        String key = UUID.randomUUID().toString();
        UserSessionModel userSession = clientSession.getUserSession();
        OAuth2Code codeData = new OAuth2Code(key, Time.currentTime() + userSession.getRealm().getAccessCodeLifespan(), null, null, redirectUriParam, null, null, userSession.getId());
        OAuth2Code codeData = new OAuth2Code(key, Time.currentTime() + userSession.getRealm().getAccessCodeLifespan(), null, null, redirectUriParam, null, null, null, userSession.getId());
        session.singleUseObjects().put(prefix + key, clientSession.getUserSession().getRealm().getAccessCodeLifespan(), codeData.serializeCode());
        return prefix + key + "." + clientSession.getUserSession().getId() + "." + clientSession.getClient().getId();
    }