diff --git a/README.md b/README.md index 9a6fd2776..c0e5ae650 100644 --- a/README.md +++ b/README.md @@ -5,15 +5,15 @@ Here lives the [BrowserID][] implementation. BrowserID is an implementation of the [verified email protocol][VEP]. - [BrowserID]:https://browserid.org + [BrowserID]:https://login.persona.org [VEP]:https://wiki.mozilla.org/Labs/Identity/VerifiedEmailProtocol This repository contains several distinct things related to BrowserID: * **the browserid server** - a node.js server which implements a web services api, stores a record of users, the email addresses they've verified, a bcrypted password, outstanding verification tokens, etc - * **the verifier** - a stateless node.js server which does cryptographic verification of assertions. This thing is hosted on browserid.org as a convenience, but people using browserid can choose to host their own version if they wish to. + * **the verifier** - a stateless node.js server which does cryptographic verification of assertions. This thing is hosted on login.persona.org as a convenience, but people using browserid can choose to host their own version if they wish to. * **sample and test code** - to test the above - * **the browserid.org website** - the templates, css, and javascript that make up the visible part of browserid.org + * **the login.persona.org website** - the templates, css, and javascript that make up the visible part of login.persona.org * **the javascript/HTML dialog & include library** - this is include.js and the code that it includes, the bit that someone using browserid will include. ## Dependencies diff --git a/bin/browserid b/bin/browserid index 8806efb48..20696a82b 100755 --- a/bin/browserid +++ b/bin/browserid @@ -105,13 +105,12 @@ app.use(cachify.setup(assets(config.get('supported_languages')), { prefix: config.get('cachify_prefix'), production: config.get('use_minified_resources'), - root: static_root, + root: static_root })); - // #7 - perform response substitution to support local/dev/beta environments -// (specifically, this replaces URLs in responses, e.g. https://browserid.org -// with https://diresworb.org) +// (specifically, this replaces URLs in responses, e.g. https://login.persona.org +// with https://login.anosrep.org) config.performSubstitution(app); // #8 - handle /wsapi requests diff --git a/docs/DEPLOYMENT.md b/docs/DEPLOYMENT.md index 13c3b5fc2..b4425f655 100644 --- a/docs/DEPLOYMENT.md +++ b/docs/DEPLOYMENT.md @@ -9,7 +9,7 @@ Reader beware. # How to deploy BrowserID This describes how to take the code here, put it on a server, and build -a service like browserid.org. +a service like persona.org. So what are we deploying, anyway? @@ -17,11 +17,11 @@ So what are we deploying, anyway? api, stores a record of users, the email addresses they've verified, a bcrypted password, outstanding verification tokens, etc. * *the verifier* - a stateless node.js server which does cryptographic - verification of assertions. This thing is hosted on browserid.org as a + verification of assertions. This thing is hosted on persona.org as a convenience, but people using browserid can choose to relocated it if they want to their own servers. - * *the browserid.org website* - the templates, css, and javascript that make - up the visible part of browserid.org + * *the persona.org website* - the templates, css, and javascript that make + up the visible part of persona.org * *the javascript/HTML dialog & include library* - this is include.js and the code that it includes, the bit that someone using browserid will include. @@ -216,7 +216,7 @@ check host verifier with address 127.0.0.1 5. create a file to run the browserid server at `/etc/monit.d/browserid`:
-check host browserid.org with address 127.0.0.1
+check host persona.org with address 127.0.0.1
     start program = "/etc/monit/start_node_server /home/browserid/code/browserid/run.js"
         as uid "www-data" and gid "www-data"
     stop program  = "/usr/bin/pkill -f '/usr/local/bin/node /home/browserid/code/browserid/run.js'"
