diff --git a/app/scripts/directives/oauth.js b/app/scripts/directives/oauth.js index cfa96f7..6532c8a 100644 --- a/app/scripts/directives/oauth.js +++ b/app/scripts/directives/oauth.js @@ -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 diff --git a/dist/oauth-ng.js b/dist/oauth-ng.js index c8817ee..0598d6d 100644 --- a/dist/oauth-ng.js +++ b/dist/oauth-ng.js @@ -1,4 +1,4 @@ -/* oauth-ng - v0.3.6 - 2014-12-03 */ +/* oauth-ng - v0.3.6 - 2014-12-08 */ 'use strict'; @@ -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 diff --git a/test/spec/directives/oauth.js b/test/spec/directives/oauth.js index 1d4b2de..2614dcd 100644 --- a/test/spec/directives/oauth.js +++ b/test/spec/directives/oauth.js @@ -25,10 +25,10 @@ describe('oauth', function() { element = angular.element( '' + 'Sign In' + + 'profile-uri="\'http://example.com/me/'">Sign In' + '' ); });