I am doing an iPhone app which requires OAuth 2.0 protocol to be implemented for the login of the user to a particular website. I have the client id and client secret which i got after registering my application on the website. I would like to know a few things about this.
I saw a number of links regarding this. But yet in my head I'm not very sure of whether i need to use OAuth classes or OAuth consumer classes?
Is authentication of the user possible in OAuth without sending the email id and password of the user in a query string?
Is is possible to load the website in a uiwebview and login to the website and get the user credentials for the further screen functionalities.
This is the first kind of such an app I'm developing. It would be great if someone could help me out so that i can know clearly how i should go about.
EDIT: if there any good tutorials for achieving Login to a website using OAuth please do share.
Thanks in advance
Yes, keep in mind that web outlook connections are already on Modern Authentication. iPhone users will have to change their settings, its not dynamic. Does the iOS Mail app with version iOS 12 or higher support Modern Authentication (oAuth2.0)? Yes.
Make it easy for users to log into apps and services. Use the Authentication Services framework to improve the experience of users when they enter credentials to establish their identity. Give users the ability to sign into your services with their Apple ID.
An object that performs a request to modify an account’s authentication properties. A view controller that can upgrade user passwords to strong passwords, or convert accounts to use Sign in with Apple. An object that you interact with to change an account’s password or to upgrade to Sign in with Apple.
Use a web authentication session to authenticate a user in your app. Use time-based codes generated on-device for a secure authentication experience. A session that an app uses to authenticate a user through a web service. A mechanism for generating requests to authenticate users with third-party providers.
OAuth spec and documentations
SDKs for OAuth on iOS
(Speaking of "a particular website", does it have official or third-party SDK for iOS? If yes then you don't need to implement OAuth authorization yourself.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With