Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -959,10 +959,9 @@ api:
consentFile: consentFile.json
staticUserDataProvider:
users:
- user:
username: john
password: secret
email: john@predic8.de
- username: john
password: secret
email: john@predic8.de
staticClientList:
clients:
- clientId: abc
Expand Down Expand Up @@ -992,12 +991,10 @@ api:
flow:
- basicAuthentication:
users:
- user:
username: alice
password: secret
- user:
username: bob
password: secret
- username: alice
password: secret
- username: bob
password: secret
target:
url: https://api.predic8.de
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,6 @@ private boolean shouldInlineListItems(MainInfo main, ChildElementInfo cei) {

if (ei.getAnnotation().collapsed()) return false;
if (ei.getAnnotation().noEnvelope()) return false;
if (ei.isString()) return false;

return hasAnyConfigurableProperty(ei, main);
}
Expand All @@ -525,6 +524,7 @@ private boolean hasAnyConfigurableProperty(ElementInfo ei, MainInfo main) {
.anyMatch(ai -> !"id".equals(ai.getXMLName()))
|| ei.getTci() != null
|| !ei.getChildElementSpecs().isEmpty()
|| ei.getOai() != null
|| hasComponentChild(ei, main);
}

Expand Down
10 changes: 4 additions & 6 deletions distribution/examples/security/basic-auth/simple/apis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ api:
flow:
- basicAuthentication:
users:
- user:
username: alice
password: membrane
- user:
username: bob
password: membrane2025
- username: alice
password: membrane
- username: bob
password: membrane2025
target:
url: https://api.predic8.de

Expand Down
7 changes: 3 additions & 4 deletions distribution/examples/security/login/apis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ api:
location: ./dialog
staticUserDataProvider:
users:
- user:
username: john
password: password
secret: abcdefghijklmnop
- username: john
password: password
secret: abcdefghijklmnop
totpTokenProvider: {}
target:
host: membrane-soa.org
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ api:
# UserDataProvider is exchangeable, e.g. for a database table
staticUserDataProvider:
users:
- user:
username: john
password: password
email: john@predic8.de
- username: john
password: password
email: john@predic8.de
staticClientList:
clients:
- clientId: abc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ api:
# UserDataProvider is exchangeable, e.g. for a database table
staticUserDataProvider:
users:
- user:
username: john
password: password
email: john@predic8.de
- username: john
password: password
email: john@predic8.de
staticClientList:
clients:
- clientId: abc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ api:
# UserDataProvider is exchangeable, e.g. for a database table
staticUserDataProvider:
users:
- user:
username: john
password: password
email: john@predic8.de
- username: john
password: password
email: john@predic8.de
staticClientList:
clients:
- client:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ api:
# UserDataProvider is exchangeable, e.g. for a database table
staticUserDataProvider:
users:
- user:
username: john
password: password
email: john@predic8.de
- username: john
password: password
email: john@predic8.de
staticClientList:
clients:
- clientId: abc
Expand Down
5 changes: 2 additions & 3 deletions distribution/examples/websockets/websocket-stomp/apis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ api:
flow:
- basicAuthentication:
users:
- user:
username: admin
password: membrane
- username: admin
password: membrane
- adminConsole: {}
5 changes: 2 additions & 3 deletions distribution/router/conf/apis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ api:
# Protect the Admin Console using authentication (Basic, OAuth2, ACL, or none).
- basicAuthentication:
users:
- user:
username: admin
password: admin
- username: admin
password: admin
- adminConsole: {}
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ api:
# Protect the Admin Console using authentication (Basic, OAuth2, ACL, or none).
- basicAuthentication:
users:
- user:
username: admin
password: admin
- username: admin
password: admin
- adminConsole:
readOnly: true

Expand Down
Loading