Hi, Instead of forwarding the SAML response to ACS using Java, I recommend you to use Javascript to automatically submit your form, you could implement the same call from the second button on the page.
Julian. On May 27, 7:29 am, Nadya <[EMAIL PROTECTED]> wrote: > Thank you. That is probably it... Which method should I use then? I'm > looking at Java APIs and it tells to getContext method, but I'm not > clear how to use it. > > On May 27, 12:50 am, "Julian (Google)" <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I was looking into the function getRequestDispatcher() and is only for > > relative URLs. > > >http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletContext.ht...) > > > You need to change your code to a different function to be able to > > redirect to a different domain. > > > Julian. > > > On May 26, 11:39 am, "Julian (Google)" <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > You may need to check the code for the response, > > > the URL should be http:/mail.google.com/a/test.gwu.edu without "/ > > > smaltool/" > > > > I do not recommend to hard code the redirection only to Gmail, since > > > users could be trying to access a different service. > > > > Julian. > > > > On May 23, 8:00 am, Nadya <[EMAIL PROTECTED]> wrote: > > > > > Thank you for your answer, Julian. > > > > I successfully modified the smaltool.war file for my domain, generated > > > > the keys, removed unnecessary GUI leaving only identity_provider.jsp > > > > and ProcessResponseServlet. It all went fine. However, I don’t need > > > > the second button on identity_provider.jsp page. As soon as user gets > > > > identified I need to redirect him/her to Gmail. So I changed > > > > ProcessResponseServlet to forward SAML response to ACS > > > > // Forward SAML response to ACS > > > > request.getRequestDispatcher(acsURL).include(request, response); > > > > I’m getting the following error now: > > > > The requested resource (/smaltool/http:/mail.google.com/a/ > > > > test.gwu.edu) is not available > > > > Am I missing something here? Do I need to do something else in the > > > > servlet? > > > > -Nadya > > > > > On May 21, 4:02 pm, "Julian (Google)" <[EMAIL PROTECTED]> wrote: > > > > > > Hi, > > > > > > You need to change the SSO sign-in page to: > > > > > >http://YOURWEBSERVER/samltool/ProcessResponseServlet > > > > > > Look for all the places where you need to change user/domain, from the > > > > > sample ones to yours, in this two files: > > > > > > ProcessResponseServler.java > > > > > identity_provider.jsp > > > > > > After doing this changes, you will need to include the new complied > > > > > ProcessResponseServler.class on your /samltool/WEB-INF/clases/ > > > > > servlets (this is inside the samtool.war file) > > > > > > Please let me know if you have more doubts. > > > > > > Julian. > > > > > > On May 16, 10:52 am, Nadya <[EMAIL PROTECTED]> wrote: > > > > > > > Hi, > > > > > > I fallowed all the steps and sample SSO works. However, for my > > > > > > application I need just a simple log in page. I see in comments that > > > > > > CreateRequestServlet and RequestUtil are not needed. What should I > > > > > > do > > > > > > next? How should I modify this sample further? Do I need to modify > > > > > > ProcessResponseServlet further? > > > > > > Appreciate your help, > > > > > > Nadya > > > > > > > On May 13, 9:07 pm, "Julian (Google)" <[EMAIL PROTECTED]> wrote: > > > > > > > > Hi, > > > > > > > > For the Java SSO sample, on the ProcessResponseServler.java: > > > > > > > > You need to change the sample domain to yours, look for the line: > > > > > > > > private static final String domainName = "psosamldemo.net"; > > > > > > > > You need to implement the Login function with your organization > > > > > > > credentials validation, modify this function: > > > > > > > > private String login(String username, String password) { ... } > > > > > > > > Also look for the commented lines for the textboxes for login and > > > > > > > password. > > > > > > > > On Create RequestServlet.java: > > > > > > > > Change the demo domain to your, look for the line: > > > > > > > > String domainName = "psosamldemo.net"; > > > > > > > > If you haven't run the sample, I recommend you to try it before > > > > > > > modifying it. > > > > > > > > Julian. > > > > > > > > On May 12, 2:14 am, ff8mania <[EMAIL PROTECTED]> wrote: > > > > > > > > > Hi, > > > > > > > > > I'm modifying the "Web-based Reference Implementation of > > > > > > > > SAML-based > > > > > > > > SSO for Google Apps" for use it on my site. > > > > > > > > But I'm quite confused about some steps: first of all, I've > > > > > > > > trouble in > > > > > > > > customize the reference for my site, for example in detect > > > > > > > > where in > > > > > > > > code i can set my domain name, my ACS Url and username and psw. > > > > > > > > I'm trying to follow the guidelines of this > > > > > > > > page:http://code.google.com/apis/apps/sso/saml_reference_implementation_we..., > > > > > > > > but my doubts are still here. > > > > > > > > > Bye- Hide quoted text - > > > > > > > > - Show quoted text -- Hide quoted text - > > > > > > - Show quoted text -- Hide quoted text - > > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Apps APIs" 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/google-apps-apis?hl=en -~----------~----~----~----~------~----~------~--~---
