Top Level Namespace
Defined in:
Constant Summary
-
HMAC_KEY =
Random::Secure.hex(32)
-
PG_DB =
DB.open("postgresql://kemal:kemal@localhost/dev")
Method Summary
- arg_array(array, start = 1)
- create_user(sid, email, password)
- generate_response(session, scopes, key, db, expire = 6.hours, use_nonce = false)
- generate_token(email, scopes, expire, key, db)
- get_referer(env, fallback = "/", unroll = true)
- get_user(sid, headers, db, refresh = true)
- login(env)
- login_page(env)
- scopes_include_scope(scopes, subset)
- scopes_includes_scope(scope, subset)
- sign_token(key, hash)
- signout(env)
- validate_request(token, session, request, key, db)