Top Level Namespace

Defined in:

Constant Summary

HMAC_KEY = Random::Secure.hex(32)
PG_DB = DB.open("postgresql://kemal:kemal@localhost/dev")

Method Summary

Macro Summary

Method Detail

def arg_array(array, start = 1) #

[View source]
def create_user(sid, email, password) #

[View source]
def generate_response(session, scopes, key, db, expire = 6.hours, use_nonce = false) #

[View source]
def generate_token(email, scopes, expire, key, db) #

[View source]
def get_referer(env, fallback = "/", unroll = true) #

[View source]
def get_user(sid, headers, db, refresh = true) #

[View source]
def login(env) #

[View source]
def login_page(env) #

[View source]
def scopes_include_scope(scopes, subset) #

[View source]
def scopes_includes_scope(scope, subset) #

[View source]
def sign_token(key, hash) #

[View source]
def signout(env) #

[View source]
def validate_request(token, session, request, key, db) #

[View source]

Macro Detail

macro ecr(xxx) #

[View source]