简体   繁体   中英

Oauth: from mobile page access Native App, how?

We are setting up Oauth on our webpage. Our new webpage is set up with jquery.mobile

People are logging in by Oauth on our page.

Now for user friendly use, when visiting our webpage by mobile device, we would like to refer to the Native Mobile App like Facebook, Twitter, Linkedin or Google account instead of opening a new browser tab to log in (using credentials) with their preferred account.

Is this even possible? If so, how do we refer/redirect to their Native Mobile App on their device instead of a web url for Oauth?

Typically there are URI's that refer to the native mobile apps with apis to use those native calls...for example , on IOS, using

 twitter:// 

will access the native application...if you wanted to have the native twitter app open and pull up a username you would

 twitter://user?screen_name=github

Typically if you are only using oauth and not looking for application permissions, the native apps will handle the auth automatically

One way to handle whether the native app is installed is use a redirect to the apps website if the URI returns allication not found

The APIs usually arent too hard to find for URIs

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM