-
Notifications
You must be signed in to change notification settings - Fork 60
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. Improve types.
- Loading branch information
1 parent
235fd1c
commit 7167986
Showing
12 changed files
with
324 additions
and
29 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,2 +1,8 @@ | ||
import Gigya from './lib/gigya'; | ||
import { Gigya } from './lib/gigya'; | ||
|
||
export { Gigya } from './lib/gigya'; | ||
export { GigyaResponse } from './lib/interfaces/gigya-response'; | ||
export { ErrorCode } from './lib/interfaces/error-code'; | ||
export { SessionExpirationEnum as SessionExpiration } from './lib/interfaces/session-expiration'; | ||
|
||
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
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,63 @@ | ||
import Gigya from './gigya'; | ||
import GigyaResponse from './interfaces/gigya-response'; | ||
|
||
export class IdP { | ||
constructor(protected gigya: Gigya) { | ||
} | ||
|
||
/** | ||
* This API deletes a SAML Identity Provider (IdP). | ||
* | ||
* @see http://developers.gigya.com/display/GD/fidm.saml.idp.delIdP+REST | ||
*/ | ||
public delIdP(params: any) { | ||
return this.gigya.request('fidm.saml.idp.delIdP', params); | ||
} | ||
|
||
/** | ||
* This API retrieves the Gigya site configuration for SAML. | ||
* | ||
* @see http://developers.gigya.com/display/GD/fidm.saml.idp.getConfig+REST | ||
*/ | ||
public getConfig(params: any) { | ||
return this.gigya.request<any>('fidm.saml.idp.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.idp.getRegisteredIdPs+REST | ||
*/ | ||
public getRegisteredIdPs(params: any) { | ||
return this.gigya.request<any>('fidm.saml.idp.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.idp.importIdPMetadata+REST | ||
*/ | ||
public importIdPMetadata(params: any) { | ||
return this.gigya.request<any>('fidm.saml.idp.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.idp.registerIdP+REST | ||
*/ | ||
public registerIdP(params: any) { | ||
return this.gigya.request('fidm.saml.idp.registerIdP', params); | ||
} | ||
|
||
/** | ||
* This API updates the Gigya SAML site configuration. | ||
* | ||
* @see http://developers.gigya.com/display/GD/fidm.saml.idp.setConfig+REST | ||
*/ | ||
public setConfig(params: any) { | ||
return this.gigya.request('fidm.saml.idp.setConfig', params); | ||
} | ||
} | ||
|
||
export default IdP; |
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
Oops, something went wrong.