src/prologue/auth/auth

Source   Edit  

Types

AuthMethod = enum
  Basic = "Basic", Digest = "Digest"
Source   Edit  
VerifyHandler = proc (ctx: Context; username, password: string): bool {....gcsafe.}
Source   Edit  

Procs

proc basicAuth(ctx: Context; realm: string; verify: VerifyHandler;
               charset = "UTF-8"): tuple[hasValue: bool,
    username, password: string] {....raises: [KeyError, Exception],
                                  tags: [RootEffect], forbids: [].}
Source   Edit  
proc unauthenticate(ctx: Context; authMethod: AuthMethod; realm: string;
                    charset = "UTF-8") {.inline, ...raises: [], tags: [],
    forbids: [].}
Source   Edit