Hi Rajashree,

1. If user wants to link to GH your app should redirect to GH for the
user to be authenticated. Now, to avoid user passing username and
password all the time, you ask GH for token instead which is more
convenient. Token can be short live or session, which means short live
tokens are used only once (for every operation) and session tokens are
used for the whole duration of the session unless revoked. Session
tokens are normally stored in DB by your app so that the next time the
user wants to do something on GH you can just retrieve the token and
use it to do the operation (this is what's happening when using
ClientLogin API too so this should also be the case.).

Hope this will give you an idea on your question because i'm confused
on what you're trying to achieve.

On Wed, Nov 25, 2009 at 10:22 PM, rajashree baradur
<[email protected]> wrote:
> Hi Bess,
>
> Yes I understand that we need AuthSub token to manage security. I just went
> through the sample code written by Eric. If I use that class as my Connect
> file, Should I create a JSP file to Login And then is that class checking my
> username and password to authenticate with the google health account? I am
> just confused. Should I write a method to authentication or should I call
> that class in my JSP file? Can u please clarify these things to me?
>
> Thanks,
> Jo..
>
> On Wed, Nov 25, 2009 at 2:27 AM, Bess Ho <[email protected]> wrote:
>>
>> Google allows 2 authenications: AuthSub or OAuth
>>
>> You need AuthSub token to manage security
>>
>> On Tue, Nov 24, 2009 at 3:04 PM, Jo <[email protected]> wrote:
>>>
>>> Hi,
>>> What is this AuthSub? How to incorporate it in the java coding?
>>>
>>> On Oct 20, 7:34 am, MCAS <[email protected]> wrote:
>>> > Guys,
>>> >
>>> > Making a reading about AuthSub authentication, I've read that using
>>> > this
>>> > kind of auth "each authorization token is specific to one user account
>>> > *but
>>> > can cover multiple services for that account*". I've tested my session
>>> > token
>>> > from my H9 test account with others google services  (calendar and
>>> > documents) that I have a account and did not work for anyone of them.
>>> > Have
>>> > someone else tested a authsub token from a service, like H9 or Google
>>> > Health, to auth to another service?
>>> >
>>> > Thanks a lot.
>>> > ---
>>> > Matheus Cardoso de A. Silva - MCAS.
>>> > Engenharia de Computação - UEFS
>>> > Integrante do projeto de "Modelos de Propagação Microcelulares em Áreas
>>> > Urbanas e Rurais para Frequências nas Faixas de UHF e Microondas".
>>> >
>>> > "Não deixe o agora se tornar tarde demais."
>>>
>>> --
>>>
>>> You received this message because you are subscribed to the Google Groups
>>> "Google Health Developers" group.
>>> To post to this group, send email to
>>> [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected].
>>> For more options, visit this group at
>>> http://groups.google.com/group/googlehealthdevelopers?hl=en.
>>>
>>>
>>
>>
>>
>> --
>> Bess Ho
>> UI Architect / Developer / Designer
>> iPhone Developer
>> Silicon Valley Web Builder (SVWB) Founder
>>
>> The information transmitted is intended only for the person or entity to
>> which it is addressed and may contain CONFIDENTIAL material. If you receive
>> this material/information in error, please contact the sender and delete or
>> destroy the material/information.
>>
>> --
>>
>> You received this message because you are subscribed to the Google Groups
>> "Google Health Developers" group.
>> To post to this group, send email to
>> [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/googlehealthdevelopers?hl=en.
>
>
>
> --
> Love & Live, Life is short..
> Always....
>            Raj....
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Health Developers" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/googlehealthdevelopers?hl=en.
>



-- 
Emmanuel F. Caulin
Makati City, Philippines

--

You received this message because you are subscribed to the Google Groups 
"Google Health Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/googlehealthdevelopers?hl=en.


Reply via email to