Zero Trust Implementation for React Native Application
Hi! I am new to cloudflare and I wanted a way to integrate Cloudflare zero trust with RN application. So, the usecase is that we have to verify that whether the user is connected to Warp vpn or any vapn and if the user is in the list of those users that have access. On the basis of these two things, we will let the user use our application. Is there a specific SDK or api through which we can check. I shall be really thankful to your support.
2 Replies
Generally the way you use Zero Trust is putting Endpoints/Websites behind Access Policy which require specific things. For Example If you were trying to see if they had WARP w/ Zero Trust active and in your organization you could use Require Gateway: https://developers.cloudflare.com/cloudflare-one/identity/devices/warp-client-checks/require-gateway/.
I'm a bit confused by what you mean though. "WARP VPN or any VPN and if they are in a list of users who have access". Based on what? You can require Zero Trust, or you can require them to go through specific identity provider flows like Google/Github and be in a list of allowed emails, need to define that a bit more strictly. Zero Trust wouldn't help you identify any generic VPN.
Cloudflare Docs
Require Gateway | Cloudflare Zero Trust docs
With Require Gateway, you can allow access to your applications only to devices enrolled in your organization’s instance of Gateway. Unlike Require WARP, which will check for any WARP instance (including the consumer version), Require Gateway will only allow requests coming from devices whose traffic is filtered by your organization’s Cloudflare...
Thank you Chaika for your reply. Actually after confirming with my senior, our use case is something like: 1. Detect if vpn is connected (solved)
2. Detect if Warp 1.1.1.1 is installed on phone. Is there a way to get urlScheme of the Warp 1.1.1.1. We have to check it in our React Native app