Skip to content

Commit

Permalink
Reference to EBU Tech 3366
Browse files Browse the repository at this point in the history
  • Loading branch information
barroco committed Dec 10, 2014
1 parent 7515e5b commit 82838d7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions routes/access-token.js
Expand Up @@ -16,6 +16,8 @@ var routes = function(app) {

/**
* Access token endpoint
*
* @see EBU Tech 3366, section 8.3
*/

var handler = function(req, res, next) {
Expand All @@ -27,9 +29,11 @@ var routes = function(app) {
var grantType = req.body.grant_type;

switch (grantType) {
// see EBU Tech 3366, section 8.3.1.1 and 8.3.1.3
case 'http://tech.ebu.ch/cpa/1.0/client_credentials':
return clientMode(req, res, next);

// see EBU Tech 3366, section 8.3.1.2
case 'http://tech.ebu.ch/cpa/1.0/device_code':
return userMode(req, res, next);

Expand Down
2 changes: 2 additions & 0 deletions routes/association.js
Expand Up @@ -33,6 +33,8 @@ module.exports = function(app) {

/**
* Client association endpoint
*
* @see EBU Tech 3366, section 8.2
*/

var handler = function(req, res, next) {
Expand Down
2 changes: 2 additions & 0 deletions routes/authorization.js
Expand Up @@ -30,6 +30,8 @@ module.exports = function(app, options) {

/**
* Access token authorization endpoint
*
* @see EBU Tech 3366, section 9.2
*/

app.post('/authorized', protectedResourceHandler, validateJson, function(req, res, next) {
Expand Down
2 changes: 1 addition & 1 deletion routes/registration.js
Expand Up @@ -44,7 +44,7 @@ module.exports = function(app) {
/**
* Client registration endpoint
*
* @see http://tools.ietf.org/html/draft-ietf-oauth-dyn-reg-14#section-3
* @see EBU Tech 3366, section 8.1
*/

var handler = function(req, res, next) {
Expand Down

0 comments on commit 82838d7

Please sign in to comment.