azure App Service身份验证模块是否支持azure aad b2c? [英] does the azure App Service Authentication module suport azure aad b2c?

查看:40
本文介绍了azure App Service身份验证模块是否支持azure aad b2c?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个需要后端的UWP应用.我想使用azure应用服务,并且需要为后台设置身份验证.App Service身份验证模块可以轻松地为应用设置和身份验证.

I have a UWP app that needs a backend. I want to use azure app service and need set an authentication for the background. The App Service Authentication module can easily set and Authentication for the app.

我希望使用AAD B2C,但是App Service身份验证模块说它不支持aad 2.0/msal.那么,App Service Authentication模块可以支持AAD B2C吗?

I wish to use AAD B2C, but the App Service authentication module say that it does not support aad 2.0/msal. So, does the App Service Authentication module can support AAD B2C?

而且,如何验证Web服务上的AAD B2C令牌签名?微软医生说可以使用某些库来验证AAD B2C令牌签名,可以使用msal来验证asp.net核心Web服务上的AAD B2C令牌签名吗?

And, how can I verify the AAD B2C token signature on the webservice? Microsoft doc said can use some library to verify the AAD B2C token signature, can msal be used to Verify the AAD B2C token signature on a asp.net core web service?

推荐答案

App Service Authentication模块可以支持AAD B2C吗?

does the App Service Authentication module can support AAD B2C?

是的,App Service easy auth支持AAD B2C,您可以在高级管理模式下对其进行配置.

Yes, App Service easy auth supports AAD B2C, you can configure it under Advanced management mode.

客户端ID 设置为来自 Azure AD B2C租户的应用程序客户端ID.

Set the Client ID to be the Application Client ID from Azure AD B2C tenant.

问题URL 设置为策略的元数据端点.

Set the Issue URL to be the Metadata Endpoint for the policy.

https://tonyb2ctest.b2clogin.com/tonyb2ctest.onmicrosoft.com/v2.0/.well-known/openid-configuration?p=B2C_1_testsignupin

注意:请不要忘记在azure广告租户应用程序中设置回复网址 https://XXX.azurewebsites.net/.auth/login/aad/callback

Note: don't forget to set the reply url in azure ad tenant application https://XXX.azurewebsites.net/.auth/login/aad/callback

如何验证Web服务上的AAD B2C令牌签名?

how can I verify the AAD B2C token signature on the webservice?

许多开放源代码库可用于验证JWT,与Azure App服务无关.

Many open-source libraries are available for validating JWTs, it doesn't matter with Azure App service.

这篇关于azure App Service身份验证模块是否支持azure aad b2c?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