NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
This topic has been locked.
1 reply Latest Post - 2013-02-10T08:25:46Z by IdanAdar
Pinned topic Error in Worklight-based app when using Basic Authentication
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
IdanAdar 2700059KWB741 PostsACCEPTED ANSWER
Re: Error in Worklight-based app when using Basic Authentication2013-02-10T08:25:46Z in response to SystemAdminHi,
The Basic Authenticator is not meant for use in the context of Mobile applications. For this, I would recommend using adapter-based authentication.
With adapter-based authentication, you also have onSuccess and onFailure in addition to timeout. Thus, if providing incorrect credentials, you will not have to wait for the timeout, rather you will get onFailure.
See the following topics in IBM Worklight's Getting Started page: https://www.ibm.com/developerworks/mobile/worklight/getting-started/#authentication
And more specifically: ftp://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v505/Module_20_-_Authentication_Concepts.pdf ftp://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v505/Module_22_-_Adapter_Based_Authentication.pdf
Note: IBM forums are in the process of migrating to a new format. During migration the forums will be frozen and in read-only mode. If you wish to continue this thread discussion please post it on stackoverflow, where the Worklight team and others can respond.
See the Forum Migration announce post for more details. Thank you.
IBM Worklight Mobile Platform