You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,6 +80,10 @@ Expose access to outside of cluster
80
80
For more info on this way of deploying (and alternatives) [see the docs here](https://quarkus.io/guides/deploying-to-openshift-s2i).
81
81
82
82
## Other Things
83
+
## The POST route for scores now has basic auth enabled on it
84
+
* So you will need to pass username/password in to POST scores
85
+
* You can disable it with an environment vairable (see the application.properties file)
86
+
83
87
## Running a MongoDB in OpenShift
84
88
This service won't function until it can store its data into a MongoDB. We can easily deploy one on OpenShift and have OpenShift provide service discovery. And then we configure this app's deployment with the user/password details for connecting to the DB.
I like to use a nice CLI tool called HTTPie. If you have it below are some useful commands.
100
+
101
+
### Testing POST with basic auth turned on
102
+
```
103
+
http -a dudash:123456 POST http://localhost:5000/scores score=1000 name=JAS
104
+
```
105
+
106
+
93
107
## Thanks and Credit
94
108
This service was built based on guidance from the [Quarkus example here](https://quarkus.io/guides/openapi-swaggerui#loading-openapi-schema-from-static-files).
0 commit comments