Categorygithub.com/ras0q/traq-oauth2
modulepackage
0.1.3
Repository: https://github.com/ras0q/traq-oauth2.git
Documentation: pkg.go.dev

# README

⚠️ This repository is now archived. Please use traPtitech/go-traq-oauth2 ⚠️

traq-oauth2

Go Reference

traq-oauth2 provides support for OAuth2 authentication in traQ

Features

Installation

package main

import (
	// ...
	traqoauth2 "github.com/ras0q/traq-oauth2"
)

Usage

See example

# Packages

No description provided by the author

# Functions

CodeChallengeMethodFromStr returns the CodeChallengeMethod from the string.
GenerateCodeChallenge generates the code challenge from the code verifier.
GenerateCodeVerifier generates a code verifier.
NewConfig returns a new oauth2.Config for traQ.
WithCodeChallenge sets the code_challenge parameter.
WithCodeChallengeMethod sets the code_challenge_method parameter.
WithCodeVerifier sets the code_verifier parameter.

# Constants

CodeChallengePlain is the PKCE "plain" method.
CodeChallengeS256 is the PKCE "S256" method.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
Traq is the OAuth2 endpoint for traQ.

# Structs

Config is a wrapper of oauth2.Config.

# Type aliases

CodeChallengeMethod represents the code challenge method.