Skip to content

Commit

Permalink
Merge pull request #10 from Blackbaud-DarrylEychner/master
Browse files Browse the repository at this point in the history
Federated authentication
  • Loading branch information
blackbaud-johnly authored Apr 15, 2020
2 parents db81924 + 7e05d7d commit c1eda62
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 33 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bbui-angular",
"version": "1.0.7",
"version": "1.0.8",
"homepage": "https://github.com/blackbaud/bbui-angular",
"authors": [
"Paul Crowder <paul.crowder@blackbaud.com>",
Expand Down
41 changes: 20 additions & 21 deletions dist/js/bbui.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/js/bbui.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/bbui.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/bbui.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bbui-angular",
"description": "A portion of the Infinity BBUI API ported to Angular services.",
"version": "1.0.7",
"version": "1.0.8",
"repository": {
"type": "git",
"url": "https://github.com/blackbaud/bbui-angular"
Expand Down
2 changes: 1 addition & 1 deletion src/utils/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
result = {};

if (pairs) {
pairs.forEach(function(pair) {
pairs.forEach(function (pair) {
pair = pair.split('=');
result[pair[0]] = decodeURIComponent(pair[1] || '');
});
Expand Down
12 changes: 8 additions & 4 deletions src/utils/infinity.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,21 @@
function getWebShellLoginUrl(databaseName, status) {

var url,
redirectUrl;
redirectUrl = mockableUtilities.getWindowLocation().href,
index = redirectUrl.indexOf("wsfederationlogin"),
actualUrl = redirectUrl.split('&')[0];

if (!initialized) {
console.error('getWebShellLoginUrl called before initialized');
}

redirectUrl = mockableUtilities.getWindowLocation().href;

url = "/" + getVirtualDirectory() + "/webui/WebShellLogin.aspx?databaseName=" + euc(databaseName);

url += "&url=" + euc(redirectUrl);
if (index !== -1) {
url += "&action=wsfederationlogin";
}

url += "&url=" + euc(actualUrl);

if (status) {
url += "&status=" + euc(status);
Expand Down

0 comments on commit c1eda62

Please sign in to comment.