简体   繁体   English

Springboot+Oauth 客户端凭证授予流程与 Azure AD

[英]Springboot+Oauth Client Credential Grant Flow with Azure AD

I am trying to protect my API (springboot+java) using Client Credential Grant flow with Azure AD as Authorization Server.我正在尝试使用客户端凭据授予流和 Azure AD 作为授权服务器来保护我的 API (springboot+java)。 I have looked the internet but the examples I am finding is resource and authorization server in springboot.我看过互联网,但我发现的例子是springboot中的资源和授权服务器。 Does anyone has any samples of how to secure API with Client Credential Grant Flow using Java Springboot and Azure AD?有没有人有任何关于如何使用 Java Springboot 和 Azure AD 的客户端凭据授予流程来保护 API 的示例? Any help will be highly appreciated.任何帮助将不胜感激。

We use client credentials flow to get access token with the following steps.我们使用客户端凭据流通过以下步骤获取访问令牌。 The access token is provided by Azure AD.访问令牌由 Azure AD 提供。

在此处输入图像描述

Try this sample with ClientCredentialsResourceDetails .使用ClientCredentialsResourceDetails尝试此示例

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

相关问题 Azure AD OAuth 客户端凭据授予流程 - Azure AD OAuth Client Credentials Grant flow Azure AD答复URLS和客户端凭据授予流 - Azure AD reply URLS and Client Credential Grant flow Azure AD oauth springboot + vuejs - Azure AD oauth springboot + vuejs Azure AD OAuth 令牌错误的受众(客户端凭据流) - Azure AD OAuth token wrong audience (client credentials flow) 在使用 Azure AD 客户端凭据流生成的访问令牌中的 UPN 声明中添加自定义值 - Add Custom value in UPN claim in Access Token generated using Azure AD Client Credential Flow Microsoft Identity Web:Azure AD 客户端凭据流与基于证书的身份验证 - Microsoft Identity Web : Azure AD Client Credential flow with Certificate Based Authentication Azure OAuth2 客户端凭据流 - 获取多个范围的令牌会引发错误 - Azure OAuth2 Client Credential flow - getting token for multiple scopes throws error Azure B2C OAuth 客户端凭证流中的访问令牌声明中缺少 Scope - Scope missing in access token claims in Azure B2C OAuth Client credential flow 使用 Spring 设置 Azure 客户端凭据流 - Setup Azure Client Credential Flow with Spring 租户ID在客户端凭证授予流中是否始终保持相同? - Does the tenant ID stays always the same in the client credential grant flow?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM