Skip to content

vonwenm/go-xoauth2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

go-xoauth2

Go library for generating strings for use in the XOAUTH2 authentication scheme, implemented by Google's Gmail IMAP and SMTP servers for OAuth2 authentication.

Usage

import (
       "xoauth2"
)

...

// returns unencoded string
xoauth2.OAuth2String("alice", "some-access-token")

// returns base64-encoded XOAUTH2 string, suitable for direct use in SASL XOAUTH2
xoauth2.XOAuth2String("alice", "some-access-token")

More information

See the XOAUTH2 protocol documentation for more information: https://developers.google.com/google-apps/gmail/xoauth2_protocol#the_sasl_xoauth2_mechanism

About

Go library for generating XOAuth2 strings (for use in XOAUTH2 SASL auth schemes for IMAP/SMTP)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%