mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-23 21:16:14 -06:00
[feature] Refactor tokens, allow multiple app redirect_uris
This commit is contained in:
parent
67a2b3650c
commit
3b1b842890
77 changed files with 860 additions and 554 deletions
|
|
@ -89,6 +89,16 @@ func TestScopes(t *testing.T) {
|
|||
WantsScope: util.ScopeWrite,
|
||||
Expect: false,
|
||||
},
|
||||
{
|
||||
HasScope: util.ScopeProfile,
|
||||
WantsScope: util.ScopePush,
|
||||
Expect: false,
|
||||
},
|
||||
{
|
||||
HasScope: util.Scope("p"),
|
||||
WantsScope: util.ScopePush,
|
||||
Expect: false,
|
||||
},
|
||||
} {
|
||||
res := test.HasScope.Permits(test.WantsScope)
|
||||
if res != test.Expect {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue