Comments (5)
Hey @numbnut, Apologies for the delayed response, but we've just been a tad busy. Argus will always require a login via the /auth webservice endpoint. The default UI is wired to that endpoint. If you're accessing it through the web UI, you will always get a login form.
Now, you can effectively turn off authentication, by binding the NoAuthService implementation. You'll still get the login form, but you can type in any username and password. To enable the NoAuthService implementation use the following configuration:
In the main configuration file
service.binding.auth=com.salesforce.dva.argus.service.auth.NoAuthService
service.config.auth=<path/to/auth/service/specific/configuration/file>
In the auth specific configuration file add this property
If set to true, all users will get privileged access. If omitted, it defaults to 'false'
service.property.auth.noauthservice.privileged=false
A couple of things to consider:
- If you are deploying over https, you should build Argus so that it requires secure cookies. You do that by setting the build.property.secure.cookies=true in argus-build.properties and rebuild.
- If you're hosting the UI and web services on separate hosts, make sure your web service hosts allow cross site traffic. E.g. for Tomcat, make sure you have the CORS filter installed and configured to allow cross site POST, PUT, DELETE, GET, HEAD & OPTIONS.
http://stackoverflow.com/questions/16296145/set-cors-header-in-tomcat
from argus.
Hi @saaja-sfdc, thanks for your response. Just to let you know the context. I am only trying to setup a non production system. Security related topics are not relevant for me at the moment, but I will keep them in mind.
I adapted the configuration as you mentioned. According to the getting started documentation I did it in one configuration file and not as you mentioned a second one for the auth service. I hope that's ok.
The behavior of the application is still the same and I am still wondering why the frontend app only sends an Http Options query on pushing the Login button. The following image shows the behavior.
There is no Post request to the /auth endpoint, which I don't understand. Can you explain that?
Is there somewhere a documentation about the REST Api?
from argus.
@numbnut
From your screenshot basically there are some possibilities. You may want to rule out one by one. (I just ran through a similar issues)
1, Seeing ArgusUI login page doesn't mean ArgusWS is up. Go to http://localhost:8080/argusws/help
see if you are able to see a json return. If not, go check tomcat start logs, there might be a error there.
2. CROS is usually a cause. But it should showed up on your browser console.
from argus.
@aertoria thanks for your reply! I will check that on Monday, because I can't access my development environment at the moment.
I think 1. can be excluded since I checked that, but I will check it again. 2. is a good point. I excluded it because the REST service and the client app are both deployed on the same host, but they are listening on different ports. Maybe CORS is the problem. I will share the results of my further investigation.
from argus.
Thank you very much! It was the CORS problem. Now everything works as expected.
from argus.
Related Issues (20)
- Questions about deployment HOT 2
- Trigger UI does not match the wiki
- Error message on viewmetrics page disappears automatically
- Prettify button on view metrics page changes query HOT 1
- GROUP documentation lacking example/syntax
- Querying Histograms documentation is wrong HOT 1
- Argus-SDK PutResult - get*Count() methods return String. HOT 1
- Update dependencies to address CVE/CWEs
- Automate deployment of maven artifacts
- HBaseHistoryService and AsyncHbaseSchemaService need create hbase table manually? HOT 2
- Update auth page to be only about tokens HOT 2
- Stackoverflow error when using CachedTsdbService HOT 4
- Invalid metrics expression returns 500 HOT 1
- Fix code-example formatting in FILL section HOT 1
- Error in sending emails HOT 1
- Alerts are not evaluated until client is restarted HOT 3
- Format of Callback subscriptions HOT 3
- QUESTION: Are alert definition changes used immediately? HOT 2
- Implement prometheus-style tags filters HOT 1
- "endpoint" tag may contain invalid character in PerfFilter
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from argus.