forked from Authress/authress-sdk.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/release/1.2'
- Loading branch information
Showing
18 changed files
with
697 additions
and
57 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,5 @@ | ||
{ | ||
"cSpell.words": [ | ||
"dtos" | ||
] | ||
} |
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
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,58 @@ | ||
/* eslint-disable node/no-missing-import */ | ||
import { Response } from '../response'; | ||
import { Connection, UserConnectionCredentials, ConnectionCollection } from './dtos'; | ||
|
||
/** | ||
* ConnectionsApi | ||
* @export | ||
*/ | ||
export interface ConnectionsApi { | ||
/** | ||
* Specify identity connection details for Authress identity aggregation. | ||
* @summary Create SSO connection | ||
* @param {Connection} body | ||
* @throws {RequiredError} | ||
*/ | ||
createConnection(body: Connection): Promise<Response<Connection>>; | ||
|
||
/** | ||
* Delete an identity connection details for Authress identity aggregation. | ||
* @summary Delete SSO connection | ||
* @param {string} connectionId The connection identifier. | ||
* @throws {RequiredError} | ||
*/ | ||
deleteConnection(connectionId: string): Promise<Response<void>>; | ||
|
||
/** | ||
* Specify identity connection details for Authress identity aggregation. | ||
* @summary Update SSO connection | ||
* @param {Connection} body | ||
* @param {string} connectionId The connection identifier. | ||
* @throws {RequiredError} | ||
*/ | ||
updateConnection(connectionId: string, body: Connection): Promise<Response<Connection>>; | ||
|
||
/** | ||
* Get the identity connection details for Authress identity aggregation. | ||
* @summary Retrieve SSO connection | ||
* @param {string} connectionId The connection identifier. | ||
* @throws {RequiredError} | ||
*/ | ||
getConnection(connectionId: string): Promise<Response<Connection>>; | ||
|
||
/** | ||
* Returns a paginated connection list for the account. Only connections the user has access to are returned. | ||
* @summary List SSO connections | ||
* @throws {RequiredError} | ||
*/ | ||
getConnections(): Promise<Response<ConnectionCollection>>; | ||
|
||
/** | ||
* Get the credentials for the user that were generated as part of the latest user login flow. Returns an access token that can be used with originating connection provider, based on the original scopes and approved permissions by that service. | ||
* @summary Get the user credentials for this connection. | ||
* @param {string} connectionId The connection to get the stored credentials. | ||
* @param {string} [userId] The user to get the stored credentials, if not specified will automatically be populated by the token specified in the request to Authress. | ||
* @throws {ArgumentRequiredError} | ||
*/ | ||
getConnectionCredentials(connectionId: string, userId?: string): Promise<Response<UserConnectionCredentials>>; | ||
} |
Oops, something went wrong.