@fonoster/identity-client 0.20.1 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +6 -0
- package/dist/index.js +8 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -99,6 +99,12 @@ export declare class IdentityClient {
|
|
|
99
99
|
}>;
|
|
100
100
|
exchangeCredentials(request: ExchangeCredentialsRequest): Promise<ExchangeResponse>;
|
|
101
101
|
exchangeRefreshToken(refreshToken: string): Promise<ExchangeResponse>;
|
|
102
|
+
/**
|
|
103
|
+
* Exchange a workspace API key (accessKeyId + accessKeySecret) for tokens.
|
|
104
|
+
* Intended for unattended, server-to-server integrations that cannot perform
|
|
105
|
+
* an interactive credentials login.
|
|
106
|
+
*/
|
|
107
|
+
exchangeApiKey(accessKeyId: string, accessKeySecret: string): Promise<ExchangeResponse>;
|
|
102
108
|
/** Exchange an OAuth2 authorization code for tokens (sign in). */
|
|
103
109
|
exchangeOauth2Code(provider: Oauth2Provider, code: string): Promise<ExchangeResponse>;
|
|
104
110
|
/** Create an account from an OAuth2 authorization code, returning tokens (sign up). */
|
package/dist/index.js
CHANGED
|
@@ -136,6 +136,14 @@ class IdentityClient {
|
|
|
136
136
|
exchangeRefreshToken(refreshToken) {
|
|
137
137
|
return this.unary("exchangeRefreshToken", { refreshToken });
|
|
138
138
|
}
|
|
139
|
+
/**
|
|
140
|
+
* Exchange a workspace API key (accessKeyId + accessKeySecret) for tokens.
|
|
141
|
+
* Intended for unattended, server-to-server integrations that cannot perform
|
|
142
|
+
* an interactive credentials login.
|
|
143
|
+
*/
|
|
144
|
+
exchangeApiKey(accessKeyId, accessKeySecret) {
|
|
145
|
+
return this.unary("exchangeApiKey", { accessKeyId, accessKeySecret });
|
|
146
|
+
}
|
|
139
147
|
/** Exchange an OAuth2 authorization code for tokens (sign in). */
|
|
140
148
|
exchangeOauth2Code(provider, code) {
|
|
141
149
|
return this.unary("exchangeOauth2Code", { provider, code });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fonoster/identity-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "Lightweight client for the Fonoster Identity gRPC service",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index",
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "34139b12d44bb6c59eb5cc9f1083fbcfaa61b76e"
|
|
32
32
|
}
|