That would be good for me, but I do not manage to find out how to do that. I looked around and saw the auth page with some examples, but it went over my head and I didn't manage to understand what exactly to do.
Thanks a lot for your help RNBY On Nov 26, 2007 8:11 PM, Alex (Google) <[EMAIL PROTECTED]> wrote: > > The atom feed uses basic authentication, e.g. > > http://msdn2.microsoft.com/en-us/library/sxhw3bcy.aspx > > However, it does not currently work with SSO enabled domains. > > One workaround is to have a process to sync credentials to Google > Apps, so the credentials entered at your Sign in URL can also be used > to access the atom feed. > > -alex > > On Nov 23, 10:39 am, RNBY <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a .net application that I use with sso. > > one thing I can't figure out is how to use the atom feed with the sso > > to get back a feed with the unread emails. > > > > I get the authkey like this > > string SendToUri = "https://www.google.com/accounts/ > > ClientLogin"; > > WebRequest request = WebRequest.Create(SendToUri); > > request.Method = "POST"; > > string postData = "accountType=HOSTED&Email=" + email + > > "&Passwd=" + Password; > > byte[] byteArray = Encoding.UTF8.GetBytes(postData); > > request.ContentType = "application/x-www-form-urlencoded"; > > request.ContentLength = byteArray.Length; > > Stream dataStream = request.GetRequestStream(); > > dataStream.Write(byteArray, 0, byteArray.Length); > > dataStream.Close(); > > WebResponse response = request.GetResponse(); > > string Status = > > ((HttpWebResponse)response).StatusDescription; > > dataStream = response.GetResponseStream(); > > StreamReader reader = new StreamReader(dataStream); > > string responseFromServer = reader.ReadToEnd(); > > reader.Close(); > > dataStream.Close(); > > response.Close(); > > int ts = responseFromServer.IndexOf("LSID="); > > Session["google_auth_key"] = > > responseFromServer.Remove(ts-1).Remove(0,4); > > > > Thanks a lot > > RNBY > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
