Skip to content

Commit f5bd0ee

Browse files
committed
Added fixes after review
1 parent 786960b commit f5bd0ee

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

docs/dam/integration_with_dxp.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ Add the `ibexa_dam_oauth2_client_user` table to the database:
3737
php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/dam-user/src/bundle/Resources/config/schema.yaml | mysql -u <username> -p <database_name>
3838
```
3939

40-
Next, add technical users, required by DAM to your [[= product_name =]] instance.
40+
Next, create technical users, required by DAM to your [[= product_name =]] instance:
41+
42+
- `image-picker-reader` - with read permission
43+
- `imgage-picker-editor` - with edit/ delete permission
44+
45+
Both users have limited access to Media folder only.
4146

4247
To do it, first, import the migration file:
4348

@@ -59,8 +64,16 @@ Create OAuth2 client for the DXP user:
5964
php bin/console ibexa:dam:create-oauth2-client <client-name> <user-identifier>
6065
```
6166

67+
For example:
68+
69+
```bash
70+
php bin/console ibexa:dam:create-oauth2-client <acme> <image-picker-editor>
71+
```
72+
6273
## Override admin-ui
6374

75+
Override parameters for `admin_group` and use `site_group` scope to make them available under REST API.
76+
6477
Add the following configuration in the `yaml` file, for example, `ibexa_admin_ui_settings.yaml`:
6578

6679
??? note "`ibexa_admin_ui_settings.yaml`"
@@ -136,9 +149,9 @@ nelmio_cors:
136149
allow_headers: ['Content-Type', 'Authorization', 'X-HTTP-Method-Override']
137150
```
138151
139-
Next, in the `.env` file provide path with a regular expression:
152+
Next, in the `.env` file provide path with a regular expression and change the domain to yours:
140153

141-
`CORS_ALLOW_ORIGIN='^https?://(localhost|127\.0\.0\.1|(.+\.acme\.(com|eu)))?(:[0-9]+)?$'`
154+
`CORS_ALLOW_ORIGIN='^https?://(localhost|127\.0\.0\.1|(.+\.yourdomain\.(com|eu)))?(:[0-9]+)?$'`
142155

143156

144157
### Override `nelmio` settings

0 commit comments

Comments
 (0)