auth

package
v0.0.0-...-0dfd57a Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Service auth provides token and challenge based auth.

Index

Constants

This section is empty.

Variables

View Source
var Module = &services.Module{
	Name:        "auth",
	Version:     "1.0",
	NewInstance: NewService,
}

Functions

func GenerateDigits

func GenerateDigits() string

Types

type Config

type Config struct {
	Tokens map[string]bool
}

type Dependencies

type Dependencies struct {
	Config services.Config
	Client sarif.Client
}

type Service

type Service struct {
	Config Config

	sarif.Client

	SessionTokens map[string]time.Time
	// contains filtered or unexported fields
}

func NewService

func NewService(deps *Dependencies) *Service

func (*Service) Enable

func (s *Service) Enable() error

Jump to

Keyboard shortcuts

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