Documentation ¶
Index ¶
- Constants
- func AuthCallback(cfg oauth2.Config) gin.HandlerFunc
- func AuthStart(cfg oauth2.Config) gin.HandlerFunc
- func AuthenticateClient(clientId, clientSecret, authority string, scopes ...string) clientcredentials.Config
- func Authorize(scope, scopesecret, authority string) gin.HandlerFunc
- func AuthorizeClient(clientId, clientSecret, introspectUrl string) gin.HandlerFunc
- func AuthorizeReally(cfg oauth2.Config) gin.HandlerFunc
- func GetPageData(pageData string) (int, int)
- func LoadTemplates(templatesDir string) (multitemplate.Renderer, error)
- func PrepareClientUser(clientId, clientSecret, authority, redirect string, scopes ...string) oauth2.Config
- func UpdateTheme(cfg clientcredentials.Config, url string) error
- func Wrap(name string, oper Op, result interface{}) gin.H
- type Op
Constants ¶
View Source
const ( UriArtifact = "http://artifact:8082/" UriBlog = "http://blog:8102/" UriComment = "http://comment:8084/" UriComms = "http://comms:8085/" UriEntity = "http://entity:8097/" UriFolio = "http://folio:8090/" UriFunds = "http://funds:8092/" UriGame = "http://game:8100/" UriLogbook = "http://logbook:8089/" UriNotify = "http://notify:8103/" UriOauth2 = "http://oauth2:8086/" UriQuote = "http://quote:8099/" UriStock = "http://stock:8101/" UriTheme = "http://theme:8093/" UriVehicle = "http://vehicle:8098/" UriVIN = "http://vin:8095/" UriXChange = "http://xchange:8104/" )
Variables ¶
This section is empty.
Functions ¶
func AuthCallback ¶
func AuthCallback(cfg oauth2.Config) gin.HandlerFunc
func AuthenticateClient ¶ added in v1.19.0
func AuthenticateClient(clientId, clientSecret, authority string, scopes ...string) clientcredentials.Config
AuthenticateClient will return a token for the current client
func Authorize ¶
func Authorize(scope, scopesecret, authority string) gin.HandlerFunc
func AuthorizeClient ¶ added in v1.4.0
func AuthorizeClient(clientId, clientSecret, introspectUrl string) gin.HandlerFunc
func AuthorizeReally ¶ added in v1.19.0
func AuthorizeReally(cfg oauth2.Config) gin.HandlerFunc
func GetPageData ¶ added in v1.2.0
func LoadTemplates ¶ added in v1.3.1
func LoadTemplates(templatesDir string) (multitemplate.Renderer, error)
func PrepareClientUser ¶ added in v1.19.0
func PrepareClientUser(clientId, clientSecret, authority, redirect string, scopes ...string) oauth2.Config
PrepareClientUser will return a config for the current client, to be used for user authentication
func UpdateTheme ¶ added in v1.3.1
func UpdateTheme(cfg clientcredentials.Config, url string) error
Types ¶
Click to show internal directories.
Click to hide internal directories.