Skip to content

Commit 1f44f69

Browse files
committed
Use Symfony's when@dev to disable oidc in dev mode
1 parent 7cf1f1e commit 1f44f69

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ AZURE_AZ_OIDC_REDIRECT_URI=https://itksites.local.itkdev.dk/openid-connect/gener
7070
###< itk-dev/openid-connect-bundle ###
7171
```
7272

73+
> [!NOTE]
74+
> In the `dev` environment the main firewall security is disabled
75+
> (`security.yaml``when@dev`), so authentication is not required.
76+
> This is because the current AAK OIDC setup doesn't support `itksites.local.itkdev.dk`.
77+
7378
### Fixtures
7479

7580
There are not implemented on

config/packages/security.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ security:
4545
- { path: ^/admin, roles: ROLE_ADMIN }
4646
# - { path: ^/profile, roles: ROLE_USER }
4747

48+
# Current AAK OIDC setup doesn't support `itksites.local.itkdev.dk`
49+
when@dev:
50+
security:
51+
firewalls:
52+
main:
53+
security: false
54+
4855
when@test:
4956
security:
5057
password_hashers:

0 commit comments

Comments
 (0)