简体   繁体   English

生成 azure 广告 jwt 令牌并使用 spring 引导使用这些令牌调用第三方 api

[英]generate azure ad jwt token and call the thrid party api using those token using spring boot

I registered the app in an azure ad, and I have application id(client id) and directory id (tenant id), and secret key.我在 azure 广告中注册了该应用程序,并且我有应用程序 ID(客户端 ID)和目录 ID(租户 ID)和密钥。

using this need to generate the jwt token in the azure ad and need to validate that token.使用它需要在 azure 广告中生成 jwt 令牌并需要验证该令牌。

once the token generate need to call the third-party API's using that token in spring boot application.一旦令牌生成需要在 spring 引导应用程序中使用该令牌调用第三方 API。

please provide some example请提供一些例子

To achieve the above requirement.达到上述要求。 You can take Reference of this Post to call the third-party Api using the JWT token using spring boot application.您可以参考这篇文章使用 spring 引导应用程序使用 JWT 令牌调用第三方 Api。

In the above, there is tutorial they have built a Spring Boot Application that supports Token based Authentication with JWT. Please refer the section How to configure Spring Security to work with JWT that might be solution of requirement.在上面,有教程他们已经构建了一个 Spring 启动应用程序,它支持使用 JWT 进行基于令牌的身份验证。请参阅如何配置 Spring 安全性以使用 JWT 部分,这可能是需求的解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 Powershell 脚本生成 Azure Databricks 令牌 - Generate Azure Databricks Token using Powershell script Azure AD:通过 AAD 在 jwt 令牌中缺少角色声明 - Azure AD: missing roles claim in jwt token through AAD 使用 spring 安全性验证 Azure AD 访问令牌 - Validate Azure AD access token with spring security Azure AD B2C JWT 令牌签名验证失败 - Azure AD B2C JWT Token Signature Validation Failed .Net 客户端应用程序 Azure AD 身份验证 Cookie 身份验证然后 Bearer token 调用下游 API - .Net Client App Azure AD Authentication Cookie Authentication And then Bearer token to call downstream API 在 Azure AD 中自定义令牌 - Customize token in Azure AD 如何使用 `NextAuth.js` 从 Azure B2C 检索 JWT 访问令牌 - How to retrieve a JWT access token from Azure B2C using `NextAuth.js` 是否可以使用 Azure Function 应用程序通过额外声明丰富 Azure AD B2C 令牌? - Is enriching an Azure AD B2C Token with extra claims using an Azure Function app possible? Firebase 规则,使用第三方令牌? - Firebase rules, using third party token? 具有 Azure AD 的 NextAuth 刷新令牌 - NextAuth refresh token with Azure AD
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM