trustification / trustify

Apache License 2.0
10 stars 19 forks source link

Update README with reliable instructions to start Trustify #373

Closed carlosthe19916 closed 4 months ago

carlosthe19916 commented 4 months ago

I followed the README file and executed cargo run --bin trustd and all the api rest endpoints under /api/v1 has security in place (generate 401) error while the UI didn't receive the proper configuration for initializing the Login flow. Could we update the README with proper commands (specially the PM mode please)

ctron commented 4 months ago

I think it works as expected. The UI gets initialize with auth enabled. However, the embedded OIDC server does not ask for a password. Still, the UI sends a bearer token to the backend. When using the API directly, this must be sent as well.

carlosthe19916 commented 4 months ago

Thanks for your reply @ctron

I still have one issue, how could I get access to the Swagger UI? I tried http://localhost:8080/openapi and I get the following error:

Screenshot from 2024-06-05 15-07-52

I also tried http://localhost:8080/swagger-ui/ as stated in the README but it didn't work either. Which is the proper URL for swagger? Or might it be that is is a bug?

ctron commented 4 months ago

I had some issues with that as well, I figured out the proper URL is: http://localhost:8080/openapi/ (note the last slash). I will try to find the locations in the docs and update those.