Skip to content

Commit

Permalink
Fix tslint errors/tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sebakerckhof committed Jun 6, 2017
1 parent 07f5636 commit ba9dd1f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/binding-redirect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ function pvPair(param: string, value: string, first?: boolean): string {
function buildRedirectURL(opts: BuildRedirectConfig) {
let {
baseUrl,
type,
type,
isSigned,
context,
entitySetting,
relayState = ''
relayState = '',
} = opts;
const noParams = url.parse(baseUrl).query.length === 0;
const noParams = url.parse(baseUrl).query.length === 0;
const queryParam = libsaml.getQueryParamByType(type);
// In general, this xmlstring is required to do deflate -> base64 -> urlencode
let samlRequest = encodeURIComponent(utility.base64Encode(utility.deflateString(context)));
Expand Down Expand Up @@ -108,7 +108,7 @@ function loginRequestRedirectURL(entity: { idp: Idp, sp: Sp }, customTagReplacem
type: urlParams.samlRequest,
isSigned: metadata.sp.isAuthnRequestSigned(),
entitySetting: spSetting,
baseUrl: base
baseUrl: base,
}),
};
}
Expand Down Expand Up @@ -154,7 +154,7 @@ function logoutRequestRedirectURL(user, entity, relayState?: string, customTagRe
type: urlParams.logoutRequest,
isSigned: entity.target.entitySetting.wantLogoutRequestSigned,
entitySetting: initSetting,
baseUrl: base
baseUrl: base,
}),
};
}
Expand Down Expand Up @@ -205,7 +205,7 @@ function logoutResponseRedirectURL(requestInfo: any, entity: any, relayState?: s
isSigned: entity.target.entitySetting.wantLogoutResponseSigned,
context: rawSamlResponse,
entitySetting: initSetting,
relayState
relayState,
}),
};
}
Expand Down

0 comments on commit ba9dd1f

Please sign in to comment.