Tried to exhaustively find everything in the codebase that would need a scope added for. Testable on https://tangled.wizardry.systems
appview/oauth/oauth.go
appview/oauth/oauth.go
This file has not been changed.
+1
-1
appview/oauth/scopes.go
+1
-1
appview/oauth/scopes.go
History
2 rounds
3 comments
expand 3 comments
Using consts might end up looking like:
"repo:" + tangled.ActorProfileNSID,
"rpc:" + tangled.RepoCreateNSID + "?aud=*"
we'd kinda lose the readability of plain strings without gaining compile-time safety, and when an nsid changes, we'd have to update both the lexicon and this scope list anyway
lgtm!
pull request successfully merged
very nice work! we use a fork of indigo that exposes
NSIDconsts:Would it make sense to use these consts in the scope-strings? happy with the existing patch as-is too, if not.