cost 215 ms
在 Spring Cloud Gateway 中使用 Auth0,获取 ID Token 时出现问题 - Using Auth0 in Spring Cloud Gateway, problem with getting ID Token

我们在使用 auth0 SDK 获取 ID 令牌时遇到问题。我们有基于 Spring 云网关(版本 3.1.4)的 API 网关,我们尝试使用您的 auth0 平台对用户进行身份验证,然后将交换路由到我们的微服务。 为此,我们想使用 ID Token 并从中获取 email 并将此 email 传递 ...

springboot oauth2 客户端 azure 活动目录 b2c issuer-uri 问题 - springboot oauth2 client azure active directory b2c issuer-uri problem

我使用 oauth2 客户端设置了 spring 启动,这是我的属性: 当 spring 启动时它抱怨:“配置元数据中提供的发行者与请求的发行者不匹配”我检查了实现并发现 azure b2c 发行者-uri 在发行者-uri 中没有策略或用户流,但我们必须设置策略名称在 spring 配置中作为路径 ...

实施 WebSecurityConfigurerAdapter 后所有请求都以 Forbiddden 403 返回 - ALL requests returning as Forbiddden 403 after implementing WebSecurityConfigurerAdapter

我刚刚将 WebSecurityConfigurerAdapter 添加到我的项目中,以尝试创建用户逻辑(登录名 - 密码 - 用户可以对我的应用程序执行的操作),这是有史以来第一次,但确实出了点问题。 每当我尝试向任何路径或任何类型的方法发出请求时,它都会返回 403 Forbidden。 我不知 ...

如何使用 Spring Boot 在 Google oauth 之后重定向到特定的 uri - How do I redirect to a specific uri after Google oauth using Spring Boot

我正在使用 Spring Boot 实现服务器。 在用户进行 oauth 登录后,我希望用户将 go 重定向到特定的 uri,以便让用户注册或登录。 Google OAuth 登录似乎工作正常,但它一直转到"/" uri。 我想将用户重定向到"/api/v1/member/oauth" 这是我的 ...

Keycloak注销出现cors错误如何解决? - Keycloak logout give cors error coming how to resolve it?

我正在构建一个 spring 云网关并尝试注销 keycloak 但它给了我 cors 错误,我的代码如下: Security class 其中我定义了注销代码逻辑: 现在,当我从前端点击注销时,它给了我以下错误: 在 Keycloak 中有效的 URL 我已经给出 * 进行测试但仍然无法正常工 ...

OAuth2 - 从现有网络应用程序启动 SPA,无需用户再次进行身份验证 - OAuth2 - launching an SPA from an existing web-app without requiring the user to authenticate again

背景我们有一个现有的传统网络应用程序(Wicket/Java/Spring/Tomcat),我们正在逐步迁移到 Vue.js 应用程序/SPA。 因此,当用户导航到应用程序的某些部分时,我们会提供用户与之交互的 SPA,直到他们再次导航到应用程序的旧部分。 所有用户身份验证目前都由传统的 webap ...

有没有办法在 Spring Boot 中将 api 密钥用于某些端点并将 oauth2 用于其他端点? - Is there a way to use api key for some end point and use oauth2 for other endpoint in Spring Boot?

我需要使用 google oauth2 保护一些端点并使用 api 密钥保护一些端点。 在我将 ApiKeyFilter 添加到 AuthConfig 之前,它按预期工作。 但是,当我添加过滤器时,我发现"/secured-with-api-key/**"和"/non-secured/**"按预期 ...

为什么 SecurityContextHolder.getContext().getAuthentication() 返回 null 值? - Why SecurityContextHolder.getContext().getAuthentication() returning null value?

我正在尝试使用 keycloak 身份验证在 spring-cloud-gateway 中构建身份验证,并且一切正常,但是当尝试获取 SecurityContextHolder.getContext().getAuthentication() 时,它给出了 null 我不确定为什么? 这是我的代码 ...

在 Spring 6 服务器中使用 Bearer Access Token - Use Bearer Access Token in Spring 6 Server

我正在使用 Spring 6.0 创建一个可以通过浏览器或独立应用程序连接的应用程序。 它使用 Keycloak 作为 OAuth2 授权服务器,而应用程序应该提供数据。 通过浏览器访问工作正常,但独立应用程序从密钥斗篷(设备授权授予或密码授予)获取访问令牌。 当它将令牌传递给 Spring 应用 ...

如何使用 MockMVC 和 Spring Boot OAuth2 资源服务器测试 http 状态码 401(未验证)? - How to test http status code 401 (unauthenticated) with MockMVC and Spring Boot OAuth2 Resource Server?

我目前正在开发一个 Spring Boot 3应用程序,它提供一个 REST API。要使用这个 API,用户必须通过我们的身份提供商密钥斗篷的 OAuth2 工作流程进行身份验证。 因此,我使用了org.springframework.boot:spring-boot-starter-oauth ...

为什么 OAuth2AuthorizedClientService 需要 spring-boot-starter-web 来自动装配? - Why does OAuth2AuthorizedClientService requires spring-boot-starter-web to autowire?

我正在尝试编写一个 OAuth2 客户端 SpringBoot 应用程序: 不需要web容器(没有 Tomcat 也没有 Jetty)... 基本上在 HTTP 请求中向另一个充当 OAuth2 资源服务器的 SpringBoot 应用程序发送授权承载 header(不透明或 JWT 承载令牌)。 ...

Spring 令牌的 Oauth2Client 交换代码 - Spring Oauth2Client exchange code for token

我对 Spring 配置比较陌生,我正在尝试配置 oauth2client 并通过我的外部身份提供商 OpenId Connect 对其进行身份验证。 我正在申请授权码授予流程。 当用户第一次访问像localhost:8080这样的服务器时,我有一个OpenIDConnectAuthenticati ...

无法使用 postman 访问受保护的 URL - Cannot access protected URL using postman

我在使用 Spring Boot OAuth2 项目时遇到问题。 我将我的应用程序创建为客户端并启动了服务器。 我可以使用我的浏览器访问受保护的 URL,但不能使用 Postman 访问受保护的 URL(即使在创建 OAuth2.0 令牌并将其作为授权标头发送之后)。 在尝试使用 Postman ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM