GithubHelp home page GithubHelp logo

Comments (4)

garemoko avatar garemoko commented on June 15, 2024

Hi,

Sorry I didn't flag this up sooner - I only just made the connection myself.

We should prioritise implementing OAuth 1 as that's the version set out in the spec. OAuth 2.0 support is still very nice to have though.

Andrew

from learninglocker.

davetosh avatar davetosh commented on June 15, 2024

OAuth is an interesting one. While looking over the spec and supporting blog posts, there appears to be a mixture of OAuth 1.0 and 2.0 mentioned. Given this, we decided to go with OAuth 2.0 as that is what the majority of the major services (Twitter aside) have adopted.

In this post - http://tincanapi.com/building-a-learning-record-store/ - OAuth 2.0 is mentioned "An LRS has to follow oAuth 2.0's scope parameter" and throughout the spec there is reference to both such as:

https://github.com/adlnet/xAPI-Spec/blob/master/xAPI.md#oauthscope - "The LRS MUST accept a scope parameter as defined in OAuth 2.0"

https://github.com/adlnet/xAPI-Spec/blob/master/xAPI.md#security - "The LRS MUST support authentication using at least one of the following methods: OAuth 1.0 (RFC 5849)...."

While read this, it didn't sound like OAuth 2.0 is being treated as a further options as well as OAuth 1.0, it sounds like the two are being talked about as if the same thing - which they are not. That said, I could have the wrong end of the stick.

OAuth 1.0 and 2.0 are essentially different beasts so I think we will only have time to adopt one or the other at this time and given a fair bit of leg work has been done for OAuth 2.0, I would vote for that.

from learninglocker.

garemoko avatar garemoko commented on June 15, 2024

That part confused me too. I know understand that the idea is that oauth 1 is what's suggested but that the scopes are being borrowed from oauth 2.

That said, there's nothing in the spec to say that we have to support oauth 1 and that we can't support oauth 2. It's just that client applications are more likely to look to support oauth 1. I'm not aware if any that actually exist at the moment though.

How much work have we put into oauth 2 and how much is remaining?

from learninglocker.

davetosh avatar davetosh commented on June 15, 2024

A good bit of the ground work is in rc1 - we forked https://github.com/LearningLocker/oauth2-server-laravel to work with LL and if you look in routes.php you will see routes that let apps authorize. Really, the last remaining thing is to devise a couple of default grant types, wire those up and it will be ready to test.

from learninglocker.

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.