can any one help me how to do Windows Authentication using xamarin forms
Thanks in Advance
Regards,
Reddy Krishna M
You can take a look at our documentation on using Windows Integrated Auth with UWP. We also have a sample app which demonstrates creating a Xamarin application that signs in users with AAD and calls the Microsoft Graph using OAuth 2.0 access tokens.
More documentation on Integrated authentication on Windows.
For the authentication libraries, the implementation of WAM, which is another layer of Windows auth, is on the horizon. Hope this helps.
Related
I am currently looking for a good JS library to use for my addin. And I came across this project : MSGRAPH-SDK-JAVASCRIPT
I tried to read through their project details but could not find out definitively if they support the SSO-OBO flow for addins.
Has anybody used the said library successfully for an SSO-OBO flow?
Thank you very much.
Single sign on and MS Graph SDK are different things. You can use SSO to deal with Graph API from Outlook web add-ins. See Using Single Sign-On (SSO) with Office Add-ins for more information.
Also you may find the following posts helpful:
Authorize to Microsoft Graph with SSO
Authenticate a user with a single-sign-on token in an Outlook add-in
I want to use Micrsosoft Graph Api in a web forms application, although there are only tutorials of Microsoft Graph API in a console application or MVC applications.
I saw this tutorial explaining how I can use the Web Api in a web forms applications. https://learn.microsoft.com/en-us/aspnet/web-api/overview/getting-started-with-aspnet-web-api/using-web-api-with-aspnet-web-forms
I wonder if the same logic will work with Graph Api. Do I have to create a model and controller in Web forms to use Graph Api?
I hope I explained it well.
Can someone advise please?
Thank you very much in advance.
If you want to call graph api in your c# project, then you need to make sure you have an azure ad application first with the correct api permission.
Then you need to install 2 packages into your application, and for example using client credential flow to call graph api, this is my test result.
I am looking for sdk that can help me do the client flow login in my Xamarin app(shared assets with forms UI) for Facebook and LinkedIn for iOS and android. I've got it working using Xamarin.Auth server flow but having hard time in client flow.
For facebook, I tried Xamarin Android Facebook, Xamarin iOS Facebook and cross platform facebook sdk by outercurve foundation. The official xamarin facebook sdk's are in very bad shape, don't work and no documentation has been provided as well. I couldn't find any for LinkedIn though.
My main objective is to use facebook and linkedin app to do the authentication to provide better user experience.
Eventually worked with official Xamarin Facebook SDK's for facebook for android and iOS. This blog post from James Montemagno came in handy.
Take a look at Auth0. They have a reasonable SDK and they support a large number of different Social Authentication providers including Facebook and LinkedIn. Their authentication service isn't free once you reach critical mass, but it's great to have the whole authentication aspect handled for you. Check it out at http://www.auth0.com
Any idea when a Google Classroom library wil be available for Xamarin? I have tried the .NET and Android library, but the GoogleWebAuthorizationBroker and FileDataStore does not exist, and Xamarin doesn't cater for "urn:ietf:wg:oauth:2.0:oob" as a redirect url when authenticating with Google Api (OAuth 2). Is there a workaround that anyone know of?
We are unlikely to build any library specifically for Xamarin. The details of our OAuth2 endpoints are publicly available, so it is in theory possible for you to develop your own implementation.
I want to develop a sample App for Twitter on WindowsPhone7. So anybody suggest me if any SDK for Windows Phone is available. Also any code samples for the OAuth API implementation.
Thank you.
There a few tutorial about buliding Twitter app. An example. There are also a lot examples of Twitter apps in WPF or OpenSource projects like Witty which can be easly changed to SL for WP7.
Client-side OAuth manager DLL / Documentation:
http://cropperplugins.codeplex.com/releases/view/57233
You can view the source here:
http://cropperplugins.codeplex.com/SourceControl/changeset/view/66350#1710422
Doc here:
http://cheeso.members.winisp.net/OAuthManager1.1
It allows you to specify params like username, password, consumer key, secret key, and it generates the required HTTP headers for you.
See also, this discussion.