From eb720241da3d786c6ec79f2325277fa4af23846f Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Wed, 26 Feb 2025 13:04:55 +0100 Subject: [feature] Enforce OAuth token scopes (#3835) * move tokenauth to apiutil * enforce scopes * docs * update test models, remove deprecated "follow" * file header * tests * tweak scope matcher * simplify... * fix tests * log user out of settings panel in case of oauth error --- internal/api/client/push/pushsubscriptionget_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/api/client/push/pushsubscriptionget_test.go') diff --git a/internal/api/client/push/pushsubscriptionget_test.go b/internal/api/client/push/pushsubscriptionget_test.go index 23fb9e7f2..80f387195 100644 --- a/internal/api/client/push/pushsubscriptionget_test.go +++ b/internal/api/client/push/pushsubscriptionget_test.go @@ -95,7 +95,7 @@ func (suite *PushTestSuite) TestGetSubscription() { func (suite *PushTestSuite) TestGetMissingSubscription() { accountFixtureName := "local_account_1" // This token should not have a subscription. - tokenFixtureName := "local_account_1_user_authorization_token" + tokenFixtureName := "local_account_1_push_only" _, err := suite.getSubscription(accountFixtureName, tokenFixtureName, 404) suite.NoError(err) -- cgit v1.2.3