I'm using Auth0 as my login provider for my app. Auth0 provides an API to login with Facebook, LinkedIn, Google, MS and Apple.
This all works in the app (client-side) and I get the relevant access tokens from the various login providers.
The app then needs to sync with Azure app services (which also works in dev through an anonymous connection) using MobileServiceClient.
Since I already have relevant provider access-tokens, I want to authenticate a user on the Azure App Service simply to secure the app service and not expose it with anonymous access.
Since I already have the access-token client-side, how best to authenticate that to retrieve a resource token from App Services?
Does anyone know how I can authenticate for LinkedIn and Apple on the Azure App Service?
It would be great if MS extended that API to include those, like MobileServiceAuthenticationProvider.LinkedIn and/or MobileServiceAuthenticationProvider.Apple but that's wishful thinking
Also, once logged in to the app, I don't want users to have to login every time they use the app.
How can I persist a login and/or authentication so that the user is always logged in and authenticated?
At the moment I store the userId in the app on the device, and if that is present, I allow data sync, but through anonymous connection.
Any other ideas/approaches most welcome