@@ -276,7 +276,7 @@ http {
 
 server {
     listen       80 default;
-    server_name  browserid.org;
+    server_name  persona.org;
 
     # pass /verify invocations to the verifier
     location /verify {
@@ -294,7 +294,7 @@ server {
 
   5. restart your webserver: `sudo /etc/init.d/nginx restart`
 
-     confirm that it's accepting requests: `curl -I -H 'Host: browserid.org' http://localhost:80/`
+     confirm that it's accepting requests: `curl -I -H 'Host: persona.org' http://localhost:80/`
 
 ### 8. Set up log rotation
 
diff --git a/docs/PRIMARY_PROTOCOL.md b/docs/PRIMARY_PROTOCOL.md
index 0659dab02..2c50b8085 100644
--- a/docs/PRIMARY_PROTOCOL.md
+++ b/docs/PRIMARY_PROTOCOL.md
@@ -166,7 +166,7 @@ properties available to normal web content.
 To support browsers without native BrowserID support, the provisioning
 content should include a javascript shim, hosted at:
 
-    https://browserid.org/provisioning_api.js
+    https://login.persona.org/provisioning_api.js
 
 ### 4.3. BrowserID API
 
@@ -269,7 +269,7 @@ user has successfully authenticated with the primary.
 To support browsers without native BrowserID support, the
 authentication page should include a javascript shim, hosted at:
 
-    https://browserid.org/authentication_api.js
+    https://login.persona.org/authentication_api.js
 
 ### 5.3 BrowserID API
 
diff --git a/example/primary/provision.html b/example/primary/provision.html
index e844563c5..9fe63f2e9 100644
--- a/example/primary/provision.html
+++ b/example/primary/provision.html
@@ -5,7 +5,7 @@
 
 
 
-
+
 
 
-
+
 
-  
+  
+  
 
 
diff --git a/resources/views/layout.ejs b/resources/views/layout.ejs
index 15f6cc731..91e873f19 100644
--- a/resources/views/layout.ejs
+++ b/resources/views/layout.ejs
@@ -33,7 +33,6 @@
             
  • <%= gettext("Sign Out") %>
  • -
    diff --git a/resources/views/privacy.ejs b/resources/views/privacy.ejs index f1046b72a..1b10e0ca5 100644 --- a/resources/views/privacy.ejs +++ b/resources/views/privacy.ejs @@ -61,7 +61,7 @@

    Mozilla is an open organization that believes in sharing as much information as possible about its products, its operations, and its associations with its wider community. As such, Persona Service users should expect that Mozilla will make all Usage Statistics publicly available at some point. However, any publicly available Usage Statistics will only be reported on an aggregate, anonymous basis. No Personal Information or Potentially Personal Information will be available in any of these public reports.

    How to Disable or Opt-Out of Persona
    -

    If at any time, you decide you no longer want to use the Persona Service, you may cancel your Persona Account by visiting https://browserid.org/, signing in using any of your email addresses and your password, clicking the "edit" button, and clicking "remove" next to each of your email addresses.

    +

    If at any time, you decide you no longer want to use the Persona Service, you may cancel your Persona Account by visiting https://login.persona.org/, signing in using any of your email addresses and your password, clicking the "edit" button, and clicking "remove" next to each of your email addresses.

    Other Disclosures

    In certain other limited situations, Mozilla may disclose your Personal Information, such as when necessary to protect our websites and operations (e.g., against attacks); to protect the rights, privacy, safety, or property of Mozilla or its users; to enforce our terms of service; and to pursue available legal remedies. Additionally, Mozilla may need to transfer Personal Information to an affiliate or successor in the event of a change of our corporate structure or status, such as in the event of a restructuring, sale, or bankruptcy.

    diff --git a/resources/views/relay.ejs b/resources/views/relay.ejs index b7fe60a7a..1a71d6807 100644 --- a/resources/views/relay.ejs +++ b/resources/views/relay.ejs @@ -6,6 +6,6 @@ Browser ID - + diff --git a/resources/views/tos.ejs b/resources/views/tos.ejs index 6a5e888b6..72b121d22 100644 --- a/resources/views/tos.ejs +++ b/resources/views/tos.ejs @@ -43,7 +43,7 @@ trade or resell the Services for any purpose, unless you have been specifically permitted to do so in writing by Mozilla, or
  • - access (or attempt to access) the Services by any means other than the Persona site itself (at browserid.org), official Mozilla-branded software (Firefox, Firefox for Mobile, and Firefox Home, referred to in this document as “Firefox Clients”), or third party software that utilizes APIs authorized and provided by Mozilla (“Third Party Clients”), unless you have been specifically allowed to do so in writing by Mozilla. + access (or attempt to access) the Services by any means other than the Persona site itself (at persona.org), official Mozilla-branded software (Firefox, Firefox for Mobile, and Firefox Home, referred to in this document as “Firefox Clients”), or third party software that utilizes APIs authorized and provided by Mozilla (“Third Party Clients”), unless you have been specifically allowed to do so in writing by Mozilla.
  • diff --git a/scripts/browserid.spec b/scripts/browserid.spec index 25fa88361..5429472cb 100644 --- a/scripts/browserid.spec +++ b/scripts/browserid.spec @@ -15,7 +15,7 @@ Requires: openssl nodejs BuildRequires: gcc-c++ git jre make npm openssl-devel expat-devel %description -browserid server & web home for browserid.org +persona server & web home for persona.org %prep %setup -q -c -n browserid diff --git a/scripts/check_primary_support b/scripts/check_primary_support index 801cb6c73..08d6c7054 100755 --- a/scripts/check_primary_support +++ b/scripts/check_primary_support @@ -65,10 +65,10 @@ function getResource(mode, url, urls, opts, cb) { 'auth': '/authentication_api.js', 'prov': '/provisioning_api.js' }; - if (body.indexOf(util.format("https://browserid.org%s", includes[mode])) == -1 && - body.indexOf(util.format("https://diresworb.org%s", includes[mode])) == -1 && - body.indexOf(util.format("https://dev.diresworb.org%s", includes[mode])) == -1) { - console.log(util.format("WARNING: No https://browserid.org/%s script tag detected", includes[mode])); + if (body.indexOf(util.format("https://login.persona.org%s", includes[mode])) == -1 && + body.indexOf(util.format("https://login.anosrep.org%s", includes[mode])) == -1 && + body.indexOf(util.format("https://login.dev.anosrep.org%s", includes[mode])) == -1) { + console.log(util.format("WARNING: No https://persona.org/%s script tag detected", includes[mode])); } if (cb) { cb(); diff --git a/scripts/create_account.js b/scripts/create_account.js index b851cba5b..a61862d11 100755 --- a/scripts/create_account.js +++ b/scripts/create_account.js @@ -13,7 +13,7 @@ var argv = require('optimist') .describe('h', 'display this usage message') .alias('s', 'server') .describe('s', 'server url to stage on') -.default('s', 'https://browserid.org') +.default('s', 'https://login.persona.org') .alias('d', 'domain') .describe('d', 'domain that email is staged on behalf of, will be in email body') .default('d', "create_account_command_line_tool.com") diff --git a/scripts/run_locally.js b/scripts/run_locally.js index 13a59a531..2a0b9bca5 100755 --- a/scripts/run_locally.js +++ b/scripts/run_locally.js @@ -56,7 +56,7 @@ process.env['VERIFIER_URL'] = 'http://' + HOST + ":10000/verify"; process.env['KEYSIGNER_URL'] = 'http://' + HOST + ":10003"; process.env['ROUTER_URL'] = 'http://' + HOST + ":10002"; -process.env['URL'] = process.env['ROUTER_URL']; +process.env['PUBLIC_URL'] = process.env['ROUTER_URL']; // if the environment is a 'test_' environment, then we'll use an // ephemeral database diff --git a/scripts/serve_example.js b/scripts/serve_example.js index f656ec6c3..11e806a6a 100755 --- a/scripts/serve_example.js +++ b/scripts/serve_example.js @@ -21,7 +21,7 @@ if (process.env['BROWSERID_URL']) { console.log('using browserid server at ' + burl); exampleServer.use(postprocess(function(req, buffer) { - return buffer.toString().replace(new RegExp('https://browserid.org', 'g'), burl); + return buffer.toString().replace(new RegExp('https://login.persona.org', 'g'), burl); })); } diff --git a/scripts/serve_example_primary.js b/scripts/serve_example_primary.js index 5794de205..f0ef97001 100755 --- a/scripts/serve_example_primary.js +++ b/scripts/serve_example_primary.js @@ -46,7 +46,7 @@ if (process.env['BROWSERID_URL']) { console.log('using browserid server at ' + burl); exampleServer.use(postprocess(function(req, buffer) { - return buffer.toString().replace(new RegExp('https://browserid.org', 'g'), burl); + return buffer.toString().replace(new RegExp('https://login.persona.org', 'g'), burl); })); }