Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/scripts/directives/oauth.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ directives.directive('oauth', function(AccessToken, Endpoint, Profile, $location
replace: true,
scope: {
site: '@', // (required) set the oauth server host (e.g. http://oauth.example.com)
clientId: '@', // (required) client id
redirectUri: '@', // (required) client redirect uri
clientId: '=', // (required) client id
redirectUri: '=', // (required) client redirect uri
responseType: '@', // (optional) response type, defaults to token (use 'token' for implicit flow and 'code' for authorization code flow
scope: '@', // (optional) scope
profileUri: '@', // (optional) user profile uri (e.g http://example.com/me)
profileUri: '=', // (optional) user profile uri (e.g http://example.com/me)
template: '@', // (optional) template to render (e.g views/templates/default.html)
text: '@', // (optional) login text
authorizePath: '@', // (optional) authorization url
Expand Down
8 changes: 4 additions & 4 deletions dist/oauth-ng.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* oauth-ng - v0.3.6 - 2014-12-03 */
/* oauth-ng - v0.3.6 - 2014-12-08 */

'use strict';

Expand Down Expand Up @@ -304,11 +304,11 @@ directives.directive('oauth', function(AccessToken, Endpoint, Profile, $location
replace: true,
scope: {
site: '@', // (required) set the oauth server host (e.g. http://oauth.example.com)
clientId: '@', // (required) client id
redirectUri: '@', // (required) client redirect uri
clientId: '=', // (required) client id
redirectUri: '=', // (required) client redirect uri
responseType: '@', // (optional) response type, defaults to token (use 'token' for implicit flow and 'code' for authorization code flow
scope: '@', // (optional) scope
profileUri: '@', // (optional) user profile uri (e.g http://example.com/me)
profileUri: '=', // (optional) user profile uri (e.g http://example.com/me)
template: '@', // (optional) template to render (e.g bower_components/oauth-ng/dist/views/templates/default.html)
text: '@', // (optional) login text
authorizePath: '@', // (optional) authorization url
Expand Down
6 changes: 3 additions & 3 deletions test/spec/directives/oauth.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ describe('oauth', function() {
element = angular.element(
'<span class="xyze-widget">' +
'<oauth ng-cloak site="http://example.com"' +
'client="client-id"' +
'redirect="http://example.com/redirect"' +
'client="\'client-id\'"' +
'redirect="\'http://example.com/redirect\'"' +
'scope="scope"' +
'profile-uri="http://example.com/me">Sign In</oauth>' +
'profile-uri="\'http://example.com/me\'">Sign In</oauth>' +
'</span>'
);
});
Expand Down