LROAuth2Client icon indicating copy to clipboard operation
LROAuth2Client copied to clipboard

Shouldn't you be using Safari instead of a web view?

Open malhal opened this issue 11 years ago • 1 comments

I'm new to Oauth and was just wondering that if you are using a web view and if the user logs in then the app can just inject some javascript to monitor whats entered in the login page. Thus defeating the purpose of using Oauth. To prevent this shouldn't you open the URL in safari, have the user log in there, and then redirect back to the app afterwards? That way the app can't steal the users credentials. This is more of an issue for framework developers I suppose. However if this is designed for use in a highly trusted environment why not just use the password flow instead of authorisation code flow?

malhal avatar Sep 18 '14 22:09 malhal

No, this is against apple's HIG. Apps (except for Facebook) cannot leave the current app to 'sign in'

gregpeet avatar Oct 06 '15 12:10 gregpeet