From 6c050fc61368efc3ad092ceb552e83d8c5d65f3d Mon Sep 17 00:00:00 2001 From: Willian Fernandes Date: Mon, 8 Dec 2014 20:33:00 -0200 Subject: [PATCH] Changed some parameters on directive to make their values dynamic. --- app/scripts/directives/oauth.js | 6 +++--- dist/oauth-ng.js | 8 ++++---- test/spec/directives/oauth.js | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) 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' + '' ); });