Code Monkey home page Code Monkey logo

library's People

Contributors

afischer avatar alexwgraves avatar bkoski avatar caseygibbs avatar chrisfrank avatar davegonzalez avatar dependabot-preview[bot] avatar dependabot[bot] avatar evelynting610 avatar giratikanon avatar gregbarasch avatar hopefourie-nyt avatar isaacwhite avatar jdk27 avatar jenniwhitman avatar jpmckinney avatar jptomanelli avatar leranjun avatar maxine avatar mtandre avatar nzben avatar palewire avatar penina-nyt avatar rebeccahalleck avatar shaidar avatar shewitt95 avatar smoores-dev avatar szwang avatar umisyam avatar xvandish avatar

Watchers

 avatar  avatar  avatar

library's Issues

500 on /logout, still logs out

Context (Environment)

When you hit the /logout URL, you are met with a 500 page. Need a page that we can send users to that is not behind auth to gracefully logout to. The logout URL is not exposed anywhere, but if someone types it out, they will get an error, but still logged out... then back in because they're sent back to the app.

Expected Behavior

Log out logs the user out and does not error.

Actual Behavior

Log out kicks you to a 500 page... then to the app... which logs you back in.

To Reproduce

type /logout in browser

Possible Solution

Create a new page, not authed, where we can send not logged in users to.

Error: 7 PERMISSION_DENIED: Missing or insufficient permissions

Loading the homepage, throws the following error in the Heroku app log:

2021-02-25T13:41:30.991870+00:00 app[web.1]: error: Serving an error page for /reading-history/teams.json?limit=5 2021-02-25T13:41:30.991882+00:00 app[web.1]: { message: '7 PERMISSION_DENIED: Missing or insufficient permissions.', 2021-02-25T13:41:30.991884+00:00 app[web.1]: stack: 2021-02-25T13:41:30.991886+00:00 app[web.1]: 'Error: 7 PERMISSION_DENIED: Missing or insufficient permissions.\n at Object.callErrorFromStatus (/app/node_modules/google-gax/node_modules/@grpc/grpc-js/build/src/call.js:30:26)\n at Http2CallStream.call.on (/app/node_modules/google-gax/node_modules/@grpc/grpc-js/build/src/client.js:96:33)\n at Http2CallStream.emit (events.js:203:15)\n at process.nextTick (/app/node_modules/google-gax/node_modules/@grpc/grpc-js/build/src/call-stream.js:100:22)\n at process._tickCallback (internal/process/next_tick.js:61:11)', 2021-02-25T13:41:30.991887+00:00 app[web.1]: code: 7, 2021-02-25T13:41:30.991888+00:00 app[web.1]: details: 'Missing or insufficient permissions.', 2021-02-25T13:41:30.991889+00:00 app[web.1]: metadata: { internalRepr: {}, options: {} }, 2021-02-25T13:41:30.991890+00:00 app[web.1]: note: 2021-02-25T13:41:30.991890+00:00 app[web.1]: 'Exception occurred in retry method that was not classified as transient' }

Operationalize app

Steps required to deploy app in a production environment:

  • Request new Google Drive from IS&T
  • Setup Heroku pipeline
  • Add RC app
  • Fork nytimes/library-customization repository to use for overriding some behavior
  • Look into triggering automatic build when commits happen on forked library-customization repo

Refactor our specific strategy out

Problem Description

Our SAML implementation does not use the config file as we ran into issues getting that stood up. Now that we have RC and prod working, we should attempt to go back and refactor out anything specific to us, but leave the generic SAML strategy in to later push upstream.

Feature

A generic SAML strategy will be added as a third auth option.

Additional Information

See the information on customization repo and the customization repo example for more information.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.