GithubHelp home page GithubHelp logo

Comments (6)

creighton avatar creighton commented on June 14, 2024

Yes, putting your credentials client-side is a security risk. There's an assumption with this wrapper that you are ok with those credentials being public. This might be ok in cases like very informal tracking, or where client access is in the hands of trusted users.

For other cases you will likely need to apply other techniques.

  • you could move the xapi stuff out of the client-side content and send your xapi data via some server
  • you could use a launch technique like cmi5 or xapi-launch (note: these don't fully remove security issues, but they do keep the credential from needing to be hardcoded in the client-side code)

Full disclosure, I'm not a security guy. These are things I've seen since working with xAPI. I would be very interested in hearing other techniques for securing client-side content.

from xapiwrapper.

lastmjs avatar lastmjs commented on June 14, 2024

Great, that makes sense. I'm working on a unique solution that I'm hoping will open a lot of doors, I'll post back here in the future with what I've got. I think the security issues should be explained in the documentation. The production system that we're switching from uses this library and our credentials are exposed. We didn't know that, and I'm wondering if maybe they didn't know that either. Or perhaps they didn't know it was a problem.

from xapiwrapper.

lastmjs avatar lastmjs commented on June 14, 2024

So, here's my solution. I used Scram.js and Express web components to just use the library on my server without modification to the library. It's been working so far!

from xapiwrapper.

creighton avatar creighton commented on June 14, 2024

Very cool. Thanks for letting me know.

from xapiwrapper.

liveaspankaj avatar liveaspankaj commented on June 14, 2024

Alternatively, we have a way to generate "short lived", "one time" auth
tokens with limited permissions, that we call Secure Tokens. Though, it
might currently only work with GrassBlade LRS
http://www.nextsoftwaresolutions.com/grassblade-lrs-experience-api/

This article explains the feature and what it does:
https://nextsoftwaresolutions.zendesk.com/hc/en-us/articles/207000556-Secure-Tokens-A-critical-Data-Safety-feature

Regards,

Pankaj Agrawal

On Tue, May 10, 2016 at 2:47 PM, tom creighton [email protected]
wrote:

Very cool. Thanks for letting me know.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#66 (comment)

from xapiwrapper.

creighton avatar creighton commented on June 14, 2024

We just updated the wrapper to support xAPI Launch. It is another way to keep from adding credentials in your client side code https://github.com/adlnet/xapi-launch

from xapiwrapper.

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.