WIP: add argument for custom pre-request handler

This commit is contained in:
Joe Nelson
2016-09-27 00:19:05 -07:00
parent 2f8ac24128
commit 06363ccc77
7 changed files with 28 additions and 9 deletions
+8
View File
@@ -237,6 +237,14 @@ SELECT jwt.sign(
) r;
$$;
create function block_bad_role() returns void
language plpgsql as $$
begin
if current_role = 'bad_role' then
raise invalid_password using message = 'role is not allowed';
end if;
end
$$;
--
-- Name: reveal_big_jwt(); Type: FUNCTION; Schema: test; Owner: -