-
-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
133 changed files
with
9,041 additions
and
2,455 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,11 @@ node_modules | |
examples | ||
test | ||
@types | ||
types | ||
src | ||
docs | ||
yarn* | ||
.nyc_output | ||
.nyc_output | ||
.idea | ||
.travis.yml | ||
.github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
build | ||
.nyc_output | ||
node_modules | ||
types | ||
docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
interface Context extends ValidatorContext { | ||
} | ||
interface ValidatorContext { | ||
validate?: (xml: string) => Promise<any>; | ||
} | ||
export declare function getContext(): Context; | ||
export declare function setSchemaValidator(params: ValidatorContext): void; | ||
export {}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/** | ||
* @file binding-post.ts | ||
* @author tngan | ||
* @desc Binding-level API, declare the functions using POST binding | ||
*/ | ||
import { BindingContext } from "./entity"; | ||
/** | ||
* @desc Generate a base64 encoded login request | ||
* @param {string} referenceTagXPath reference uri | ||
* @param {object} entity object includes both idp and sp | ||
* @param {function} customTagReplacement used when developers have their own login response template | ||
*/ | ||
declare function base64LoginRequest(referenceTagXPath: string, entity: any, customTagReplacement?: (template: string) => BindingContext): BindingContext; | ||
/** | ||
* @desc Generate a base64 encoded login response | ||
* @param {object} requestInfo corresponding request, used to obtain the id | ||
* @param {object} entity object includes both idp and sp | ||
* @param {object} user current logged user (e.g. req.user) | ||
* @param {function} customTagReplacement used when developers have their own login response template | ||
* @param {boolean} encryptThenSign whether or not to encrypt then sign first (if signing). Defaults to sign-then-encrypt | ||
*/ | ||
declare function base64LoginResponse(requestInfo: any, entity: any, user?: any, customTagReplacement?: (template: string) => BindingContext, encryptThenSign?: boolean): Promise<BindingContext>; | ||
/** | ||
* @desc Generate a base64 encoded logout request | ||
* @param {object} user current logged user (e.g. req.user) | ||
* @param {string} referenceTagXPath reference uri | ||
* @param {object} entity object includes both idp and sp | ||
* @param {function} customTagReplacement used when developers have their own login response template | ||
* @return {string} base64 encoded request | ||
*/ | ||
declare function base64LogoutRequest(user: any, referenceTagXPath: any, entity: any, customTagReplacement?: (template: string) => BindingContext): BindingContext; | ||
/** | ||
* @desc Generate a base64 encoded logout response | ||
* @param {object} requestInfo corresponding request, used to obtain the id | ||
* @param {object} entity object includes both idp and sp | ||
* @param {function} customTagReplacement used when developers have their own login response template | ||
*/ | ||
declare function base64LogoutResponse(requestInfo: any, entity: any, customTagReplacement: (template: string) => BindingContext): BindingContext; | ||
declare const postBinding: { | ||
base64LoginRequest: typeof base64LoginRequest; | ||
base64LoginResponse: typeof base64LoginResponse; | ||
base64LogoutRequest: typeof base64LogoutRequest; | ||
base64LogoutResponse: typeof base64LogoutResponse; | ||
}; | ||
export default postBinding; |
Oops, something went wrong.