I am trying to login from a Xamarin Android App and Xamarin iOS app to an ASP.NET Core Web App using Identity and it isn't working. Has anyone tried Xamarin with IdentityServer4 and the standard ASP.NET core identity out of the box? E.g. Use aspnetusers table created by identity and all the user registration features while identityserver provides token stores for mobile app?
Related
I am working in xamarin.ios native app and I have to authenticate/login with microsoft account to access Microsoft Graph Api or other outlook api. I have done the all settings in Azure active directory, So I have already try to implement this by using xamarin.auth but this is not working due to grant_type parameter is not being supplied and throw an error as invalid_grant and invalid_request.
is any other way to authenticate with microsoft account?
can you help me to implement Microsoft Authentication Library for .NET (MSAL) in xamarin.ios native app. I got some sample xamarin.forms but we need it in xamarin.ios. I am not familiar with xamarin.forms code.
When you use Microsoft Authentication Library for .NET (MSAL.NET) on Xamarin iOS, you should:
Override and implement the OpenUrl function in AppDelegate.
Enable keychain groups.
Enable token cache sharing.
Enable keychain access.
Understand known issues with iOS 12 and authentication.
Having a look at this document : https://learn.microsoft.com/en-us/azure/active-directory/develop/msal-net-xamarin-ios-considerations
I just got Visual Studio 2013 loaded up and want to create a new web/mobile app that uses the same authentication for the website version and the mobile version.
I loaded up both templates (MVC5 w/Indivual Account & WEB API w/Individual Account) to check them out but it looks like I actually want to do a merge of those projects so the MVC5 uses the Web Api 2 OWIN for normal username & password authentication along with Social Media logins via Oauth.
SPA - I did look at this template but I'm not looking for a SPA as my website will need to be SEO friendly plus I know MVC and want to keep using it.
This would seem like an obvious template that developers would like to have in order to support both websites and mobile apps in the same project.
If your target is to share user accounts between the MVC app and the Web Api app, then all you need to do is to have them both point to the same UserStore.
I think this is what you are looking for:
http://leastprivilege.com/2012/10/23/mixing-mvc-forms-authentication-and-web-api-basic-authentication/
S*Problem to solve:*
So I'm building my first mobile app using nomad and I have pages I want to call through ajax. The problem is I need an authenticated user to get the data I'm looking for. I'm just using the built in forms authentication logic that comes built into mvc 3 projects. So how can I securely authorize a user on a mobile device and keep them logged in while making calls later?
Environment:
I'm using a tool http://vsnomad.com/, for my app, and a basic asp.net mvc 3 site controller to login and get the data the app needs. I'm not using webpi just a controler to keep it simply for now. For the mobile app its built on jquery, jquery mobile, and HTML 5, any help here would be much appreciated
I'm using Azure ACS to deal with the user authentication in my site, now I'm building a Windows Form App where the user needs to authenticate with the credentials that are used in the web site.
There is anyway to implement Azure ACS with windows forms application?
Yes, use Azure Authentication Library (AAL). Here is an example. The client application is WPF, but it could just as easily be a Windows Form App.
http://code.msdn.microsoft.com/AAL-Native-App-to-REST-de57f2cc
i am not sure if you can do this directly from the application but i suggest doing so through a WCF or a web services. you can work with ACS with WCF,
http://msdn.microsoft.com/en-us/library/windowsazure/gg185912.aspx
I am writing an MVC3 app that is trying to get the page source of a google page (specifically the Android Marketplace for our company) that is behind the authentication wall. I am just wondering how I can authenticate properly so that my app can see pages that are authenticated.
I tried following the steps at this site (post by WeCi2i): http://bytes.com/topic/c-sharp/answers/870187-login-youtube-using-c, but without success.
Any advice would be appreciated.
Thanks
Microsoft included by default DotNetOpenAuth in MVC 4, but you can use it also in MVC 3
http://dotnetopenauth.net/
http://www.tkglaser.net/2012/02/single-sign-on-using-google-in-asp-mvc.html