Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Official MSAL react native library request #4735

Open
JimmyLS opened this issue Apr 25, 2022 · 18 comments
Open

Official MSAL react native library request #4735

JimmyLS opened this issue Apr 25, 2022 · 18 comments
Assignees
Labels
feature Feature requests. msal-browser Related to msal-browser package msal-react Related to @azure/msal-react tracked-internally Bugs that are tracked by Msft internally

Comments

@JimmyLS
Copy link

JimmyLS commented Apr 25, 2022

Core Library

MSAL.js v2 (@azure/msal-browser)

Wrapper Library

MSAL React (@azure/msal-react)

Description

Currently we only have this POC library for MSAL react native. As mentioned in that article, this POC library is not intended to use in production.

We also found two compatible libraries in github, the second one was referred in our sample code (Build React Native apps with Microsoft Graph) here.

https://github.com/stashenergy/react-native-msal
https://github.com/FormidableLabs/react-native-app-auth

The question is that does Microsoft have plan to provide official MSAL react native library which can be used in production environment? Or the only way is using the compatible libraries when bulding React native apps that authenticates with AAD?

Source

External (Customer)

@JimmyLS JimmyLS added feature-unconfirmed question Customer is asking for a clarification, use case or information. labels Apr 25, 2022
@ghost ghost assigned hectormmg Apr 25, 2022
@ghost ghost added the Needs: Attention 👋 Awaiting response from the MSAL.js team label Apr 25, 2022
@JimmyLS JimmyLS changed the title Official MSAL react native library Official MSAL react native library request Apr 25, 2022
@github-actions github-actions bot added msal-browser Related to msal-browser package msal-react Related to @azure/msal-react labels Apr 25, 2022
@EmLauber
Copy link
Contributor

As of right now, the MSAL.js team does not have commitments to turn the POC library into official support. I will track this ask on our backlog for future consideration.

@ghost ghost added answered Question has received "first qualified response" Needs: Author Feedback Awaiting response from issue author and removed Needs: Attention 👋 Awaiting response from the MSAL.js team labels Apr 27, 2022
@EmLauber EmLauber added feature Feature requests. Needs: Attention 👋 Awaiting response from the MSAL.js team and removed question Customer is asking for a clarification, use case or information. Needs: Author Feedback Awaiting response from issue author labels Apr 27, 2022
@ghost ghost removed answered Question has received "first qualified response" Needs: Attention 👋 Awaiting response from the MSAL.js team labels Apr 27, 2022
@hectormmg hectormmg removed their assignment May 12, 2022
@EmLauber EmLauber added the tracked-internally Bugs that are tracked by Msft internally label Aug 3, 2022
@Uzef1997
Copy link

Uzef1997 commented Sep 2, 2022

hello there any updates on the same?

@EmLauber
Copy link
Contributor

EmLauber commented Sep 2, 2022

No updates, this ask remains uncommitted.

@tylerd
Copy link

tylerd commented Mar 29, 2023

I am building a React Native app using Azure AD B2C, any updates on this request?

@EmLauber
Copy link
Contributor

No updates but we are tracking interest in React Native.

@Uzef1997
Copy link

I am building a React Native app using Azure AD B2C, any updates on this request?

you can use react-native-app-auth as there is no official updates i am using the same

@SabareeshGC
Copy link

SabareeshGC commented Apr 25, 2023

Any update, we are holding off our migration to Azure AD B2C because this is not supported yet

@EmLauber
Copy link
Contributor

Still no update on a commitment. Can you tell me more about the B2C scenario you are looking for React Native support with? Is it only for web apps or includes native API usage like React Native running on a mobile platform?

@EmLauber EmLauber self-assigned this May 12, 2023
@SabareeshGC
Copy link

We have both mobile and web platform as because it is not supported in mobile platform with react native we cannot implement either on the web as user cant login on the mobile device.

@Marvedog
Copy link

Marvedog commented Sep 4, 2023

@EmLauber Not sure where we can submit our interest on this, but I can provide you with a quick write-up of our usage scenarios here. We have two different health apps that use Azure AD B2C. The apps are mobile only and must support OICD-compliant authentication/authorization procedures. For this, we would benefit from a client library that is able to properly handle tokens and the authentication flows using native APIs. We are using a form of react-native-msal, but it has some limitations with regards to token management in an offline scenario on iOS. Furthermore, the base repo is archived so from our perspective there is noe client library that satisfies all our requirements as we have been experiencing issues with react-native-app-auth as well.

@crrobinson14
Copy link

crrobinson14 commented Oct 20, 2023

@EmLauber Adding a vote and use case here per your question and agreeing with Marvedog above. When you ask about React Native support for web vs mobile I would imagine 99% of users out there mean mobile when they say "React Native." Although the RN community has recently started branching out to supporting other platforms like Web, those are add-ons. The original purpose and use-case for RN is mobile.

Like Marvedog above, we have a healthcare-industry app we're working on where the backend uses AD B2C for auth. Not having a native library is a barrier for us as well. We've had to ask the client to wrap/black-box the backend auth which both reduces the value of AD in the first place and also the level of security it can provide here. Happy to talk this through more if it's helpful in any way.

PS: Teams has a native mobile app. What are they doing here? They must have an answer for this same problem. If it's not React Native, but purely native (Swift/Kotlin) code, perhaps if that was provided as an SDK it would help another contributor add the RN wrappers around it? Those wrappers are not particularly difficult to create if the core SDK is well documented...

@vip-sin
Copy link

vip-sin commented Dec 25, 2023

@EmLauber any further updates on this, it has been more than a year since this thread has been opened, lot of people have taken the azure subscriptions but are not able to migrate.

Currently, the MSAL (Microsoft Authentication Library) library lacks official support for React Native, preventing developers from seamlessly integrating Azure AD B2C sign-up and sign-in flows into React Native mobile applications. This feature request aims to address the absence of React Native support by enhancing the MSAL library to include dedicated modules or methods for React Native compatibility.
Use Case:
As a mobile app developer working on a React Native project, I need to implement Azure AD B2C sign-up and sign-in flows for user authentication within my mobile application. The MSAL library is a crucial component for integrating with Azure AD B2C; however, the lack of React Native support is hindering the development process.

Expected Behavior:
The MSAL library should provide React Native developers with a set of APIs or modules that allow them to seamlessly integrate Azure AD B2C authentication features into their React Native mobile applications. This includes the ability to initiate sign-up and sign-in flows, handle tokens, and manage user sessions within the React Native context.

React Native has gained widespread adoption for cross-platform mobile app development.
Many developers are leveraging Azure AD B2C for identity management in their applications.
The lack of React Native support in the MSAL library is a significant barrier.

--
Also the given PoC library was last published over 3 years ago, which can't be of much help.

@crrobinson14
Copy link

We had to fall back to ROPC, which Microsoft specifically recommends against doing but it was our only choice because of the lack of native support.

@anishmiviewis
Copy link

any updates on this, as we are also in need of an official library to get our authentication setup?

@vip-sin
Copy link

vip-sin commented Mar 18, 2024

No, from 3 years microsoft is doing PoC, with dedicated SMEs.

@Stewartarmbrecht
Copy link

Adding the obligatory "any updates". Is there another channel where we might be able to bump priority on this? As of now it seems like a fairly large community of developers is being excluded by Microsoft.

@LitePenguins
Copy link

Bumping this, are there any updates on this front?

@pushp-rathod
Copy link

Any update on the react-native?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature requests. msal-browser Related to msal-browser package msal-react Related to @azure/msal-react tracked-internally Bugs that are tracked by Msft internally
Projects
None yet
Development

No branches or pull requests