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
- After Keycloak is up, open a second terminal window and run
92
132
`docker compose up csaf-keycloak-cli` to import a realm with all the users
93
133
and roles already set up.
94
134
- To set up our CouchDB server open `http://127.0.0.1:5984/_utils/#/setup`
95
-
and run the [Single Node Setup](https://docs.couchdb.org/en/stable/setup/single-node.html). This creates databases like **_users** and
96
-
stops CouchDB from spamming our logs
135
+
and run the [Single Node Setup](https://docs.couchdb.org/en/stable/setup/single-node.html). This creates databases like **_users** and stops CouchDB from spamming our logs (Admin credentials from .env)
136
+
- Create a database in CouchDB with the name specified in `CSAF_COUCHDB_DBNAME`
97
137
- Open `http://localhost:9000/` and log in with the admin user.
98
138
- The port is defined in .env - CSAF_KEYCLOAK_PORT, default 9000
139
+
- Select `CSAF`-Realm
99
140
- On the left side, navigate to "Clients" and select the Secvisogram client.
100
141
- Select the **Credentials** tab and copy the Secret. This is our
101
142
`CSAF_CLIENT_SECRET` environment variable.
102
143
-[Generate a cookie secret](https://oauth2-proxy.github.io/oauth2-proxy/docs/configuration/overview/#generating-a-cookie-secret)
103
144
and paste it in `CSAF_COOKIE_SECRET`.
104
-
- Create a database in CouchDB with the name specified in `CSAF_COUCHDB_DBNAME`
105
145
- restart compose
106
146
- (required for exports) install [pandoc (tested with version 2.18)](https://pandoc.org/installing.html)
107
147
as well as [weasyprint (tested with version 56.0)](https://weasyprint.org/) and make sure both are in
108
148
your PATH
109
149
- (optional for exports) define the path to a company logo that should be used in the exports through the environment variable `CSAF_COMPANY_LOGO_PATH`. The path can either be relative to the project root or absolute. See .env.example file for an example.
110
150
111
151
You should now be able to start the spring boot application, navigate to
112
-
`localhost:4180/api/v1/about`, log in with one of the users and get a
152
+
`http://localhost/api/v1/about`, log in with one of the users and get a
113
153
response from the server.
114
-
The port is defined in .env - CSAF_APP_EXTERNAL_PORT, default 4180
154
+
155
+
You should now be able to access Secvisogram, navigate to `http://localhost/`.
`/oauth2/sign_out` is the logout URI from the OAUTH-Proxy. This will invalidate the session on the proxy. Then, a redirect to Keycloak (`http://localhost/realms/csaf/protocol/openid-connect/logout?post_logout_redirect_uri=http%3A%2F%2Flocalhost&client_id=secvisogram`) is necessary to log out from the session on Keyloak. Subsequently, there is a redirect back to Secvisogram (`localhost`).
0 commit comments