Artifact 11cf0db3f13c05d47aa97e2e7816d8f11dbf55db5cfa5c687da1c0050df20a0e:
- File docker/vendor/nova/test/nova_test_app/src/nova_test_app_security.erl — part of check-in [432128758e] at 2026-10-23 13:56:37 on branch Dev — feat(app): 初始代码 (user: pluto size: 419)
%%% Security callback for the /secure prefix. Accepts a fixed bearer token and %%% hands back auth data so the suite can check it reaches the controller. -module(nova_test_app_security). -export([check/1]). check(Req) -> case cowboy_req:header(<<"authorization">>, Req) of <<"Bearer let-me-in">> -> {true, #{user => <<"tester">>, role => <<"admin">>}}; _ -> false end.