IdpProxyStub
Identity Provider Proxy Protocol Stub
Constructor Summary
Public Constructor | ||
public |
constructor(messageBus: messageBus, Domain: domain, identity: idpProxy) Constructor of the IdpProxy Stub The constructor add a listener in the messageBus received and start a web worker with the idpProxy received |
Method Summary
Public Methods | ||
public |
function that makes a request for an identity assertion to the web worker running the idpProxy |
|
public |
function that makes a request for a user identity to the web worker running the idpProxy |
|
public |
replyMessage(message: message, value: value) This function receives a message and a value. |
|
public |
requestToIdp(message: message) Function that see the intended method in the message received and call the respective function |
|
public |
Starts a web worker with the idpProxy javascipt file |
|
public |
function that makes a request to validate an identity assertion to the web worker running the idpProxy |
Public Constructors
public constructor(messageBus: messageBus, Domain: domain, identity: idpProxy) source
Constructor of the IdpProxy Stub The constructor add a listener in the messageBus received and start a web worker with the idpProxy received
Params:
Name | Type | Attribute | Description |
messageBus | messageBus | ||
Domain | domain | ||
identity | idpProxy | Provider Proxy javascript file |
Public Methods
public generate(parameters: params): Promise source
function that makes a request for an identity assertion to the web worker running the idpProxy
Params:
Name | Type | Attribute | Description |
parameters | params | received in the message. In this case contains the content, origin and usernamehint |
public login(parameters: params): Promise source
function that makes a request for a user identity to the web worker running the idpProxy
Params:
Name | Type | Attribute | Description |
parameters | params | received in the message. In this case contains the login scope |
public replyMessage(message: message, value: value) source
This function receives a message and a value. It replies the value to the sender of the message received
Params:
Name | Type | Attribute | Description |
message | message | received |
|
value | value | to include in the new message to send |
public requestToIdp(message: message) source
Function that see the intended method in the message received and call the respective function
Params:
Name | Type | Attribute | Description |
message | message | received in the messageBus |
public start(identity: idpProxy): string source
Starts a web worker with the idpProxy javascipt file
Params:
Name | Type | Attribute | Description |
identity | idpProxy | Provider Proxy javascript file |
public validate(parameters: params): Promise source
function that makes a request to validate an identity assertion to the web worker running the idpProxy
Params:
Name | Type | Attribute | Description |
parameters | params | received in the message. In this case contains the identity assertion and origin |
Return:
Promise | returns a promise with the identity assertion validation result, received by the idpProxy |