Skip to content

Commit 6ae3357

Browse files
committed
Fix SRAM config even more
1 parent 31daf74 commit 6ae3357

File tree

4 files changed

+59
-38
lines changed

4 files changed

+59
-38
lines changed

core/docker-compose.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,19 @@ services:
5555
- ./mongo/:/docker-entrypoint-initdb.d/
5656
- openconext_mongodb:/bitnami/mongodb
5757
healthcheck:
58-
test:
59-
[
60-
"CMD",
61-
"mongosh",
62-
"-u",
63-
"managerw",
64-
"-p",
65-
"secret",
66-
"--eval",
67-
"db.stats().ok",
68-
"mongodb://127.0.0.1/manage",
69-
]
58+
test: ['CMD', 'true']
59+
# test:
60+
# [
61+
# "CMD",
62+
# "mongosh",
63+
# "-u",
64+
# "managerw",
65+
# "-p",
66+
# "secret",
67+
# "--eval",
68+
# "db.stats().ok",
69+
# "mongodb://127.0.0.1/manage",
70+
# ]
7071
interval: 10s
7172
timeout: 10s
7273
retries: 3
@@ -449,8 +450,6 @@ services:
449450
image: ghcr.io/surfscz/sram-sbs-server:main
450451
environment:
451452
TESTING: 1
452-
PROFILE: "local"
453-
ALLOW_MOCK_USER_API: 1
454453
volumes:
455454
- ./sbs/config:/opt/sbs/config
456455
networks:

core/sbs/config/config.yml

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -33,37 +33,24 @@ api_users:
3333
scopes: ["ipaddress"]
3434

3535
oidc:
36-
client_id: foo
37-
client_secret: echtgeheim
38-
audience: http://http://sbs.dev.openconext.local
39-
authorization_endpoint: http://http://sbs.dev.openconext.local/saml2sp/OIDC/authorization
40-
token_endpoint: http://http://sbs.dev.openconext.local/OIDC/token
41-
userinfo_endpoint: http://http://sbs.dev.openconext.local/OIDC/userinfo
42-
jwks_endpoint: http://http://sbs.dev.openconext.local/OIDC/jwks
36+
client_id: sbs.dev.openconext.local
37+
client_secret: secretsecret
38+
audience: sbs.dev.openconext.local
39+
verify_peer: False
40+
authorization_endpoint: https://connect.dev.openconext.local/oidc/authorize
41+
token_endpoint: https://connect.dev.openconext.local/oidc/token
42+
userinfo_endpoint: https://connect.dev.openconext.local/oidc/userinfo
43+
jwks_endpoint: https://connect.dev.openconext.local/oidc/certs
4344
#Note that the paths for these uri's is hardcoded and only domain and port differ per environment
44-
redirect_uri: http://http://sbs.dev.openconext.local/api/users/resume-session
45+
redirect_uri: https://sbs.dev.openconext.local/api/users/resume-session
4546
continue_eduteams_redirect_uri: http://sbs.dev.openconext.local/continue
4647
continue_eb_redirect_uri: https://engine.(.*)openconext.local
4748
second_factor_authentication_required: True
4849
totp_token_name: "SRAM local"
4950
# The client_id of SBS. Most likely to equal the oidc.client_id
5051
sram_service_entity_id: http://sbs.dev.openconext.local
51-
52-
5352
scopes:
54-
- profile
55-
- eduperson_scoped_affiliation
56-
- voperson_external_affiliation
57-
- email
58-
- ssh_public_key
59-
- eduperson_orcid
60-
- uid
61-
- voperson_external_id
62-
- eduperson_entitlement
63-
- eduperon_assurance
6453
- openid
65-
- eduperson_principal_name
66-
- voperson_id
6754

6855
base_scope: "test.sbs.local"
6956
entitlement_group_namespace: "urn:example:sbs"
@@ -107,6 +94,7 @@ base_server_url: http://sbs.dev.openconext.local
10794
wiki_link: https://edu.nl/vw3jx
10895

10996
admin_users:
97+
- uid: "urn:collab:person:example.com:admin"
11098
- uid: "urn:john"
11199
- uid: "urn:rocky"
112100
- uid: "urn:mike"
@@ -139,6 +127,7 @@ retention:
139127
metadata:
140128
idp_url: https://metadata.surfconext.nl/idps-metadata.xml
141129
parse_at_startup: False
130+
scope_override: {}
142131

143132
service_bus:
144133
enabled: False

core/sbs/docker-compose.override.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ services:
4141
image: ghcr.io/surfscz/sram-sbs-server:main
4242
environment:
4343
TESTING: 1
44-
PROFILE: "local"
45-
ALLOW_MOCK_USER_API: 1
4644
volumes:
4745
- ./sbs/config:/opt/sbs/config
4846
- ${SBS_CODE_PATH}/server:/opt/sbs/server

core/scripts/sbs.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"version": 0,
3+
"type": "oidc10_rp",
4+
"data": {
5+
"entityid": "sbs.dev.openconext.local",
6+
"state": "prodaccepted",
7+
"allowedall": true,
8+
"allowedResourceServers": [
9+
{
10+
"name": "sbs.dev.openconext.local"
11+
}
12+
],
13+
"arp": {
14+
"enabled": false,
15+
"attributes": {}
16+
},
17+
"metaDataFields": {
18+
"NameIDFormat": "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified",
19+
"name:en": "SBS Server",
20+
"name:nl": "SBS Server",
21+
"description:en": "SRAM SBS server",
22+
"OrganizationName:en": "OpenConext DEV",
23+
"secret": "secretsecret",
24+
"grants": [
25+
"authorization_code",
26+
"refresh_token"
27+
],
28+
"redirectUrls": [
29+
"https://sbs.dev.openconext.local/api/users/resume-session"
30+
]
31+
},
32+
"allowedEntities": [],
33+
"revisionnote": "Initial import"
34+
}
35+
}

0 commit comments

Comments
 (0)