Skip to content

Commit

Permalink
Added redirectUrl to shib tenant redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
simong committed Sep 12, 2014
1 parent b322636 commit 7579599
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/api.authentication.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,14 @@ var casCallback = module.exports.casCallback = function(restCtx, params, callbac
* Redirect a user from a tenant to the SP
*
* @param {RestContext} restCtx Standard REST Context object that contains the current tenant URL
* @param {String} redirectUrl The URL where the user should be redirect to once he succesfully authenticates
* @param {Function} callback Standard callback method
* @param {Object} callback.err An error object, if any
* @param {String} callback.body The response body
* @param {Object} callback.response The HTTP response object
*/
var shibbolethTenantRedirect = module.exports.shibbolethTenantRedirect = function(restCtx, callback) {
RestUtil.RestRequest(restCtx, '/api/auth/shibboleth', 'POST', null, callback);
var shibbolethTenantRedirect = module.exports.shibbolethTenantRedirect = function(restCtx, redirectUrl, callback) {
RestUtil.RestRequest(restCtx, '/api/auth/shibboleth', 'POST', {'redirectUrl': redirectUrl}, callback);
};

/**
Expand Down
5 changes: 4 additions & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ read -p "Github password: " passw; echo
stty echo
read -p "Release type (major, minor or patch): " release

GITHUB_USERNAME="$uname" GITHUB_PASSWORD="$passw" grunt "release:$release"
export GITHUB_USERNAME="$uname"
export GITHUB_PASSWORD="$passw"

grunt "release:$release"

0 comments on commit 7579599

Please sign in to comment.