package auth

import "github.com/nats-io/gnatsd/auth"

Index

Types

type Plain

type Plain struct {
	Username string
	Password string
}

Plain authentication is a basic username and password

func (*Plain) Check

func (p *Plain) Check(c server.ClientAuth) bool

Check authenticates the client using a username and password

type Token

type Token struct {
	Token string
}

Token holds a string token used for authentication

func (*Token) Check

func (p *Token) Check(c server.ClientAuth) bool

Check authenticates a client from a token

Source Files

plain.go token.go

Version
v0.8.0
Published
May 9, 2016
Platform
linux/amd64
Imports
3 packages
Last checked
10 hours ago

Tools for package owners.