02-10-2014 01:24 AM
Can any one knows how to authenticate a user in the application using bbid service? And how to use requestToken() method in IdentityServiceProvider class?
02-15-2014 02:20 AM
When i call the requestToken() function in IdentityServiceProviderit is getting faild and giving IdentityServiceTokenResult::Type as 5009 (/*!< This error may be returned with the requestToken() function,
and indicates that the identity provider is unable to determine
the application or service that the token applies to. This
error is specific to the identity provider. */)
How to get the token for bb identity service?
02-17-2014 06:00 PM
>Can any one knows how to authenticate a user in the application using bbid service?
okay - for starters - have you reviewed the content of this page?
Have you written any code to try to do this yet?
>And how to use requestToken() method in IdentityServiceProvider class?
What have you done? Can you show me your code?
02-20-2014 02:44 PM
You probably don't need to get a token from the available providers. (Why do you want it?)
02-21-2014 07:02 AM - edited 02-21-2014 07:03 AM
i'm using the sample code given in this url
and also i'm calling the provider->challenge(BlackBerryIdChallengeType::Aut
and can we get any unique token for every login(means for every challenge we did) authentication? like we get in facebook 3rd party login authentication
02-21-2014 10:16 AM
A BlackBerry ID token is only useful if you have a BlackBerry service (application / server side) to validate against.
02-24-2014 04:53 PM - edited 02-24-2014 04:56 PM
The tokens prove the BlackBerry ID is valid - to BlackBerry.
eg: in theory you could use the token to prove to the BlackBerry World Web Server that you are that BlackBerry ID - but there's no service like this exposed...
If there was ever a FaceBook IDS provider - it could generate tokens that you can present to FaceBook services to prove you have access to that account. (Right now - you'd use Web...)
Hope that is clear...
02-28-2014 04:55 AM - edited 02-28-2014 04:56 AM
Thanks for your support on this topic ,
Finally I'm able get the properties(ids_get_properties()) and challenge(ids_challenge() ) with BLACKBERRY_ID_PROVIDER as provider but I'm getting error in the following function calling
When I call the following function in identity service with BLACKBERRY_ID_PROVIDER as provider I'm getting error: 50009 (IDS_UNKNOWN_APPLIES_TO = 50009)
ids_get_token( ids_provider_t* provider, const char* token_type, const char* applies_to, get_token_cb_t success_cb, failure_cb_t failure_cb, void* cb_data, ids_request_id_t* request_id );
code I written: ids_get_token(m_idsProvider, "mytoken","myapplication" ,handleToken, failure, this, &m_requestId)
here for applies_to parameter I have tried urn:token:myapplication also (got from http://blackberry-webworks.github.io/WebWorks-API-
if you don't mind could you please help me on this what we have to pass for token_type and applies_to parameters?