GithubHelp home page GithubHelp logo

ArgusWeb can't login about argus HOT 5 CLOSED

salesforce avatar salesforce commented on May 22, 2024
ArgusWeb can't login

from argus.

Comments (5)

saaja-sfdc avatar saaja-sfdc commented on May 22, 2024

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:

  1. 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.
  2. 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.

numbnut avatar numbnut commented on May 22, 2024

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.
bildschirmfoto 2016-07-08 um 14 44 28 2
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.

aertoria avatar aertoria commented on May 22, 2024

@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.

numbnut avatar numbnut commented on May 22, 2024

@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.

numbnut avatar numbnut commented on May 22, 2024

Thank you very much! It was the CORS problem. Now everything works as expected.

from argus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.