backend for xcvr appview
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

update to use scope array

+6 -4
-2
server/go.sum
··· 117 117 github.com/prometheus/common v0.54.0/go.mod h1:/TQgMJP5CuVYveyT7n/0Ix8yLNNXy9yRSkhnLTHPDIQ= 118 118 github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0learggepc= 119 119 github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk= 120 - github.com/rachel-mp4/indigo v0.0.0-20250818172132-160dc435906d h1:rw2vFPL1iHDEY2JrDfBkHEm0TFJUDweFQ1ol+2ik95U= 121 - github.com/rachel-mp4/indigo v0.0.0-20250818172132-160dc435906d/go.mod h1:n6QE1NDPFoi7PRbMUZmc2y7FibCqiVU4ePpsvhHUBR8= 122 120 github.com/rachel-mp4/lrcd v0.0.0-20250822143425-69eddc6acc95 h1:1JTdISKo6SkzwjJJXT78GlbXxASEEfSQZ2WN6LhKfzI= 123 121 github.com/rachel-mp4/lrcd v0.0.0-20250822143425-69eddc6acc95/go.mod h1:lU5b8bC7vP56MT57i6gUYoXxHSVLyrUYMnUo7JELwSc= 124 122 github.com/rachel-mp4/lrcproto v0.0.0-20250720164211-c6162669b709 h1:P//gJE0zFv9Qvfn8dvp9ZrnG0FZh2MVcAX+uOP2flRw=
+6 -2
server/internal/db/oauth.go
··· 118 118 var ari oauth.AuthRequestData 119 119 ari.State = state 120 120 var did string 121 + var scope string 121 122 err := row.Scan( 122 123 &ari.AuthServerURL, 123 124 &did, 124 - &ari.Scope, 125 + &scope, 125 126 &ari.RequestURI, 126 127 &ari.AuthServerTokenEndpoint, 127 128 &ari.PKCEVerifier, ··· 131 132 if err != nil { 132 133 return nil, errors.New("failed to scan: " + err.Error()) 133 134 } 135 + scopes := strings.Fields(scope) 136 + ari.Scopes = scopes 134 137 sdid, err := syntax.ParseDID(did) 135 138 if err != nil { 136 139 return nil, errors.New("failed to parse did: " + err.Error()) ··· 140 143 } 141 144 142 145 func (s Store) SaveAuthRequestInfo(ctx context.Context, info oauth.AuthRequestData) error { 146 + scope := strings.Join(info.Scopes, " ") 143 147 _, err := s.pool.Exec(ctx, ` 144 148 INSERT INTO requests ( 145 149 state, ··· 155 159 info.State, 156 160 info.AuthServerURL, 157 161 info.AccountDID, 158 - info.Scope, 162 + scope, 159 163 info.RequestURI, 160 164 info.AuthServerTokenEndpoint, 161 165 info.PKCEVerifier,