Merge pull request #12901 from overleaf/msm-oauth-token-flags

[web] Feature flags for Personal Access Tokens

GitOrigin-RevId: cb359b7c41d8875ebae7d78a8839528bc4adc04c
This commit is contained in:
Miguel Serrano
2023-05-08 09:58:00 +02:00
committed by Copybot
parent 2636f8d2f0
commit 088cd01229
5 changed files with 17 additions and 1 deletions

View File

@@ -67,6 +67,9 @@ describe('UserPagesController', function () {
_getRedirectFromSession: sinon.stub(),
setRedirectInSession: sinon.stub(),
}
this.Features = {
hasFeature: sinon.stub().returns(false),
}
this.UserPagesController = SandboxedModule.require(modulePath, {
requires: {
'@overleaf/settings': this.settings,
@@ -76,6 +79,7 @@ describe('UserPagesController', function () {
'../Errors/ErrorController': this.ErrorController,
'../Authentication/AuthenticationController':
this.AuthenticationController,
'../../infrastructure/Features': this.Features,
'../Authentication/SessionManager': this.SessionManager,
request: (this.request = sinon.stub()),
},