File tree Expand file tree Collapse file tree
packages/backend/src/tokens/__tests__ Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1332,20 +1332,6 @@ describe('tokens.authenticateRequest(options)', () => {
13321332 expect ( requestState ) . toBeSignedIn ( ) ;
13331333 expect ( requestState . toAuth ( ) ) . toBeSignedInToAuth ( ) ;
13341334 } ) ;
1335-
1336- test ( 'accepts OAuth JWT when acceptsToken is "any"' , async ( ) => {
1337- server . use (
1338- http . post ( mockMachineAuthResponses . oauth_token . endpoint , ( ) => {
1339- return HttpResponse . json ( mockVerificationResults . oauth_token ) ;
1340- } ) ,
1341- ) ;
1342-
1343- const request = mockRequest ( { authorization : `Bearer ${ mockTokens . oauth_token } ` } ) ;
1344- const result = await authenticateRequest ( request , mockOptions ( { acceptsToken : 'any' } ) ) ;
1345-
1346- expect ( result ) . toBeMachineAuthenticated ( ) ;
1347- expect ( result . tokenType ) . toBe ( 'oauth_token' ) ;
1348- } ) ;
13491335 } ) ;
13501336
13511337 describe ( 'Token Type Mismatch' , ( ) => {
You can’t perform that action at this time.
0 commit comments