Giter Site home page Giter Site logo

familysearch / fs-pedigree-browser-node Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 3.0 34 KB

Node.js sample app for using the FamilySearch JS Lite SDK

Home Page: https://fs-pedigree-browser-node.herokuapp.com/

License: MIT License

JavaScript 74.88% CSS 6.70% HTML 18.41%

fs-pedigree-browser-node's People

Contributors

justincy avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

fs-pedigree-browser-node's Issues

Pedigree Browser - goes back to signin screen on redirect

Hi,

I'm new to FamilySearch development and am trying to get the Pedigree Browser sample to work on my machine.

Problem: After I login to the integration environment I get redirected back to the signin screen (rather than the pedigree).

Steps taken:

  1. Created an app under my developer account (set Redirect URI to http://localhost:3000/oauth-redirect)
  2. git clone https://github.com/FamilySearch/fs-pedigree-browser-node.git
  3. cd fs-pedigree-browser-node
  4. npm install
  5. Updated appKey in config/default.json to be the newly created App Key (from step 1)
  6. Updated redirectURI in middleware/fs-client.js to the URI specified in step 1 above (domain + ':3000' + '/oauth-redirect')
  7. npm run dev
  8. Browse to localhost:3000 and login, enter integration environment credentials and submit
  9. goes back to the signin screen

It appear that the following is happening:

  1. oauth-redirect.js is storing the access token in req.session.fs_token then redirecting to /pedigree
  2. the fs-session.js middleware intercepts the redirect to validate authentication and at this time req.session.fs_token does not have a value.
  3. fs-session.js redirects to '/'

I don't know what I'm missing. Any guidance?

Thanks,

Russ

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.