mirror of
https://github.com/google/nomulus.git
synced 2025-07-23 11:16:04 +02:00
Remove the web console EPP endpoint
This removes the "create Domain/Host/Contact" forms that were supposed to be used instead of regular EPPs for CC-TLD that wanted to support it. We're removing it because we don't use it and want to reduce unneeded code for the registry 3.0 migration. Also, this is a security risk, as it allowed to do "billable actions" (creating a new domain for example) with the only authentication being access to the registrar's G Suite account. This bypassed the certificate, IP whitelist, and EPP password, which is bad. PUBLIC: Remove the web console EPP endpoint This removes the "create Domain/Host/Contact" forms that were supposed to be used instead of regular EPPs for CC-TLD that wanted to support it. We're removing it because we don't use it and want to reduce unneeded code for the registry 3.0 migration. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=236244195
This commit is contained in:
parent
f12d368da3
commit
dfad79759e
52 changed files with 58 additions and 3788 deletions
|
@ -21,7 +21,6 @@ goog.require('goog.testing.MockControl');
|
|||
goog.require('goog.testing.PropertyReplacer');
|
||||
goog.require('goog.testing.asserts');
|
||||
goog.require('goog.testing.jsunit');
|
||||
goog.require('goog.testing.mockmatchers');
|
||||
goog.require('goog.testing.net.XhrIo');
|
||||
goog.require('registry.registrar.ConsoleTestUtil');
|
||||
goog.require('registry.testing');
|
||||
|
@ -71,36 +70,6 @@ function testButter() {
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* The EPP login should be triggered if the user `isGaeLoggedIn`
|
||||
* but not yet `isEppLoggedIn`.
|
||||
*/
|
||||
function testEppLogin() {
|
||||
// This is a little complex, as handleHashChange triggers an async
|
||||
// event to do the EPP login with a callback to come back to
|
||||
// handleHashChange after completion.
|
||||
registry.registrar.ConsoleTestUtil.visit(
|
||||
test, {
|
||||
isEppLoggedIn: true,
|
||||
clientId: test.testClientId,
|
||||
xsrfToken: test.testXsrfToken,
|
||||
productName: 'Foo Registry'
|
||||
}, function() {
|
||||
test.sessionMock.login(
|
||||
goog.testing.mockmatchers.isFunction).$does(function() {
|
||||
test.sessionMock.$reset();
|
||||
test.sessionMock.isEppLoggedIn().$returns(true).$anyTimes();
|
||||
test.sessionMock.getClientId().$returns(
|
||||
test.testClientId).$anyTimes();
|
||||
test.sessionMock.$replay();
|
||||
test.console.handleHashChange(test.testClientId);
|
||||
}).$anyTimes();
|
||||
});
|
||||
assertTrue(test.console.session.isEppLoggedIn());
|
||||
assertNotNull(goog.dom.getElement('domain-registrar-dashboard'));
|
||||
}
|
||||
|
||||
|
||||
/** Authed user with no path op specified should nav to welcome page. */
|
||||
function testShowLoginOrDash() {
|
||||
registry.registrar.ConsoleTestUtil.visit(test, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue