Good Day,
I am working on using the MicrosoftAzureMobile.framework in iOS for syncing data to Azure's Easy Tables.
Everything is working wonderfully with anonymous access/auth which is okay for testing and development.
I'm ready to secure the rights to GET/POST/PUT/DELETE/ entries to the easy table.
There are some great articles showing us how to use URL Schemes in iOS for URL Redirects for OAUTH 2.0.
However, I am not interested in creating individual login accounts just some very basic security on the Easy Tables Data CRUD.
Is there a way with the MicrosoftAzureMobile framework to use a Client ID, Tenant ID, Shared Token and embed this in my app
to connect to the easy tables / mobile sync framework? I do not want to interrupt my viewcontroller with an oauth 2.0 MS login
prompt, but I also do not want to allow open / anonymous to the online data. I did notice this method in the MicrosoftAzureMobile.framework.
<style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #008400; background-color: #ffffff} span.s1 {text-decoration:
underline ; color: #d12f1b} span.s2 {color: #d12f1b} span.s3 {color: #ba2da2} span.s4 {color: #000000} </style>
[serviceAzure.client loginWithProvider@"windowsazureactivedirectory" token:(nonnull NSDictionary *) completion:^(MSUser *
_Nullable user, NSError * _Nullable error) {
//completion block
}
This loginwithprovider is used in the articles I found online for url scheme redirects, but I can't find any mention of how to structure this token NSDict variable.
Is this method going to do what I need it to do or am I barking up the wrong tree with this one?
Thanks everyone!