Hello team.

I'm developing some app using EJB3, but all the sample files and
examples are implemented by using JSP.

Therefore I'm in trouble with getting "TokenFromReply" when I want to
use AuthSub.

all the sample codes are as follows.

     String singleUseToken = AuthSubUtil.getTokenFromReply
(httpServletRequest.getQueryString());

Is there any alternative methods or hardcode to get the querystring?

My codes are as follows.

                        String nextUrl = "http://intellistation.kr.BRC.com";;
                        String scope = "https://www.google.com/h9/";;
                        boolean secure = false;
                        boolean session = true;
                        String authSubLink = AuthSubUtil.getRequestUrl(nextUrl, 
scope,
secure, session);
                        // This will default the security settings to be the 
most
permissive.
                        System.out.println(authSubLink);
                        authSubLink += "&permission=1";
                        // We have a custom AuthSub handler for Health.
                        authSubLink = 
authSubLink.replaceFirst("/accounts/AuthSubRequest",
"/h9/authsub");

//                      String singleUseToken = AuthSubUtil.getTokenFromReply
(httpServletRequest.getQueryString());


Thank you and much regards.

Hayoung

--

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