azure - Xamarin forms - authentication with AAD, tried and failed -


i've been trying days xamarin forms app token aad

i've tried countless different ways of doing , have problems, bugs, haven't been able figure out

this link 1 of simplest examples i've come across, yet fails because says there's no client secret

http://www.cloudidentity.com/blog/2015/07/22/using-adal-3-x-with-xamarin-forms/

when add client secret, modifying authenticationcontext so

        authenticationcontext ac = new authenticationcontext("https://login.microsoftonline.com/common");         clientcredential cc = new clientcredential("------4ba8-4136-ad1c-f36be878af8a", "-----sddg4/wzcyyu=");         authenticationresult result = await ac.acquiretokenasync("https://graph.windows.net", cc); 

i new error saying there no application matching graph.windows.net in directory

any help?

please make sure type of azure ad application register native client application , type application meant run on device , aren't trusted maintain secret .

the code provide using client credential flow acquire token , flow uses app's credentials instead of impersonating user .


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -