Skip to content
This repository has been archived by the owner on May 10, 2019. It is now read-only.

Commit

Permalink
Persona end of life.
Browse files Browse the repository at this point in the history
* All frontend routes show a "Persona has shutdown... See more" message.
* All wsapi requests return 410 (Gone).
* All navigator.id calls are gutted except those that open the Persona EOL dialog.

So long, and thanks for all the fish.
  • Loading branch information
Shane Tomlinson committed Nov 16, 2016
1 parent a17aa35 commit 3c000f4
Show file tree
Hide file tree
Showing 7 changed files with 81 additions and 2,367 deletions.
23 changes: 13 additions & 10 deletions lib/static/views.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ exports.setup = function(app) {
app.get('/sign_in', function(req, res) {
renderCachableView(req, res, 'dialog.ejs', {
title: _('A Better Way to Sign In'),
layout: 'dialog_layout.ejs',
layout: 'layout.ejs',
useJavascript: true,
measureDomLoading: config.get('measure_dom_loading'),
production: config.get('use_minified_resources'),
Expand All @@ -219,15 +219,16 @@ exports.setup = function(app) {

app.get('/communication_iframe', function(req, res) {
renderCachableView(req, res, 'communication_iframe.ejs', {
layout: false,
title: _('Persona communication iframe'),
layout: 'layout.ejs',
production: config.get('use_minified_resources')
});
});

app.get("/unsupported_dialog", function(req,res) {
renderCachableView(req, res, 'unsupported_dialog.ejs', {
title: _('Unsupported Browser'),
layout: 'dialog_layout.ejs',
layout: 'layout.ejs',
useJavascript: false,
// without the javascript bundle, there is no point in measuring the
// window opened time.
Expand All @@ -239,7 +240,7 @@ exports.setup = function(app) {
app.get("/unsupported_dialog_without_watch", function(req,res) {
renderCachableView(req, res, 'unsupported_dialog_without_watch.ejs', {
title: _('Unsupported Browser without Watch'),
layout: 'dialog_layout.ejs',
layout: 'layout.ejs',
useJavascript: false,
// without the javascript bundle, there is no point in measuring the
// window opened time.
Expand All @@ -251,7 +252,7 @@ exports.setup = function(app) {
app.get("/cookies_disabled", function(req,res) {
renderCachableView(req, res, 'cookies_disabled.ejs', {
title: _('Cookies Are Disabled'),
layout: 'dialog_layout.ejs',
layout: 'layout.ejs',
useJavascript: false,
// without the javascript bundle, there is no point in measuring the
// window opened time.
Expand All @@ -263,23 +264,25 @@ exports.setup = function(app) {
// Used for a relay page for communication.
app.get("/relay", function(req, res) {
renderCachableView(req, res, 'relay.ejs', {
layout: false,
production: config.get('use_minified_resources')
layout: 'layout.ejs',
production: config.get('use_minified_resources'),
title: _('Persona relay page')
});
});

// Native IdP Support
app.get('/provision', function(req, res) {
renderCachableView(req, res, 'provision.ejs', {
layout: false,
production: config.get('use_minified_resources')
layout: 'layout.ejs',
production: config.get('use_minified_resources'),
title: _('Persona provisioning page')
});
});

app.get('/auth', function(req, res) {
renderCachableView(req, res, 'dialog.ejs', {
title: _('A Better Way to Sign In'),
layout: 'authenticate_layout.ejs',
layout: 'layout.ejs',
useJavascript: true,
measureDomLoading: config.get('measure_dom_loading'),
production: config.get('use_minified_resources'),
Expand Down
Loading

0 comments on commit 3c000f4

Please sign in to comment.