This is an automated email from the ASF dual-hosted git repository.
josedee pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-runtimes.git
The following commit(s) were added to refs/heads/main by this push:
new a6ba5943d8 Removing the misplaced file of SpringBootAuthTokenProvider
(#4295)
a6ba5943d8 is described below
commit a6ba5943d873a72af3867d1a5917a1257f8244fd
Author: Christine-Jose <[email protected]>
AuthorDate: Tue May 19 11:39:24 2026 +0530
Removing the misplaced file of SpringBootAuthTokenProvider (#4295)
---
.../SpringBootAuthTokenProvider.java | 56 ----------------------
1 file changed, 56 deletions(-)
diff --git
a/springboot/starters/kogito-spring-boot-starter/SpringBootAuthTokenProvider.java
b/springboot/starters/kogito-spring-boot-starter/SpringBootAuthTokenProvider.java
deleted file mode 100644
index 3db0c33ed4..0000000000
---
a/springboot/starters/kogito-spring-boot-starter/SpringBootAuthTokenProvider.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.kogito.addons.springboot.common.rest.workitem;
-
-import java.util.Optional;
-
-import org.kie.addons.springboot.auth.SpringBootAuthTokenHelper;
-import org.kie.kogito.auth.AuthTokenProvider;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
-import org.springframework.security.core.context.SecurityContextHolder;
-import org.springframework.stereotype.Component;
-
-@Component
-@ConditionalOnClass({ SecurityContextHolder.class })
-public class SpringBootAuthTokenProvider implements AuthTokenProvider {
-
- private static final Logger logger =
LoggerFactory.getLogger(SpringBootAuthTokenProvider.class);
-
- private final SpringBootAuthTokenHelper authTokenHelper;
-
- @Autowired
- public SpringBootAuthTokenProvider(SpringBootAuthTokenHelper
authTokenHelper) {
- this.authTokenHelper = authTokenHelper;
- }
-
- @Override
- public Optional<String> getAuthToken() {
- Optional<String> token = authTokenHelper.getAuthToken();
- if (token.isPresent()) {
- logger.debug("Token retrieved from Spring Boot SecurityContext via
SpringBootAuthTokenHelper");
- } else {
- logger.debug("No token available from Spring Boot
SecurityContext");
- }
- return token;
- }
-}
-
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]