~bigbes/core-go

ref: 7457c44be5ec4f9247154d2fdec2fe8885db3f45 core-go/server/directives.go -rw-r--r-- 1.2 KiB
453dcaef — Simon Ser 2 years ago
server/directives: disambiguate AnonInternal error message

AUTH_INTERNAL won't work with AnonInternal.
65b1657b — Simon Ser 3 years ago
auth: add AuthContext.Access

Same logic as server.Access, but lower-level. Useful to check for
a permission not covered by the GraphQL schema @access directives
(such as builds.sr.ht secrets).
30cea5cc — Simon Ser 3 years ago
server: fix error message on missing grant in Access

The error returned when a token is missing a required grant would
be "Access denied for invalid auth method" which is confusing.
Fix this with a more accurate error message.
ca47b9fe — Simon Ser 3 years ago
server/directives: handle auth.AUTH_ANON_INTERNAL in Access
d5f650da — Simon Ser 4 years ago
Allow AUTH_COOKIE to access @private fields
378fedbc — Drew DeVault 4 years ago
Add @anoninternal support code

This is a slightly better approach to the previous commit.
2d9a547c — Drew DeVault 4 years ago
auth: harden grants structure

This replaces the Access map with a data type whose default value does
not grant any permissions, so that it's more difficult to create an
insecure auth context by mistake.
590c9c42 — Drew DeVault 4 years ago
server: add @private directive glue code
8bd6005b — Drew DeVault 5 years ago
webhooks: initial prototype for GQL-native webhooks
52d6dc99 — Drew DeVault 5 years ago
Fix bug with internal authentication
7be038e7 — Drew DeVault 5 years ago
Make authorization errors more specific
1d2a30cb — Drew DeVault 5 years ago
Import GQL server interfaces from gql.sr.ht