Skip to content

Commit

Permalink
Merge pull request #6 from TryxAPI/fix-authority-group
Browse files Browse the repository at this point in the history
Fix templating injecting a valid authority group (OAuth).
  • Loading branch information
toaster33 committed May 8, 2015
2 parents 5204260 + b3d5c83 commit 91f06ea
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/v1_0_2/configs/actors.js
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,7 @@
name: 'statement authority "group account" property exists',
templates: [
{statement: '{{statements.authority}}'},
{authority: '{{groups.identified_account}}'}
{authority: '{{groups.authority_group}}'}
],
expect: [200]
},
Expand Down
4 changes: 2 additions & 2 deletions test/v1_0_2/configs/groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
name: 'statement authority "objectType" accepts "Group"',
templates: [
{statement: '{{statements.authority}}'},
{authority: '{{groups.default}}'}
{authority: '{{groups.authority_group}}'}
],
expect: [200]
},
Expand Down Expand Up @@ -184,7 +184,7 @@
name: 'statement authority does not require functional identifier',
templates: [
{statement: '{{statements.authority}}'},
{authority: '{{groups.anonymous}}'}
{authority: '{{groups.authority_group}}'}
],
expect: [200]
},
Expand Down
14 changes: 14 additions & 0 deletions test/v1_0_2/templates/groups/authority_group.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"objectType": "Group",
"member": [
{
"account": {
"homePage": "http://example.com/xAPI/OAuth/Token",
"name": "oauth_consumer_x75db"
}
},
{
"mbox": "mailto:[email protected]"
}
]
}

0 comments on commit 91f06ea

Please sign in to comment.