diff --git a/dist/oauth-ng.js b/dist/oauth-ng.js index 2e87219..5a1f234 100644 --- a/dist/oauth-ng.js +++ b/dist/oauth-ng.js @@ -207,7 +207,7 @@ endpointClient.factory('Endpoint', function(AccessToken, $location) { url = params.site + params.authorizePath + - appendChar + 'response_type=token&' + + appendChar + 'response_type='+params.responseType+'&' + 'client_id=' + encodeURIComponent(params.clientId) + '&' + 'redirect_uri=' + encodeURIComponent(params.redirectUri) + '&' + 'scope=' + oAuthScope + '&' + @@ -306,6 +306,7 @@ directives.directive('oauth', function(AccessToken, Endpoint, Profile, $location site: '@', // (required) set the oauth server host (e.g. http://oauth.example.com) 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) template: '@', // (optional) template to render (e.g bower_components/oauth-ng/dist/views/templates/default.html)