Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
koyakishore #1
Member since May 2014 · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: XmppClientConnection using Google access token.
Hi team,

I'm working on google cloud print notifications using xmpp protocol. I'm using agsXmpp SDK.

Everything is working fine by setting Username and Password properties of Xmpp.

But my requirement is to use google access tokens, because we don't want to keep track of Google account username and password.

So, my question is can I use agsXmpp SDK to authenticate using google access token?

Thanks in advance,
Sai Kishore
This post was edited on 2014-07-14, 09:38 by koyakishore.
Avatar
Alex #2
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
look at the agsXMPP.Sasl.XGoogleToken.XGoogleTokenMechanism class.

In the OnSaslStart event you can select the Sasl mechanismfor the authentication manual.

  1. private void XmppCon_OnSaslStart(object sender, SaslEventArgs args)
  2. {
  3.     args.Auto = false;
  4.     args.Mechanism = agsXMPP.protocol.sasl.Mechanism.GetMechanismName(agsXMPP.protocol.sasl.MechanismType.X_GOOGLE_TOKEN);
  5. }
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS