Skip to content

ambiorix-web/scilis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scilis

Secure cookies for ambiorix.

Signs (and unsigns) cookies to ensure they are not tempered with by clients.

Installation

Get it from Github.

remotes::install_github("devOpifex/scilis")

Example

library(scilis)
library(ambiorix)

app <- Ambiorix$new()

# use an environment variable
app$use(scilis("secret"))

app$get("/", \(req, res) {
  print(req$cookie)
  res$cookie(
    "MYCOOKIE",
    "This is secure"
  )
  res$send("Added cookie")
})

app$start()