@cratis/chronicle.contracts 15.41.0 → 16.0.1
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/README.md +4 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -157,12 +157,12 @@ const connection = new ChronicleConnection({
|
|
|
157
157
|
// With custom authority
|
|
158
158
|
const connection = new ChronicleConnection({
|
|
159
159
|
connectionString: 'chronicle://client-id:client-secret@localhost:35000',
|
|
160
|
-
authority: 'https://my-auth-server.com'
|
|
161
|
-
managementPort: 8080 // Optional, defaults to 8080
|
|
160
|
+
authority: 'https://my-auth-server.com'
|
|
162
161
|
});
|
|
163
162
|
```
|
|
164
163
|
|
|
165
|
-
The token is
|
|
164
|
+
The token endpoint is served on the same port as gRPC (the single Chronicle port). The token is
|
|
165
|
+
automatically included as a Bearer token in the authorization header for all gRPC calls.
|
|
166
166
|
|
|
167
167
|
#### API Key
|
|
168
168
|
|
|
@@ -210,10 +210,7 @@ const connection = new ChronicleConnection({
|
|
|
210
210
|
|
|
211
211
|
// Optional: Custom authentication authority URL
|
|
212
212
|
// If not set, uses Chronicle server as the authority
|
|
213
|
-
authority: 'https://my-auth-server.com'
|
|
214
|
-
|
|
215
|
-
// Optional: Management port for authentication endpoint (defaults to 8080)
|
|
216
|
-
managementPort: 8080
|
|
213
|
+
authority: 'https://my-auth-server.com'
|
|
217
214
|
});
|
|
218
215
|
```
|
|
219
216
|
|