traq-oauth2 provides support for OAuth2 authentication in traQ
- Authorization Code Flow
- Only this flow is supported in traQ.
- Proof Key for Code Exchange
- PKCE is supported in traQ.
- Few dependencies
- traq-oauth2 only depends on golang.org/x/oauth2 and standard libraries.
package main
import (
// ...
traqoauth2 "github.com/ras0q/traq-oauth2"
)
See example