Windows Authentication possible in metro app? - microsoft-metro

I want to retrieve the username of the logged-in user. Is it possible? The app is for intranet only.

To add Windows authentication to an app, declare the 'enterpriseAuthentication' capability in the manifest.
Refer to the info in this related question for more details.
Edit:
To retrieve the domain name of the user, I believe you can use Windows.System.UserProfile.UserInformation.GetDomainNameAsync. There is also the User domain name sample on MSDN.

Related

reviewing a facebook app without a store id

I am building a windows camera app where people can login to their facebook account to post the photo.
In order to get user_photos and publish_actions permissions I'm asked to add a platform.
When adding windows app as a platform, I'm asked to add a Windows Store ID, which is something I don't have, the app is supposed to run on a dedicated computer and not to be used by the general public.
Is there any way to gain user_photos and publish_actions permissions without specifying a Windows Store ID?
No, you have to register your app and a get Windows Store ID in order to gain those permissions.
If you need some help with setting it up, I recommend reading this guide.

Using windows azure authetication for mobile services

I making windows phone apps and i find out that windows azure have "identity" feature to authenticate user and getting userID,
what i want to know is:
can i use this userID to identify each user that login? (my app allow user to post a comment into the app and i looking for using this userID for tracking each user comment)
can i retrieve other data beside userID? like display name or picture and is it same like using their native sdk? (facebook or twitter)? to post into timeline?
My first approach is trying to integrate microsoft account but i don't know where to get client id and client secret
sorry for many question, i just getting very confuse about this... and after hours of watching channel9 and reading i just barely understand any of this...
have a look at the following blog posts using Azure Mobile Services and see if it helps you:
Getting user information on Azure Mobile Services
Enhanced users feature in Azure Mobile Services

Issue regarding Facebook permissions

I'll be needing some help regarding the Facebook permissions. Actually, I have defined a permission set on my facebook developer account under permissions and setup an application as well. I would like my ios application to pull permissions (On Login) that are specified under my account. I know I can use iOS or FB SDK 3.5.1 in my application (which I am using) but I don't want to specify permissions set on device, Just want to save version submissions of my application on store, don't want to keep this on client side. I know how to achieve permissions etc on iOS device as well which I have been using since Facebook 2.0.
So, is there a way using which application should pull permissions from the application ID (developer account) instead of specifying the permission set on the client (iOS).
Many Thanks,
Reno Jones
I think you are trying to think in reverse direction but this is not possible to achieve.
Permissions are never attached to any app, we specify permission so we can use those explore more using that appID.
Means there is nothing as such permissions for appID, appID & permissions are both different thing.
For Eg: I have created an app to see my details on Facebook. In order to achieve it we are not required to configure my appId on facebook. So its only us(the developers) who know what user can do with Facebook using that FBID.
So we just ask permissions separatly.

zend user auth by submitting user credentials from remote android device

We have developed a web site, online magazine store for android device, there is also an android app that loads the website as web view. Every device has a username, password and a device ID which is sent as post during the loading of web view.
My requirement is :
The site should load only if the login credential supplied (post) from the android device is valid.
Where should I check the validity of the the credential?
I mean should I write a plugin or whether the checking has to done in bootstrap. I dont need any group based access control all users have the same privilege.
Please show some example with necessary code.
My recommendation here would be to use an Action Helper that checks for your $POST variable and redirects/blocks the user as required.
Writing your own action helper is not difficult and once you've tried it you won't be able to stop! Matthew Weier O'Phinney has written an excellent blog post that will be useful to you too.

How to authenticate a website user through iphone

I have created a web application and now I want to create an iPhone version of it. As a first step, I want to login a user using his username and password. I have a simple login page with fields for username and password. Now I want to send these credentials onto my site (lets say, www.abc.com/login) and authenticate whether the username and password is correct or not.
I need some help in this as I am not an experienced iphone developer. I just need to know how to send the credentials to my site url.
Any help or sample tutorial in this regard will be highly helpful to me.
Go get ASIHTTPRequest as it is a great framework for any network connectivity you do. the you can simply use POST or use the method they have provided for authentication.
See the section titled "Handling Authentication" here for code samples and docs
better make a canvas and call that page of webapplication..