auth

package module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: MIT Imports: 2 Imported by: 0

README

auth — Hyperrr Pluggable Authentication Module

Go Reference Go Coverage

This repository contains the pluggable authorization providers for the Hyperrr engine, including standard Email/Password, JWT verification, and secure API Key generation.


🔒 Active Providers

  • Standard Email/Password: Secure user registrations and login verifications using cryptographic hashing (bcrypt).
  • JWT (JSON Web Token): Standard claims verification and stateless sessions.
  • API Keys: Randomly generated cryptographically secure API tokens for Model Context Protocol (MCP) gateways and AI agent programmatic access.

🛠️ Usage

This module is imported dynamically by the core Hyperrr engine and exposes CLI commands and middlewares.

To learn more about how to develop authentication providers or configure them, see the Hyperrr Developer Guide.

Documentation

Overview

Package auth provides modular authentication strategies including email/password validation and Model Context Protocol API key management.

Licensed under the MIT License.

Index

Constants

View Source
const Version = "0.4.0"

Version is the current version of the Hyperrr Authentication Modules.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actor

type Actor struct {
	ID        string        `gorm:"primaryKey" json:"id"`
	Type      mdk.ActorType `gorm:"index" json:"type"`
	Name      string        `json:"name"`
	Metadata  mdk.JSONMap   `gorm:"type:text" json:"metadata,omitempty"`
	CreatedAt time.Time     `json:"created_at"`
	UpdatedAt time.Time     `json:"updated_at"`
}

Actor is the concrete GORM database model representing a security principal. It implements the mdk.Actor interface.

func (*Actor) GetID

func (a *Actor) GetID() string

func (*Actor) GetMetadata

func (a *Actor) GetMetadata() map[string]string

func (*Actor) GetName

func (a *Actor) GetName() string

func (*Actor) GetType

func (a *Actor) GetType() mdk.ActorType

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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