Replies: 6 comments 5 replies
-
To access privileged parts of the API you need to use Bearer token. See https://github.com/oracle/opengrok/wiki/Web-services#authenticationauthorization |
Beta Was this translation helpful? Give feedback.
-
Thank you @vladak ! Should anyone need the steps to implement a bearer token, you would add the following to the readonly-configuration.xml file:
Then run the indexer. And finally you would submit a request with the token using the header below?
|
Beta Was this translation helpful? Give feedback.
-
yep, that should work. |
Beta Was this translation helpful? Give feedback.
-
Hi, I tried using this, but doesn't seem to work for me. I suppose this should return my configuration. I followed the exact thing from here.
|
Beta Was this translation helpful? Give feedback.
-
It returns me nothing.
|
Beta Was this translation helpful? Give feedback.
-
I want to use this primarily for uploading the new config after reindexing, as currently I get some warnings when I index my sources, like -
|
Beta Was this translation helpful? Give feedback.
-
Hello,
Could really use some assistance! I am attempting to manage my OpenGrok configuration remotely using /source/api/v1/configuration, and I have precisely followed the steps outlined the HTTP Basic Authentication documentation.
https://github.com/oracle/opengrok/wiki/Authorization-based-on-HTTP-Basic-Authentication
I have also implemented HTTPS in my Tomcat 10 instance. Authentication works perfectly when using search, etc. over HTTPS from an external host. However, when calling https://192.xxx.xxx.xxx:8443/source/api/v1/configuration with basic authentication, I get a "HTTP Status 401 – Unauthorized". I am only able to access it from https://localhost:8443/source/api/v1/configuration.
I have tried to read through previous questions/issues about authentication, and I am stuck.
Any help would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions