plugins

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Claims

type Claims struct {
	jwt.StandardClaims
	Role string
}

type FirebasePlugin

type FirebasePlugin struct {
	bramble.BasePlugin
	// contains filtered or unexported fields
}

func NewFirebasePlugin

func NewFirebasePlugin(roles map[string]bramble.OperationPermissions) *FirebasePlugin

func (*FirebasePlugin) ApplyMiddlewarePublicMux

func (p *FirebasePlugin) ApplyMiddlewarePublicMux(h http.Handler) http.Handler

func (*FirebasePlugin) Configure

func (p *FirebasePlugin) Configure(cfg *bramble.Config, data json.RawMessage) error

func (*FirebasePlugin) ID

func (p *FirebasePlugin) ID() string

type FirebasePluginConfig

type FirebasePluginConfig struct {
	ServiceAccountFilePath string                                  `json:"service-account-file"`
	RefreshTokenFilePath   string                                  `json:"refresh-token-file"`
	ProjectID              string                                  `json:"project-id"`
	Roles                  map[string]bramble.OperationPermissions `json:"roles"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL