MicrosoftDocs / msteams-docs

Source for the Microsoft Teams developer platform documentation.
https://aka.ms/teamsdev
Creative Commons Attribution 4.0 International
282 stars 504 forks source link

Integrate TeamsFX with AAD B2C - Blazor #7361

Closed chulla closed 1 year ago

chulla commented 1 year ago

I would like to reopen this problem ( issues 3143 )

can we also please see if we can offer a detailed write-up on how to integrate TeamsFX with AAD B2C?

I have a blazor server application with the Azure AD B2C identity system... I have followed this manual but it is only compatible with Azure AD!!!

https://github.com/OfficeDev/TeamsFx/blob/78cdb5899c039dc228e78ce62e6d69731de69051/docs/fx-core/using-existing-aad.md

I need to allow my App (Blazor) to be ported to Teams without changing the B2C system.

The ultimate goal would be to be able to login with my Application registered in Azure with B2C and allow access to the access_token to then query a protected Web API...

right now i have this with errors :

await teamsUserCredential.LoginAsync(_scopeApi);

var token_api = await teamsUserCredential.GetTokenAsync(new TokenRequestContext(new string[] { _scopeApi }), new System.Threading.CancellationToken());

How would it be possible? Thank you!!

ghost commented 1 year ago

Hi chulla! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies.

Best regards, Teams Platform

sayali-MSFT commented 1 year ago

@chulla - Are you developing any teams app? As per my understanding ,you are trying to integrate the your application with AAD B2C . Here is some sample to integrate Azure AD To B2C- https://learn.microsoft.com/en-us/azure/active-directory-b2c/integrate-with-app-code-samples

chulla commented 1 year ago

I have a Blazor Server app that is already integrated with the Azure AD B2C identity system.. ( Web App )

I have successfully created a tab app in teams using TeamsFX ( Toolkit Teams in Visual Studio 2022) ..... my problem is that I want to integrate the Azure AD B2C identity system in my Teams app... to get the access token so I can query an API securely to the data with the token... But I can't do it...

I've seen that there are a manual on how to integrate the Azure AD identity system... but not Azure AD B2C..

Could you help me.. Thanks

sayali-MSFT commented 1 year ago

@chulla -Thanks for providing more information, We are checking it from our end and let you know.

chulla commented 1 year ago

I think it is a fundamental functionality so that thousands of companies can offer a quality identity system such as Microsoft Azure AD B2C in their Microsoft team applications.

Thanks

sayali-MSFT commented 1 year ago

@chulla -Could you please raise the issue here : https://github.com/OfficeDev/TeamsFx/issues

ghost commented 1 year ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 3 days. It will be closed if no further activity occurs within 3 days of this comment.