function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
WEN JIEWEN JIE 

Question about use OAuth2.0 Flow in Hybrid app

Hi,

 

I have import the Hybrid demo (VFConnector) in my local develop environment  from MobileSDK.jar . As I know this demo base on the OAuth2.0 User-Agent Flow to get the access_token.

 

So does anyone know whether I can use OAuth2.0 Username-Password Flow in a Hybrid app? And use my customized login page show my user.

 

 

Thanks!

Best Answer chosen by Admin (Salesforce Developers) 
Kevin HawkinsKevin Hawkins

Out of the box, the Salesforce Mobile SDK does not implement a username/password flow for OAuth, is it's inherently insecure for mobile devices.  I believe there are some folks implementing custom login pages through Single Sign-On, which may be the best approach for doing what you want to do.

 

Cheers,

Kevin

 

All Answers

Kevin HawkinsKevin Hawkins

Out of the box, the Salesforce Mobile SDK does not implement a username/password flow for OAuth, is it's inherently insecure for mobile devices.  I believe there are some folks implementing custom login pages through Single Sign-On, which may be the best approach for doing what you want to do.

 

Cheers,

Kevin

 

This was selected as the best answer
Kevin HawkinsKevin Hawkins

This link may help with Single Sign-On implementation as well.

WEN JIEWEN JIE

Hi Kevin,

 

Thanks for your help. I will check the Single Sign-On implementation articles.

 

Thank you!