File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ var tokenExchangeAllowedScopes = map[string]struct{}{
3434 "io.cozy.contacts" : {},
3535 "io.cozy.contacts.groups" : {},
3636 "io.cozy.apps" : {},
37+ "io.cozy.sharings" : {},
3738}
3839
3940type tokenExchangeRequest struct {
Original file line number Diff line number Diff line change 99func TestValidateTokenExchangeScope (t * testing.T ) {
1010 assert .Error (t , validateTokenExchangeScope ("" ))
1111 assert .Error (t , validateTokenExchangeScope ("io.cozy.unknown" ))
12- assert .Error (t , validateTokenExchangeScope ("io.cozy.files\t io.cozy.contacts\t io.cozy.contacts.groups\t io.cozy.apps" ))
12+ assert .Error (t , validateTokenExchangeScope ("io.cozy.files\t io.cozy.contacts\t io.cozy.contacts.groups\t io.cozy.apps\t io.cozy.sharings " ))
1313 assert .NoError (t , validateTokenExchangeScope ("io.cozy.files" ))
14- assert .NoError (t , validateTokenExchangeScope ("io.cozy.files io.cozy.contacts io.cozy.contacts.groups io.cozy.apps" ))
14+ assert .NoError (t , validateTokenExchangeScope ("io.cozy.files io.cozy.contacts io.cozy.contacts.groups io.cozy.apps io.cozy.sharings " ))
1515}
You can’t perform that action at this time.
0 commit comments