Coder Social home page Coder Social logo

Comments (6)

OwenBrotherwood avatar OwenBrotherwood commented on June 20, 2024

Note: There is also some mismatch with the placement of app.use in another example, where

60 // The access token is only available after boot
61 app.use(loopback.token({
62 model: app.models.accessToken
63 }));

https://github.com/strongloop/loopback-example-passport/blob/e5e7ef5aa1eaa15b7c3d78d812aebaa750a8efc9/server/server.js#L60-63

from loopback-example-access-control.

OwenBrotherwood avatar OwenBrotherwood commented on June 20, 2024

For own notes:
https://auth0.com/blog/2014/01/27/ten-things-you-should-know-about-tokens-and-cookies/
Wonders if strongloop can also create a current best practice

access_token in Url contra cookie contra header (header prefered)

from loopback-example-access-control.

richardpringle avatar richardpringle commented on June 20, 2024

Hey @OwenBrotherwood, sorry about the delayed response.
Could you please provide a link to a test project with steps to reproduce the issue? See https://github.com/strongloop/loopback/wiki/Reporting-issues#bug-report.

app.use(loopback.token({ model: app.models.accessToken })); should work, but I'll need to see exactly how you are trying to use it before I can help you.

from loopback-example-access-control.

OwenBrotherwood avatar OwenBrotherwood commented on June 20, 2024

Hej @richardpringle
Lol: yep, a bit of ancient history turned up there.
I really have to use time to check my failing memory about this one.
My opening post has me totally confused: the date indicates newbie status, I had a steep learning curve inclusive input on tokens via default or look for specific, with no default (cannot remember what @bajtos decieded in the end)

Soooo.... close the Issue if there is no clear "work at hand".
When Christmas comes, I will be reviewing all my open and closed Issues as a form of status and deceide what to work or follow up on.

Very complex answer: but I did get back to you as soon as you gave input, so I hope you feel I take the project seriously

Br Owen

Edit @richardpringle :
Is the reach out cos the review of all examples in process?
and if the example is to be evaluated by an end user dummy, do you wish me to volunteer as the dummy. It can be good practice for me to get back in the driving seat of (node) programming as I have had SO much Mainframe stuff in the last few months I am beginning to think in EBCDIC again.

from loopback-example-access-control.

richardpringle avatar richardpringle commented on June 20, 2024

@OwenBrotherwood, thanks for the quick response. We're just trying to get a handle on all the issues associated with loopback (even the old ones). I'm going to close the issue for now and if need be when you do your review, you could open up a new ticket.

As for an end user dummy, I'll keep you in mind haha.

Cheers

from loopback-example-access-control.

OwenBrotherwood avatar OwenBrotherwood commented on June 20, 2024

👍

from loopback-example-access-control.

Related Issues (20)

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.