Skip to content

Commit 682642b

Browse files
committed
🔖 version 1.0.6
1 parent e816f5d commit 682642b

File tree

9 files changed

+24
-20
lines changed

9 files changed

+24
-20
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [1.0.6](https://github.com/kakawait/cas-security-spring-boot-starter/milestone/28) - 26 nov 2020
6+
7+
- Add support for CAS client >= 3.6 ([#147](https://github.com/kakawait/cas-security-spring-boot-starter/issues/147))
8+
59
## [1.0.5](https://github.com/kakawait/cas-security-spring-boot-starter/milestone/28) - 04 sept 2020
610

711
- Fix java 11 build error due to incompatibility between lombok and javadoc ([#146](https://github.com/kakawait/cas-security-spring-boot-starter/issues/146))

README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Spring Security CAS starter
22

33
[![Travis](https://img.shields.io/travis/kakawait/cas-security-spring-boot-starter.svg)](https://travis-ci.org/kakawait/cas-security-spring-boot-starter)
4-
[![Maven Central](https://img.shields.io/maven-central/v/com.kakawait/cas-security-spring-boot-starter.svg)](https://search.maven.org/#artifactdetails%7Ccom.kakawait%7Ccas-security-spring-boot-starter%7C1.0.5%7Cjar)
4+
[![Maven Central](https://img.shields.io/maven-central/v/com.kakawait/cas-security-spring-boot-starter.svg)](https://search.maven.org/#artifactdetails%7Ccom.kakawait%7Ccas-security-spring-boot-starter%7C1.0.6%7Cjar)
55
[![License](https://img.shields.io/github/license/kakawait/cas-security-spring-boot-starter.svg)](https://github.com/kakawait/cas-security-spring-boot-starter/blob/master/LICENSE.md)
66
[![Codecov](https://img.shields.io/codecov/c/github/kakawait/cas-security-spring-boot-starter.svg)](https://codecov.io/gh/kakawait/cas-security-spring-boot-starter)
77
[![SonarQube Tech Debt](https://img.shields.io/sonar/https/sonarcloud.io/com.kakawait%3Acas-security-spring-boot-parent/tech_debt.svg)](https://sonarcloud.io/dashboard?id=com.kakawait%3Acas-security-spring-boot-parent)
@@ -26,7 +26,7 @@ Add the Spring boot starter to your project
2626
<dependency>
2727
<groupId>com.kakawait</groupId>
2828
<artifactId>cas-security-spring-boot-starter</artifactId>
29-
<version>1.0.5</version>
29+
<version>1.0.6</version>
3030
</dependency>
3131
```
3232

@@ -111,12 +111,12 @@ The supported properties are:
111111
| `security.cas.proxy-validation.chains` | | Defines proxy chains. Each acceptable proxy chain should include a comma-separated list of URLs (for exact match) or regular expressions of URLs (starting by the ^ character) |
112112
| `security.cas.server.protocol-version` | `3` | Determine which CAS protocol version to be used, only protocol version 1, 2 or 3 is supported. |
113113
| `security.cas.server.base-url` | | The start of the CAS server url, i.e. https://localhost:8443/cas |
114-
| `security.cas.server.validation-base-url` | | Optional, `security.cas.server.base-url` is used if missing. The start of the CAS server url (similar to `security.cas.server.base-url`) used during ticket validation flow. Could be useful when server (your service) to server (CAS server) network is different from your external/browser network (i.e. docker environment, see [docker profile properties](https://github.com/kakawait/cas-security-spring-boot-starter/blob/master/cas-security-spring-boot-sample/src/main/resources/application.yml)). |
114+
| `security.cas.server.validation-base-url` | | Optional, `security.cas.server.base-url` is used if missing. The start of the CAS server url (similar to `security.cas.server.base-url`) used during ticket validation flow. Could be useful when server (your service) to server (CAS server) network is different from your external/browser network (i.e. docker environment, see [docker profile properties](https://github.com/kakawait/cas-security-spring-boot-starter/blob/master/cas-security-spring-boot-sample/src/main/resources/application.yml)). |
115115
| `security.cas.server.paths.login` | `/login` | Defines the location of the CAS server login path that will be append to the existing `security.cas.server.base-url` url |
116116
| `security.cas.server.paths.logout` | `/logout` | Defines the location of the CAS server logout path that will be append to the existing `security.cas.server.base-url` url |
117117
| `security.cas.service.resolution-mode` | `static` | Resolution modes can be `static` or `dynamic`, by default is `static` and you must fill `security.cas.service.base-url` whereas in `dynamic` mode service url will be generated from receiving `HttpServletRequest`. **Attention** will not override `security.cas.server.validation-base-url` and `security.cas.service.callback-base-url` if defined, see [docker profile properties](https://github.com/kakawait/cas-security-spring-boot-starter/blob/master/cas-security-spring-boot-sample/src/main/resources/application.yml) to get an example. |
118118
| `security.cas.service.base-url` | | The name of the server this application is hosted on. Service URL will be dynamically constructed using this, i.e. https://localhost:8443 (you must include the protocol, but port is optional if it's a standard port). Skipped if resolution mode is `dynamic`. |
119-
| `security.cas.service.callback-base-url` | | Optional, `security.cas.service.base-url` is used if missing. Represents the base url that will be used to compute _Proxy granting ticket callback_ (see `security.cas.service.paths.proxy-callback`). It could be useful to be different from `security.cas.service.base-url` when server (CAS server) to server (your service) network is different from your external/browser network (i.e. docker environment, see see [docker profile properties](https://github.com/kakawait/cas-security-spring-boot-starter/blob/master/cas-security-spring-boot-sample/src/main/resources/application.yml)). |
119+
| `security.cas.service.callback-base-url` | | Optional, `security.cas.service.base-url` is used if missing. Represents the base url that will be used to compute _Proxy granting ticket callback_ (see `security.cas.service.paths.proxy-callback`). It could be useful to be different from `security.cas.service.base-url` when server (CAS server) to server (your service) network is different from your external/browser network (i.e. docker environment, see see [docker profile properties](https://github.com/kakawait/cas-security-spring-boot-starter/blob/master/cas-security-spring-boot-sample/src/main/resources/application.yml)). |
120120
| `security.cas.service.paths.login` | `/login` | Defines the application login path that will be append to the existing `security.cas.service.base-url` url |
121121
| `security.cas.service.paths.logout` | `/logout` | Defines the application logout path that will be append to the existing `security.cas.service.base-url` url |
122122
| `security.cas.service.paths.proxy-callback` | | The callback path that will be, if present, append to the `security.cas.service.callback-base-url` or `security.cas.service.base-url` and add to as parameter inside request validation. **It must be set if you want to receive _Proxy Granting Ticket_ `PGT`**. |
@@ -134,7 +134,7 @@ class CustomCasSecurityConfiguration extends CasSecurityConfigurerAdapter {
134134
public void configure(CasAuthenticationFilterConfigurer filter) {
135135
// Here you can configure CasAuthenticationFilter
136136
}
137-
137+
138138
@Override
139139
public void configure(CasSingleSignOutFilterConfigurer filter) {
140140
// Here you can configure SingleSignOutFilter
@@ -144,12 +144,12 @@ class CustomCasSecurityConfiguration extends CasSecurityConfigurerAdapter {
144144
public void configure(CasAuthenticationProviderSecurityBuilder provider) {
145145
// Here you can configure CasAuthenticationProvider
146146
}
147-
147+
148148
@Override
149149
public void configure(HttpSecurity http) throws Exception {
150150
// Here you can configure Spring Security HttpSecurity object during init configure
151151
}
152-
152+
153153
@Override
154154
public void configure(CasTicketValidatorBuilder ticketValidator) {
155155
// Here you can configure CasTicketValidator
@@ -181,7 +181,7 @@ class CustomCasSecurityConfiguration extends CasSecurityConfigurerAdapter {
181181
public void configure(CasAuthenticationFilterConfigurer filter) {
182182
filter.proxyGrantingTicketStorage(new MyCustomProxyGrantingStorage());
183183
}
184-
184+
185185
@Override
186186
public void configure(CasTicketValidatorBuilder ticketValidator) {
187187
ticketValidator.proxyGrantingTicketStorage(new MyCustomProxyGrantingStorage());
@@ -194,9 +194,9 @@ class CustomCasSecurityConfiguration extends CasSecurityConfigurerAdapter {
194194
By default starter will configure both _logout_ and _single logout (SLO)_.
195195

196196
**ATTENTION** default _logout_ (on `/logout`) behavior will:
197-
197+
198198
1. Logout from application and also logout from CAS server that will logout any other applications.
199-
2. Keep default Spring security behavior concerning _CSRF_ and _logging out_ to summarize if _CSRF_ is enabled logout will only mapped on `POST`, see https://docs.spring.io/spring-security/site/docs/current/reference/htmlsingle/#csrf-logout for more details
199+
2. Keep default Spring security behavior concerning _CSRF_ and _logging out_ to summarize if _CSRF_ is enabled logout will only mapped on `POST`, see https://docs.spring.io/spring-security/site/docs/current/reference/htmlsingle/#csrf-logout for more details
200200

201201
If you want to change those behaviors, for example by adding a logout page that will propose user to logout from other application, you may configure like following:
202202

@@ -206,7 +206,7 @@ class CasCustomLogoutConfiguration extends CasSecurityConfigurerAdapter {
206206
private final CasSecurityProperties casSecurityProperties;
207207
208208
private final LogoutSuccessHandler casLogoutSuccessHandler;
209-
209+
210210
public CustomLogoutConfiguration(LogoutSuccessHandler casLogoutSuccessHandler) {
211211
this.casLogoutSuccessHandler = casLogoutSuccessHandler;
212212
}
@@ -236,7 +236,7 @@ class WebMvcConfiguration extends WebMvcConfigurerAdapter {
236236
```
237237

238238
With possible `logout.html` like following
239-
239+
240240
```html
241241
<!DOCTYPE html>
242242
<html xmlns:th="http://www.thymeleaf.org">

cas-security-spring-boot-autoconfigure/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<parent>
1111
<groupId>com.kakawait</groupId>
1212
<artifactId>cas-security-spring-boot-parent</artifactId>
13-
<version>1.0.5</version>
13+
<version>1.0.6</version>
1414
</parent>
1515

1616
<name>Cas security spring boot autoconfigure</name>

cas-security-spring-boot-sample/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ RUN mvn clean install && mvn -f cas-security-spring-boot-sample/pom.xml clean in
55

66
FROM openjdk:8-jre-alpine
77
WORKDIR /app
8-
COPY --from=build /src/cas-security-spring-boot-sample/target/cas-security-spring-boot-sample-1.0.5.jar /app
8+
COPY --from=build /src/cas-security-spring-boot-sample/target/cas-security-spring-boot-sample-1.0.6.jar /app
99
ENV JAVA_OPTS=""
10-
CMD [ "sh", "-c", "java $JAVA_OPTS -jar /app/cas-security-spring-boot-sample-1.0.5.jar" ]
10+
CMD [ "sh", "-c", "java $JAVA_OPTS -jar /app/cas-security-spring-boot-sample-1.0.6.jar" ]

cas-security-spring-boot-sample/docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ services:
1919
build:
2020
context: ../
2121
dockerfile: cas-security-spring-boot-sample/Dockerfile
22-
image: cas-security-spring-boot-sample:1.0.5
22+
image: cas-security-spring-boot-sample:1.0.6
2323
ports:
2424
- "8081:8081"
2525
- "5005"

cas-security-spring-boot-sample/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.kakawait</groupId>
88
<artifactId>cas-security-spring-boot-sample</artifactId>
9-
<version>1.0.5</version>
9+
<version>1.0.6</version>
1010

1111
<name>Cas security spring boot sample</name>
1212

cas-security-spring-boot-starter/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<parent>
1111
<groupId>com.kakawait</groupId>
1212
<artifactId>cas-security-spring-boot-parent</artifactId>
13-
<version>1.0.5</version>
13+
<version>1.0.6</version>
1414
</parent>
1515

1616
<name>Cas security spring boot starter</name>

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<groupId>com.kakawait</groupId>
88
<artifactId>cas-security-spring-boot-parent</artifactId>
99
<packaging>pom</packaging>
10-
<version>1.0.5</version>
10+
<version>1.0.6</version>
1111

1212
<name>Cas security spring boot parent</name>
1313
<description>Spring boot starter for Apereo CAS client fully integrated with Spring security</description>

spring-security-cas-extension/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<parent>
1111
<groupId>com.kakawait</groupId>
1212
<artifactId>cas-security-spring-boot-parent</artifactId>
13-
<version>1.0.5</version>
13+
<version>1.0.6</version>
1414
</parent>
1515

1616
<name>Spring security cas extension</name>

0 commit comments

Comments
 (0)