This repository was archived by the owner on May 14, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +21
-9
lines changed
spring-cloud-dataflow-platform-cloudfoundry
src/main/java/org/springframework/cloud/dataflow/server/config/cloudfoundry/security/support Expand file tree Collapse file tree 3 files changed +21
-9
lines changed Original file line number Diff line number Diff line change 74
74
<!-- Only used for tests -->
75
75
<spring-security-oauth2 .version>2.3.7.RELEASE</spring-security-oauth2 .version>
76
76
77
- <java-cfenv-boot .version>1.1.3.RELEASE</java-cfenv-boot .version>
77
+ <java-cfenv-boot .version>2.2.0.RELEASE</java-cfenv-boot .version>
78
+
79
+ <spring-cloud-services-starter-config-client .version>3.1.3.RELEASE</spring-cloud-services-starter-config-client .version>
78
80
79
81
<spring-cloud-common-security-config .version>1.3.1.RELEASE</spring-cloud-common-security-config .version>
80
82
181
183
</dependency >
182
184
<dependency >
183
185
<groupId >io.pivotal.cfenv</groupId >
184
- <artifactId >java-cfenv-boot </artifactId >
186
+ <artifactId >java-cfenv</artifactId >
185
187
<version >${java-cfenv-boot.version} </version >
186
188
</dependency >
187
189
<dependency >
188
190
<groupId >io.pivotal.cfenv</groupId >
189
- <artifactId >java-cfenv-boot-pivotal-scs </artifactId >
191
+ <artifactId >java-cfenv-boot</artifactId >
190
192
<version >${java-cfenv-boot.version} </version >
191
193
</dependency >
192
194
<dependency >
193
195
<groupId >io.pivotal.cfenv</groupId >
194
196
<artifactId >java-cfenv-boot-pivotal-sso</artifactId >
195
197
<version >${java-cfenv-boot.version} </version >
196
198
</dependency >
199
+ <dependency >
200
+ <groupId >io.pivotal.spring.cloud</groupId >
201
+ <artifactId >spring-cloud-services-starter-config-client</artifactId >
202
+ <version >${spring-cloud-services-starter-config-client.version} </version >
203
+ </dependency >
197
204
<dependency >
198
205
<groupId >org.springframework.shell</groupId >
199
206
<artifactId >spring-shell</artifactId >
Original file line number Diff line number Diff line change 9
9
<artifactId >spring-cloud-dataflow-platform-cloudfoundry</artifactId >
10
10
<packaging >jar</packaging >
11
11
<dependencies >
12
+ <dependency >
13
+ <groupId >io.pivotal.cfenv</groupId >
14
+ <artifactId >java-cfenv</artifactId >
15
+ <version >2.0.0.RELEASE</version >
16
+ </dependency >
12
17
<dependency >
13
18
<groupId >org.springframework.cloud</groupId >
14
19
<artifactId >spring-cloud-dataflow-server-core</artifactId >
32
37
</dependency >
33
38
<dependency >
34
39
<groupId >io.pivotal.cfenv</groupId >
35
- <artifactId >java-cfenv-boot-pivotal-scs</artifactId >
40
+ <artifactId >java-cfenv-boot-pivotal-sso</artifactId >
41
+ <version >${java-cfenv-boot.version} </version >
36
42
</dependency >
37
43
<dependency >
38
- <groupId >io.pivotal.cfenv </groupId >
39
- <artifactId >java-cfenv-boot-pivotal-sso </artifactId >
44
+ <groupId >io.pivotal.spring.cloud </groupId >
45
+ <artifactId >spring-cloud-services-starter-config-client </artifactId >
40
46
</dependency >
41
47
<dependency >
42
48
<groupId >org.springframework.boot</groupId >
Original file line number Diff line number Diff line change 25
25
import org .springframework .cloud .common .security .core .support .OAuth2TokenUtilsService ;
26
26
import org .springframework .http .HttpStatus ;
27
27
import org .springframework .http .RequestEntity ;
28
- import org .springframework .security .oauth2 .client .OAuth2RestTemplate ;
29
28
import org .springframework .util .Assert ;
30
29
import org .springframework .web .client .HttpClientErrorException ;
31
30
import org .springframework .web .client .HttpServerErrorException ;
@@ -64,8 +63,8 @@ public CloudFoundrySecurityService(OAuth2TokenUtilsService oauth2TokenUtilsServi
64
63
}
65
64
66
65
/**
67
- * Returns {@code true} if the user (using the access-token from
68
- * {@link OAuth2RestTemplate}) has full {@link AccessLevel#FULL} for the provided
66
+ * Returns {@code true} if the user (using the access-token from the authenticated user)
67
+ * has full {@link AccessLevel#FULL} for the provided
69
68
* {@code applicationId}
70
69
*
71
70
* @return true of the user is a space developer in Cloud Foundry
You can’t perform that action at this time.
0 commit comments