nandi/gleanpublic⑂ Fork 0
⑂ 01ad903
Commits
⬇ Clone ▾
git clone https://git.rickub.com/nandi/glean.git
git clone ssh://git@rickub.com/nandi/glean.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Refactor limit oauth scopesUnverified

Julien Robert committed 2026-04-21T11:56:16+02:00 Browse files
01ad903 parent: fd0b623
modified internal/server/server.go +17 -1
@@ -31,7 +31,23 @@ import (
3131 "pkg.rbrt.fr/glean/static"
3232 )
3333
34-var oauthScopes = []string{"atproto", "transition:generic"}
34+var oauthScopes = []string{
35+ "atproto",
36+ "blob:*/*",
37+
38+ fmt.Sprintf("repo:%s", atproto.CollectionSubscription),
39+ fmt.Sprintf("repo:%s", atproto.CollectionLike),
40+ fmt.Sprintf("repo:%s", atproto.CollectionAnnotation),
41+
42+ "rpc:at.glean.listSubscriptions?aud=*",
43+ "rpc:at.glean.listLikes?aud=*",
44+ "rpc:at.glean.getTrending?aud=*",
45+ "rpc:at.glean.getRecommendations?aud=*",
46+ "rpc:at.glean.listFeedLists?aud=*",
47+ "rpc:at.glean.listAnnotations?aud=*",
48+
49+ "rpc:app.bsky.actor.getProfile?aud=*",
50+}
3551
3652 func splitString(s, sep string) []string {
3753 return strings.Split(s, sep)
@@ -31,7 +31,23 @@ import (
31 "pkg.rbrt.fr/glean/static"31 "pkg.rbrt.fr/glean/static"
32 )32 )
33 33
34-var oauthScopes = []string{"atproto", "transition:generic"}34+var oauthScopes = []string{
35+ "atproto",
36+ "blob:*/*",
37+
38+ fmt.Sprintf("repo:%s", atproto.CollectionSubscription),
39+ fmt.Sprintf("repo:%s", atproto.CollectionLike),
40+ fmt.Sprintf("repo:%s", atproto.CollectionAnnotation),
41+
42+ "rpc:at.glean.listSubscriptions?aud=*",
43+ "rpc:at.glean.listLikes?aud=*",
44+ "rpc:at.glean.getTrending?aud=*",
45+ "rpc:at.glean.getRecommendations?aud=*",
46+ "rpc:at.glean.listFeedLists?aud=*",
47+ "rpc:at.glean.listAnnotations?aud=*",
48+
49+ "rpc:app.bsky.actor.getProfile?aud=*",
50+}
35 51
36 func splitString(s, sep string) []string {52 func splitString(s, sep string) []string {
37 return strings.Split(s, sep)53 return strings.Split(s, sep)