Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Chapter 12: Authentication & Security

User authentication and permission management for BotServer.

Overview

BotServer provides enterprise-grade security with flexible authentication options and granular permissions.

Authentication Methods

MethodUse Case
Session TokenWeb/API access
OAuth2/OIDCSSO integration
API KeyService accounts
Bot AuthBot-to-bot communication

Quick Start

' Check if user is authenticated
IF user.authenticated THEN
  TALK "Welcome, " + user.name
ELSE
  TALK "Please log in first"
END IF

Security Features

  • Password Hashing: Argon2 with secure defaults
  • Session Management: Cryptographic tokens, configurable expiry
  • Rate Limiting: Prevent brute force attacks
  • Audit Logging: Track all authentication events
  • Encryption: AES-GCM for data at rest

Permission Levels

LevelAccess
adminFull system access
managerBot management
userStandard access
guestRead-only

Configuration

name,value
auth-session-ttl,3600
auth-max-attempts,5
auth-lockout-duration,900

Chapter Contents

See Also