@@ -219,9 +219,10 @@ satellites:
219
219
The `auth` parameter is optional and allows you to use registries that are not public and must be accessed through an authentication.
220
220
The parameter is the way for you to tell composer how to authenticate to the registry server.
221
221
222
- Each auth can have the following configuration fields :
223
- - `url` : the url of your repository
224
- - `token` : when you use a connection via token, you must use this field
222
+ # #### HTTP Basic Authentication
223
+
224
+ HTTP Basic authentication requires three elements : a `url`, a `username` and a `password`. This type of authentication sends
225
+ this information encoded in Base64 in the HTTP request header.
225
226
226
227
` ` ` yaml
227
228
version: '0.3'
@@ -231,10 +232,68 @@ satellites:
231
232
# ...
232
233
composer:
233
234
auth:
234
- - { url: 'http-basic.kiboko.repo.packagist.com', token: '0fe8828b23371406295ca2b72634c0a3df2431c4787df0173ea051a0c639' }
235
- ` ` `
235
+ - { type: 'http-basic', url: 'xxxx.repo.packagist.com', token: '<token>' }
236
+ ` ` `
237
+
238
+ # #### HTTP Bearer Authentication
239
+
240
+ HTTP Bearer authentication requires a `domain` and a `token`. This token is included in the HTTP request header to authorize access.
241
+
242
+ ` ` ` yaml
243
+ version: '0.3'
244
+ satellites:
245
+ my_satellite:
246
+ label: 'My first Satellite'
247
+ # ...
248
+ composer:
249
+ auth:
250
+ - { type: 'http-bearer', url: 'xxxx.repo.packagist.com', token: '<token>' }
251
+ ` ` `
252
+
253
+ # #### GitLab OAuth
236
254
237
- > Notice : Currently, the only way to identify to a repository is to use tokens. Support for other authentication methods is in our backlog.
255
+ GitLab OAuth authentication requires a `token`. The service url is optional; by default it is set to https://gitlab.com.
256
+
257
+ ` ` ` yaml
258
+ version: '0.3'
259
+ satellites:
260
+ my_satellite:
261
+ label: 'My first Satellite'
262
+ # ...
263
+ composer:
264
+ auth:
265
+ - { type: 'gitlab-oauth', token: '<token>' }
266
+ ` ` `
267
+
268
+ # #### GitLab Token
269
+
270
+ GitLab Token authentication requires a `token`. The service url is optional; by default it is set to https://gitlab.com.
271
+
272
+ ` ` ` yaml
273
+ version: '0.3'
274
+ satellites:
275
+ my_satellite:
276
+ label: 'My first Satellite'
277
+ # ...
278
+ composer:
279
+ auth:
280
+ - { type: 'gitlab-token', token: '<token>' }
281
+ ` ` `
282
+
283
+ # #### GitHub OAuth
284
+
285
+ GitHub OAuth authentication requires a `token`. The service url is optional; by default, it is set to https://github.com.
286
+
287
+ ` ` ` yaml
288
+ version: '0.3'
289
+ satellites:
290
+ my_satellite:
291
+ label: 'My first Satellite'
292
+ # ...
293
+ composer:
294
+ auth:
295
+ - { type: 'gitlab-token', token: '<token>' }
296
+ ` ` `
238
297
239
298
# ## Setting up the runtime
240
299
0 commit comments