How can we pass an additional parameter to authenticate function?

Hi,

we need to pass one additional parameter to the Application.authenticate() function. We have seen that this function only accepts 3 parameters: username, password and session. We want to send additional information, how can we do it?

Thanks,

Oesía Project

Lars Burgess
Hello,Typically what is done

Hello,

Typically what is done is you can encode data into the login or password field, for example in your settings controller you can setup the login & password like follows:

login: 'lars'

password: '{"org":"motorola","password":"secret"}'

Note the login field is stored in rhoconnect, the password is not so you'll need to choose appropriately where to encode the data (i.e. in case you need to reference it later).

-Lars

Vote: 
Vote up!
Vote down!

Points: 1

You voted ‘up’


Oesia Project
Thanks Lars, we tried this

Thanks Lars, we tried this and works fine.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments