Merge pull request #16514 from overleaf/jpa-enforce-oauth-scope
[web] restrict access to oauth endpoints to their respective clients GitOrigin-RevId: 6ffa6008130588e44d336e2af32584ee20ad3ffc
This commit is contained in:
@@ -574,7 +574,7 @@ describe('AuthenticationController', function () {
|
||||
this.res.json = sinon.stub()
|
||||
this.res.status = sinon.stub().returns(this.res)
|
||||
this.res.sendStatus = sinon.stub()
|
||||
this.middleware = this.AuthenticationController.requireOauth()
|
||||
this.middleware = this.AuthenticationController.requireOauth('scope')
|
||||
})
|
||||
|
||||
describe('when Oauth2Server authenticates', function () {
|
||||
|
||||
Reference in New Issue
Block a user