modulepackage
0.0.0-20171211150428-f88559efbbad
Repository: https://github.com/projectplace/oauth1.git
Documentation: pkg.go.dev
# README
oauth1 
Package oauth1 provides building blocks for implementing an OAuth 1.0 service provider. See the example code for how to implement authentication for protected resources and redirection-based authorization.
# Functions
IsInternal returns true if err is caused by an internal server error.
WriteError encodes and writes err to w with the appropriate status code.
# Variables
ErrNonceAlreadyUsed is the error returned by ConsumeNonce if a nonce is re-used.
ErrNotFound is the error returned by Store methods if a token or client can not be found.
# Structs
ClientCredentials holds the identifier and shared secret used to authenticate a particular client.
Server provides methods for interacting with OAuth 1.0 clients.
TempCredentials holds the identifier and shared secret used to make an authorization request to the resource owner.
TokenCredentials holds the identifier and shared secret used to authenticate a resource owner.
# Interfaces
Store is the interface used to manage credentials and nonces.