modulepackage
0.0.0-20240607130558-ba9903a3815e
Repository: https://github.com/omniboost/oauth-proxy.git
Documentation: pkg.go.dev
# README
Oauth Proxy
This proxy is created to allow multiple clients (programs, servers) to use the same Oauth token to be used simultaneously and keeping the latest (refresh) token in sync in multiple processes.
This is a proxy specifically for Oauth token calls. It intercepts calls to the token endpoint of a Oauth provider. The proxy keeps a local database of the tokens and expire times. Whenever a token is to expire, the proxy refreshes the token with a call to the original provider endpoint and stores the new tokens (refresh token and access token) centrally. So is ensured every client uses the same refresh token, access token and expire time. The proxy takes care of making calls to the original token endpoint.
+----------+
| |
| Oauth |
| provider |
| |
+----+-----+
^
|
v
+----+-----+
| |
| Oauth |
| proxy |
| |
+-+------+-+
^ ^
| |
+---+ +---+
| |
+----+-----+ +----+-----+
| | | |
| Oauth | | Oauth |
| client | | client |
| | | |
+----------+ +----------+
Installation
go get github.com/omniboost/oauth-proxy/bin/oauth-proxy
# Packages
No description provided by the author
Package db contains the types for schema ''.
No description provided by the author
No description provided by the author
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
Assets statically implements the virtual filesystem provided to vfsgen.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author