//
pkg.gl
Category
github.com/apache/servicecomb-mesher
proxy
handler
oauth2
package
1.8.0
Repository:
https://github.com/apache/servicecomb-mesher.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
8
Dependents
1
Files
109 SLOC
#
Functions
NewOAuth2
NewOAuth2 returns new auth handler.
Use
Use put a custom oauth2 logic then register handler to chassis.
WriteBackErr
WriteBackErr write err and callback.
#
Constants
AuthName
AuthName is the auth style.
Random
Random is a state value.
#
Variables
ErrExpiredToken
errors.
ErrInvalidAuth
errors.
ErrInvalidCode
errors.
ErrInvalidState
errors.
ErrInvalidToken
errors.
#
Structs
Handler
Handler is is a oauth2 pre process raw data in handler.
OAuth2
OAuth2 should implement oauth2 server side logic it is singleton.