-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add additional namespaces and improve types.
- Loading branch information
1 parent
1f8527e
commit 6bc2864
Showing
12 changed files
with
426 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
|
||
dist/ | ||
node_modules/ | ||
node_modules/ | ||
npm-debug.log |
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,11 @@ | ||
// Place your settings in this file to overwrite default and user settings. | ||
{ | ||
"search.exclude": { | ||
"node_modules": true, | ||
"dist": true | ||
}, | ||
"files.exclude": { | ||
"node_modules": true, | ||
"dist": true | ||
} | ||
} |
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 |
---|---|---|
@@ -1,3 +1,2 @@ | ||
import Gigya from './lib/gigya'; | ||
export * from './lib/gigya'; | ||
export default Gigya; |
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
File renamed without changes.
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,81 @@ | ||
import Gigya from './gigya'; | ||
import GigyaResponse from './interfaces/gigya-response'; | ||
|
||
export class OP { | ||
constructor(protected gigya: Gigya) { | ||
} | ||
|
||
/** | ||
* This API deletes an existing OP configuration. | ||
* | ||
* @see http://developers.gigya.com/display/GD/fidm.oidc.op.clearConfig+REST | ||
*/ | ||
public clearConfig(params: any) { | ||
return this.gigya.request('fidm.oidc.op.clearConfig', params); | ||
} | ||
|
||
/** | ||
* This API registers and configures a new RP for the OP . | ||
* | ||
* @see http://developers.gigya.com/display/GD/fidm.oidc.op.createRP+REST | ||
*/ | ||
public createRP(params: any) { | ||
return this.gigya.request('fidm.oidc.op.createRP', params); | ||
} | ||
|
||
/** | ||
* This API deletes an existing OP configuration. | ||
* | ||
* @see http://developers.gigya.com/display/GD/fidm.oidc.op.delRP+REST | ||
*/ | ||
public delRP(params: any) { | ||
return this.gigya.request('fidm.oidc.op.delRP', params); | ||
} | ||
|
||
/** | ||
* This API retrieves the site OP configuration relevant for all clients/relying-parties of the site. | ||
* | ||
* @see http://developers.gigya.com/display/GD/fidm.oidc.op.getConfig+REST | ||
*/ | ||
public getConfig(params: any) { | ||
return this.gigya.request('fidm.oidc.op.getConfig', params); | ||
} | ||
|
||
/** | ||
* This API returns the configuration data for a specified RP . | ||
* | ||
* @see http://developers.gigya.com/display/GD/fidm.oidc.op.getRP+REST | ||
*/ | ||
public getRP(params: any) { | ||
return this.gigya.request('fidm.oidc.op.getRP', params); | ||
} | ||
|
||
/** | ||
* This API Returns all the currently registered RPs for the OP . | ||
* | ||
* @see http://developers.gigya.com/display/GD/fidm.oidc.op.getRPs+REST | ||
*/ | ||
public getRPs(params: any) { | ||
return this.gigya.request('fidm.oidc.op.getRPs', params); | ||
} | ||
|
||
/** | ||
* This API initiates the OP functionality for your site. The configuration of the OP is relevant to all of the site's RPs . | ||
* | ||
* @see http://developers.gigya.com/display/GD/fidm.oidc.op.setConfig+REST | ||
*/ | ||
public setConfig(params: any) { | ||
return this.gigya.request('fidm.oidc.op.setConfig', params); | ||
} | ||
|
||
/** | ||
* This API updates the configuration of an existing RP configured on the OP. | ||
* | ||
* @see http://developers.gigya.com/display/GD/fidm.oidc.op.updateRP+REST | ||
*/ | ||
public updateRP(params: any) { | ||
return this.gigya.request('fidm.oidc.op.updateRP', params); | ||
} | ||
} | ||
|
||
export default OP; |
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,13 @@ | ||
import Gigya from './gigya'; | ||
import GigyaResponse from './interfaces/gigya-response'; | ||
import OP from './fidm.oidc.op'; | ||
|
||
export class OIDC { | ||
public readonly op: OP; | ||
|
||
constructor(protected gigya: Gigya) { | ||
this.op = new OP(gigya); | ||
} | ||
} | ||
|
||
export default OIDC; |
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,63 @@ | ||
import Gigya from './gigya'; | ||
import GigyaResponse from './interfaces/gigya-response'; | ||
|
||
export class SAML { | ||
constructor(protected gigya: Gigya) { | ||
} | ||
|
||
/** | ||
* This API deletes a SAML Identity Provider (IdP). | ||
* | ||
* @see http://developers.gigya.com/display/GD/fidm.saml.delIdP+REST | ||
*/ | ||
public delIdP(params: any) { | ||
return this.gigya.request('fidm.saml.delIdP', params); | ||
} | ||
|
||
/** | ||
* This API retrieves the Gigya site configuration for SAML. | ||
* | ||
* @see http://developers.gigya.com/display/GD/fidm.saml.getConfig+REST | ||
*/ | ||
public getConfig(params: any) { | ||
return this.gigya.request('fidm.saml.getConfig', params); | ||
} | ||
|
||
/** | ||
* This API retrieves all the SAML IdP configuration objects that are defined for the site. | ||
* | ||
* @see http://developers.gigya.com/display/GD/fidm.saml.getRegisteredIdPs+REST | ||
*/ | ||
public getRegisteredIdPs(params: any) { | ||
return this.gigya.request('fidm.saml.getRegisteredIdPs', params); | ||
} | ||
|
||
/** | ||
* This API imports a SAML Identity Provider (IdP) configuration from a SAML metadata XML. | ||
* | ||
* @see http://developers.gigya.com/display/GD/fidm.saml.importIdPMetadata+REST | ||
*/ | ||
public importIdPMetadata(params: any) { | ||
return this.gigya.request('fidm.saml.importIdPMetadata', params); | ||
} | ||
|
||
/** | ||
* This API updates or registers a SAML configuration for a specific Identity Provider (IdP). | ||
* | ||
* @see http://developers.gigya.com/display/GD/fidm.saml.registerIdP+REST | ||
*/ | ||
public registerIdP(params: any) { | ||
return this.gigya.request('fidm.saml.registerIdP', params); | ||
} | ||
|
||
/** | ||
* This API updates the Gigya SAML site configuration. | ||
* | ||
* @see http://developers.gigya.com/display/GD/fidm.saml.setConfig+REST | ||
*/ | ||
public setConfig(params: any) { | ||
return this.gigya.request('fidm.saml.setConfig', params); | ||
} | ||
} | ||
|
||
export default SAML; |
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,16 @@ | ||
import Gigya from './gigya'; | ||
import GigyaResponse from './interfaces/gigya-response'; | ||
import OIDC from './fidm.oidc'; | ||
import SAML from './fidm.saml'; | ||
|
||
export class FIDM { | ||
public readonly oidc: OIDC; | ||
public readonly saml: SAML; | ||
|
||
constructor(protected gigya: Gigya) { | ||
this.oidc = new OIDC(gigya); | ||
this.saml = new SAML(gigya); | ||
} | ||
} | ||
|
||
export default FIDM; |
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
Oops, something went wrong.