perfect.org
Documentation
|
API Documentation
PerfectLib
Perfect-CouchDB
Perfect-CURL
Perfect-Filemaker
Perfect-GoogleAnalytics-MeasurementProtocol
Perfect-HTTP
Perfect-HTTPServer
Perfect-Logger
Perfect-MongoDB
Perfect-Mustache
Perfect-MySQL
Perfect-MariaDB
Perfect-Net
Perfect-Notifications
Perfect-PostgreSQL
Perfect-Redis
Perfect-RequestLogger
Perfect-Session
Perfect-Session-SQLite
Perfect-Session-CouchDB
Perfect-Session-MySQL
Perfect-Session-PostgreSQL
Perfect-SQLite
Perfect-Thread
Perfect-WebSockets
Perfect-XML
Perfect-Zip
Turnstile-Perfect
Perfect-Turnstile-CouchDB
Perfect-Turnstile-MySQL
Perfect-Turnstile-PostgreSQL
Perfect-Turnstile-SQLite
StORM
CouchDB-StORM
MySQL-StORM
Postgres-StORM
SQLite-StORM
Module: Perfect-Turnstile-CouchDB
global var
tokenStore: AccessTokenStore?
public var that houses the Token object
class
AuthHandlersJSON
The class that holds all the JSON Authentication handlers
class
AuthHandlersWeb
The class that holds all the Web-oriented Authentication handlers
func
makeJSONAuthRoutes(_ root: String = "/api/v1") -> Routes
Defines and returns the JSON API Authentication routes
class
AuthRealm : Realm
The "Turnstile Realm" that holds the main routing functionality for request filters
var
random: Random = URandom()
A container for the Random object fromTurnstile Crypto
func
init()
func
authenticate(credentials: Credentials) throws -> Account
Used when a "Credentials" onject is passed to the authenticate function. Returns an Account object.
func
authenticate(credentials: AccessToken) throws -> Account
Used when an "AccessToken" onject is passed to the authenticate function. Returns an Account object.
func
authenticate(credentials: UsernamePassword) throws -> Account
Used when a "UsernamePassword" onject is passed to the authenticate function. Returns an Account object.
func
register(credentials: Credentials) throws -> Account
Registers PasswordCredentials against the AuthRealm.
class
TurnstilePerfectRealm
var
requestFilter: (HTTPRequestFilter, HTTPFilterPriority)
var
responseFilter: (HTTPResponseFilter, HTTPFilterPriority)
func
init(sessionManager: SessionManager = PerfectSessionManager(), realm: Realm = AuthRealm())
func
makeWebAuthRoutes() -> Routes
Defines and returns the Web Authentication routes