From 77c42ffa3245c2e03fbc0fca7c1f488de9fb5378 Mon Sep 17 00:00:00 2001 From: Sebastien Dionne Date: Fri, 5 Nov 2021 07:56:33 -0400 Subject: [PATCH 1/4] Standardize the examples --- .../pom.xml | 11 +++---- .../keycloak/authorization/AdminResource.java | 17 +++++++++- .../keycloak/authorization/UserResource.java | 23 ++++++++++--- .../authorization/NativePolicyEnforcerIT.java | 3 -- .../authorization/PolicyEnforcerTest.java | 6 ++++ security-openid-connect-quickstart/pom.xml | 5 +++ .../openid/connect/AdminResource.java | 3 -- .../BearerTokenAuthenticationTest.java | 33 +++++++++++++------ 8 files changed, 74 insertions(+), 27 deletions(-) diff --git a/security-keycloak-authorization-quickstart/pom.xml b/security-keycloak-authorization-quickstart/pom.xml index 0a645eae9f..54d299b520 100644 --- a/security-keycloak-authorization-quickstart/pom.xml +++ b/security-keycloak-authorization-quickstart/pom.xml @@ -45,16 +45,15 @@ io.quarkus quarkus-resteasy-jackson - - + - io.rest-assured - rest-assured + io.quarkus + quarkus-junit5 test - io.quarkus - quarkus-junit5 + io.rest-assured + rest-assured test diff --git a/security-keycloak-authorization-quickstart/src/main/java/org/acme/security/keycloak/authorization/AdminResource.java b/security-keycloak-authorization-quickstart/src/main/java/org/acme/security/keycloak/authorization/AdminResource.java index 56bb210a00..31e8f89c6b 100644 --- a/security-keycloak-authorization-quickstart/src/main/java/org/acme/security/keycloak/authorization/AdminResource.java +++ b/security-keycloak-authorization-quickstart/src/main/java/org/acme/security/keycloak/authorization/AdminResource.java @@ -1,3 +1,18 @@ +/** + * Copyright 2019 Red Hat, Inc, and individual contributors. + *

+ * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + *

+ * http://www.apache.org/licenses/LICENSE-2.0 + *

+ * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.acme.security.keycloak.authorization; import javax.ws.rs.GET; @@ -10,7 +25,7 @@ public class AdminResource { @GET @Produces(MediaType.APPLICATION_JSON) - public String manage() { + public String admin() { return "granted"; } } diff --git a/security-keycloak-authorization-quickstart/src/main/java/org/acme/security/keycloak/authorization/UserResource.java b/security-keycloak-authorization-quickstart/src/main/java/org/acme/security/keycloak/authorization/UserResource.java index ca1f29300f..d5bc53118c 100644 --- a/security-keycloak-authorization-quickstart/src/main/java/org/acme/security/keycloak/authorization/UserResource.java +++ b/security-keycloak-authorization-quickstart/src/main/java/org/acme/security/keycloak/authorization/UserResource.java @@ -1,3 +1,18 @@ +/** + * Copyright 2019 Red Hat, Inc, and individual contributors. + *

+ * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + *

+ * http://www.apache.org/licenses/LICENSE-2.0 + *

+ * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.acme.security.keycloak.authorization; import javax.inject.Inject; @@ -12,21 +27,21 @@ public class UserResource { @Inject - SecurityIdentity keycloakSecurityContext; + SecurityIdentity identity; @GET @Path("/me") @Produces(MediaType.APPLICATION_JSON) public User me() { - return new User(keycloakSecurityContext); + return new User(identity); } public static class User { private final String userName; - User(SecurityIdentity securityContext) { - this.userName = securityContext.getPrincipal().getName(); + User(SecurityIdentity identity) { + this.userName = identity.getPrincipal().getName(); } public String getUserName() { diff --git a/security-keycloak-authorization-quickstart/src/test/java/org/acme/security/keycloak/authorization/NativePolicyEnforcerIT.java b/security-keycloak-authorization-quickstart/src/test/java/org/acme/security/keycloak/authorization/NativePolicyEnforcerIT.java index e1cc837bc2..f17c6673f0 100644 --- a/security-keycloak-authorization-quickstart/src/test/java/org/acme/security/keycloak/authorization/NativePolicyEnforcerIT.java +++ b/security-keycloak-authorization-quickstart/src/test/java/org/acme/security/keycloak/authorization/NativePolicyEnforcerIT.java @@ -2,9 +2,6 @@ import io.quarkus.test.junit.QuarkusIntegrationTest; -/** - * @author Pedro Igor - */ @QuarkusIntegrationTest public class NativePolicyEnforcerIT extends PolicyEnforcerTest { } diff --git a/security-keycloak-authorization-quickstart/src/test/java/org/acme/security/keycloak/authorization/PolicyEnforcerTest.java b/security-keycloak-authorization-quickstart/src/test/java/org/acme/security/keycloak/authorization/PolicyEnforcerTest.java index f302c8eda8..b6b3ff5b03 100644 --- a/security-keycloak-authorization-quickstart/src/test/java/org/acme/security/keycloak/authorization/PolicyEnforcerTest.java +++ b/security-keycloak-authorization-quickstart/src/test/java/org/acme/security/keycloak/authorization/PolicyEnforcerTest.java @@ -20,6 +20,12 @@ public void testAccessUserResource() { .when().get("/api/users/me") .then() .statusCode(200); + + RestAssured.given().auth().oauth2(getAccessToken("admin")) + .when().get("/api/users/me") + .then() + .statusCode(200); + RestAssured.given().auth().oauth2(getAccessToken("jdoe")) .when().get("/api/users/me") .then() diff --git a/security-openid-connect-quickstart/pom.xml b/security-openid-connect-quickstart/pom.xml index f44e8d4222..489df93711 100644 --- a/security-openid-connect-quickstart/pom.xml +++ b/security-openid-connect-quickstart/pom.xml @@ -32,6 +32,10 @@ + + io.quarkus + quarkus-keycloak-authorization + io.quarkus quarkus-oidc @@ -104,6 +108,7 @@ native + true diff --git a/security-openid-connect-quickstart/src/main/java/org/acme/security/openid/connect/AdminResource.java b/security-openid-connect-quickstart/src/main/java/org/acme/security/openid/connect/AdminResource.java index 285992f6af..3590008a29 100644 --- a/security-openid-connect-quickstart/src/main/java/org/acme/security/openid/connect/AdminResource.java +++ b/security-openid-connect-quickstart/src/main/java/org/acme/security/openid/connect/AdminResource.java @@ -23,9 +23,6 @@ import io.quarkus.security.Authenticated; -/** - * @author Pedro Igor - */ @Path("/api/admin") @Authenticated public class AdminResource { diff --git a/security-openid-connect-quickstart/src/test/java/org/acme/security/openid/connect/BearerTokenAuthenticationTest.java b/security-openid-connect-quickstart/src/test/java/org/acme/security/openid/connect/BearerTokenAuthenticationTest.java index 6a39d02e6f..6f76b86cbc 100644 --- a/security-openid-connect-quickstart/src/test/java/org/acme/security/openid/connect/BearerTokenAuthenticationTest.java +++ b/security-openid-connect-quickstart/src/test/java/org/acme/security/openid/connect/BearerTokenAuthenticationTest.java @@ -10,29 +10,42 @@ public class BearerTokenAuthenticationTest { KeycloakTestClient keycloakClient = new KeycloakTestClient(); + static { + RestAssured.useRelaxedHTTPSValidation(); + } + @Test - public void testAdminAccess() { + public void testUserAccess() { + RestAssured.given().auth().oauth2(getAccessToken("alice")) + .when().get("/api/users/me") + .then() + .statusCode(200); + RestAssured.given().auth().oauth2(getAccessToken("admin")) - .when().get("/api/admin") + .when().get("/api/users/me") .then() .statusCode(200); - RestAssured.given().auth().oauth2(getAccessToken("alice")) - .when().get("/api/admin") + RestAssured.given().auth().oauth2(getAccessToken("jdoe")) + .when().get("/api/users/me") .then() - .statusCode(403); + .statusCode(200); } @Test - public void testUserAccess() { - + public void testAdminAccess() { RestAssured.given().auth().oauth2(getAccessToken("alice")) - .when().get("/api/users/me") + .when().get("/api/admin") .then() - .statusCode(200); + .statusCode(403); + + RestAssured.given().auth().oauth2(getAccessToken("jdoe")) + .when().get("/api/admin") + .then() + .statusCode(403); RestAssured.given().auth().oauth2(getAccessToken("admin")) - .when().get("/api/users/me") + .when().get("/api/admin") .then() .statusCode(200); } From 316e90929d6878eb53af1693d1e602d8b1549baa Mon Sep 17 00:00:00 2001 From: Sebastien Dionne Date: Fri, 5 Nov 2021 09:31:37 -0400 Subject: [PATCH 2/4] remove licence --- .../service/LibraryResourceInGraalIT.java | 15 --------------- .../service/LibraryResourceTest.java | 15 --------------- .../keycloak/authorization/AdminResource.java | 15 --------------- .../keycloak/authorization/UserResource.java | 15 --------------- .../security/openid/connect/AdminResource.java | 15 --------------- .../security/openid/connect/UsersResource.java | 18 ------------------ .../org/acme/spring/di/AppConfiguration.java | 16 ---------------- .../java/org/acme/spring/di/GreeterBean.java | 16 ---------------- .../org/acme/spring/di/GreeterResource.java | 16 ---------------- .../org/acme/spring/di/MessageProducer.java | 16 ---------------- .../spring/di/NoOpSingleStringFunction.java | 16 ---------------- .../org/acme/spring/di/StringFunction.java | 16 ---------------- .../java/org/acme/spring/web/GreetingBean.java | 16 ---------------- .../acme/spring/web/GreetingController.java | 16 ---------------- 14 files changed, 221 deletions(-) diff --git a/hibernate-search-orm-elasticsearch-quickstart/src/test/java/org/acme/hibernate/search/elasticsearch/service/LibraryResourceInGraalIT.java b/hibernate-search-orm-elasticsearch-quickstart/src/test/java/org/acme/hibernate/search/elasticsearch/service/LibraryResourceInGraalIT.java index dac9fd8cdc..9f92ced4d9 100644 --- a/hibernate-search-orm-elasticsearch-quickstart/src/test/java/org/acme/hibernate/search/elasticsearch/service/LibraryResourceInGraalIT.java +++ b/hibernate-search-orm-elasticsearch-quickstart/src/test/java/org/acme/hibernate/search/elasticsearch/service/LibraryResourceInGraalIT.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.acme.hibernate.search.elasticsearch.service; import io.quarkus.test.junit.NativeImageTest; diff --git a/hibernate-search-orm-elasticsearch-quickstart/src/test/java/org/acme/hibernate/search/elasticsearch/service/LibraryResourceTest.java b/hibernate-search-orm-elasticsearch-quickstart/src/test/java/org/acme/hibernate/search/elasticsearch/service/LibraryResourceTest.java index 4c9f90b6a8..4a6a1365f8 100644 --- a/hibernate-search-orm-elasticsearch-quickstart/src/test/java/org/acme/hibernate/search/elasticsearch/service/LibraryResourceTest.java +++ b/hibernate-search-orm-elasticsearch-quickstart/src/test/java/org/acme/hibernate/search/elasticsearch/service/LibraryResourceTest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.acme.hibernate.search.elasticsearch.service; import static org.hamcrest.Matchers.contains; diff --git a/security-keycloak-authorization-quickstart/src/main/java/org/acme/security/keycloak/authorization/AdminResource.java b/security-keycloak-authorization-quickstart/src/main/java/org/acme/security/keycloak/authorization/AdminResource.java index 31e8f89c6b..4fe2589b9c 100644 --- a/security-keycloak-authorization-quickstart/src/main/java/org/acme/security/keycloak/authorization/AdminResource.java +++ b/security-keycloak-authorization-quickstart/src/main/java/org/acme/security/keycloak/authorization/AdminResource.java @@ -1,18 +1,3 @@ -/** - * Copyright 2019 Red Hat, Inc, and individual contributors. - *

- * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - *

- * http://www.apache.org/licenses/LICENSE-2.0 - *

- * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.acme.security.keycloak.authorization; import javax.ws.rs.GET; diff --git a/security-keycloak-authorization-quickstart/src/main/java/org/acme/security/keycloak/authorization/UserResource.java b/security-keycloak-authorization-quickstart/src/main/java/org/acme/security/keycloak/authorization/UserResource.java index d5bc53118c..3ee97daf55 100644 --- a/security-keycloak-authorization-quickstart/src/main/java/org/acme/security/keycloak/authorization/UserResource.java +++ b/security-keycloak-authorization-quickstart/src/main/java/org/acme/security/keycloak/authorization/UserResource.java @@ -1,18 +1,3 @@ -/** - * Copyright 2019 Red Hat, Inc, and individual contributors. - *

- * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - *

- * http://www.apache.org/licenses/LICENSE-2.0 - *

- * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.acme.security.keycloak.authorization; import javax.inject.Inject; diff --git a/security-openid-connect-quickstart/src/main/java/org/acme/security/openid/connect/AdminResource.java b/security-openid-connect-quickstart/src/main/java/org/acme/security/openid/connect/AdminResource.java index 3590008a29..ab489210e5 100644 --- a/security-openid-connect-quickstart/src/main/java/org/acme/security/openid/connect/AdminResource.java +++ b/security-openid-connect-quickstart/src/main/java/org/acme/security/openid/connect/AdminResource.java @@ -1,18 +1,3 @@ -/** - * Copyright 2019 Red Hat, Inc, and individual contributors. - *

- * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - *

- * http://www.apache.org/licenses/LICENSE-2.0 - *

- * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.acme.security.openid.connect; import javax.annotation.security.RolesAllowed; diff --git a/security-openid-connect-quickstart/src/main/java/org/acme/security/openid/connect/UsersResource.java b/security-openid-connect-quickstart/src/main/java/org/acme/security/openid/connect/UsersResource.java index 560c294eec..67e745aa5c 100644 --- a/security-openid-connect-quickstart/src/main/java/org/acme/security/openid/connect/UsersResource.java +++ b/security-openid-connect-quickstart/src/main/java/org/acme/security/openid/connect/UsersResource.java @@ -1,18 +1,3 @@ -/** - * Copyright 2019 Red Hat, Inc, and individual contributors. - *

- * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - *

- * http://www.apache.org/licenses/LICENSE-2.0 - *

- * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.acme.security.openid.connect; import javax.annotation.security.RolesAllowed; @@ -26,9 +11,6 @@ import io.quarkus.security.identity.SecurityIdentity; -/** - * @author Pedro Igor - */ @Path("/api/users") public class UsersResource { diff --git a/spring-di-quickstart/src/main/java/org/acme/spring/di/AppConfiguration.java b/spring-di-quickstart/src/main/java/org/acme/spring/di/AppConfiguration.java index b011f347a2..740656edbb 100644 --- a/spring-di-quickstart/src/main/java/org/acme/spring/di/AppConfiguration.java +++ b/spring-di-quickstart/src/main/java/org/acme/spring/di/AppConfiguration.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package org.acme.spring.di; import org.springframework.context.annotation.Bean; diff --git a/spring-di-quickstart/src/main/java/org/acme/spring/di/GreeterBean.java b/spring-di-quickstart/src/main/java/org/acme/spring/di/GreeterBean.java index 1469b3657f..de6f313eb9 100644 --- a/spring-di-quickstart/src/main/java/org/acme/spring/di/GreeterBean.java +++ b/spring-di-quickstart/src/main/java/org/acme/spring/di/GreeterBean.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package org.acme.spring.di; import org.springframework.beans.factory.annotation.Autowired; diff --git a/spring-di-quickstart/src/main/java/org/acme/spring/di/GreeterResource.java b/spring-di-quickstart/src/main/java/org/acme/spring/di/GreeterResource.java index d4ee50819d..3cf9759579 100644 --- a/spring-di-quickstart/src/main/java/org/acme/spring/di/GreeterResource.java +++ b/spring-di-quickstart/src/main/java/org/acme/spring/di/GreeterResource.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package org.acme.spring.di; import javax.ws.rs.GET; diff --git a/spring-di-quickstart/src/main/java/org/acme/spring/di/MessageProducer.java b/spring-di-quickstart/src/main/java/org/acme/spring/di/MessageProducer.java index 80f987606e..e4d84bb150 100644 --- a/spring-di-quickstart/src/main/java/org/acme/spring/di/MessageProducer.java +++ b/spring-di-quickstart/src/main/java/org/acme/spring/di/MessageProducer.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package org.acme.spring.di; import org.springframework.beans.factory.annotation.Value; diff --git a/spring-di-quickstart/src/main/java/org/acme/spring/di/NoOpSingleStringFunction.java b/spring-di-quickstart/src/main/java/org/acme/spring/di/NoOpSingleStringFunction.java index 322a05c43b..25310e7755 100644 --- a/spring-di-quickstart/src/main/java/org/acme/spring/di/NoOpSingleStringFunction.java +++ b/spring-di-quickstart/src/main/java/org/acme/spring/di/NoOpSingleStringFunction.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package org.acme.spring.di; import org.springframework.stereotype.Component; diff --git a/spring-di-quickstart/src/main/java/org/acme/spring/di/StringFunction.java b/spring-di-quickstart/src/main/java/org/acme/spring/di/StringFunction.java index f3949e74fb..1ba7d80373 100644 --- a/spring-di-quickstart/src/main/java/org/acme/spring/di/StringFunction.java +++ b/spring-di-quickstart/src/main/java/org/acme/spring/di/StringFunction.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package org.acme.spring.di; import java.util.function.Function; diff --git a/spring-web-quickstart/src/main/java/org/acme/spring/web/GreetingBean.java b/spring-web-quickstart/src/main/java/org/acme/spring/web/GreetingBean.java index 2d8bf4cb7c..0a03c0b78f 100644 --- a/spring-web-quickstart/src/main/java/org/acme/spring/web/GreetingBean.java +++ b/spring-web-quickstart/src/main/java/org/acme/spring/web/GreetingBean.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package org.acme.spring.web; import org.springframework.stereotype.Service; diff --git a/spring-web-quickstart/src/main/java/org/acme/spring/web/GreetingController.java b/spring-web-quickstart/src/main/java/org/acme/spring/web/GreetingController.java index e5e9544adb..80b249ebac 100644 --- a/spring-web-quickstart/src/main/java/org/acme/spring/web/GreetingController.java +++ b/spring-web-quickstart/src/main/java/org/acme/spring/web/GreetingController.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package org.acme.spring.web; import org.springframework.web.bind.annotation.GetMapping; From 14e09aabe636190f0046ff0dcbfcb6597c7cefe1 Mon Sep 17 00:00:00 2001 From: Sebastien Dionne Date: Fri, 5 Nov 2021 15:49:09 -0400 Subject: [PATCH 3/4] add missing keycloak-version property --- security-openid-connect-quickstart/pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/security-openid-connect-quickstart/pom.xml b/security-openid-connect-quickstart/pom.xml index 489df93711..3d6d57ee41 100644 --- a/security-openid-connect-quickstart/pom.xml +++ b/security-openid-connect-quickstart/pom.xml @@ -13,6 +13,7 @@ quarkus-bom io.quarkus 999-SNAPSHOT + 13.0.0 3.0.0-M5 11 11 From ffed8635ad0970a8c48dd54755f52221ad16e8f7 Mon Sep 17 00:00:00 2001 From: Sebastien Dionne Date: Fri, 5 Nov 2021 15:49:56 -0400 Subject: [PATCH 4/4] add missing keycloak-version property --- security-openid-connect-web-authentication-quickstart/pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/security-openid-connect-web-authentication-quickstart/pom.xml b/security-openid-connect-web-authentication-quickstart/pom.xml index 7faceb1a65..ff9bbb439b 100644 --- a/security-openid-connect-web-authentication-quickstart/pom.xml +++ b/security-openid-connect-web-authentication-quickstart/pom.xml @@ -13,6 +13,7 @@ quarkus-bom io.quarkus 999-SNAPSHOT + 13.0.0 3.0.0-M5 11 11