diff options
| author | Pjotr <wrk@bosa.lan> | 2026-10-13 06:06:37 +0000 |
|---|---|---|
| committer | Pjotr <wrk@bosa.lan> | 2026-10-13 06:06:37 +0000 |
| commit | 2551418eede25d0ffaebef67f9950f13e3551567 (patch) | |
| tree | 1d173432582191401f69622925d7337d5ebe81c8 /test/python/test_get_test_token.py | |
| parent | 2456d66fc2c14345ab0730ef0a4ae07458af8ec6 (diff) | |
| download | genenetwork4-2551418eede25d0ffaebef67f9950f13e3551567.tar.gz | |
auth: add gnauth compile-time tags (secured/token_only/disabled)
Adds a gnauth-macros proc-macro crate and a private-field Authorized capability type in src/auth.rs, so #[gnauth(secured)] is a real, compile-time-checked guarantee that a handler performs the gn-auth resource-authorisation round trip before sharing trait/probeset values, rather than just a comment. #[gnauth(token_only)] marks handlers that require a token but skip the round trip, and #[gnauth(disabled)] marks the two handlers that need no token at all. Also fixes groups.rs: group_trait_values, group_trait_info and group_traits previously performed no gn-auth round trip at all for published-trait data; they now resolve the group's PublishFreeze row and call the same auth::check used elsewhere, denying by default when no such row exists. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Diffstat (limited to 'test/python/test_get_test_token.py')
0 files changed, 0 insertions, 0 deletions
