-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation and Auth? #82
Comments
Hi Andy, Can you be more specific what exactly you need? Regarding documentation: Regarding authentication: |
user authentication on the web ui. I want to see if we can use the REST API to monitor pcs. I have pcs installed and the web ui is running but I'm not able to authenticate. I can access the landing page which tells you how to build pcs-web-ui and every other page is saying If you can provide an example to authenticate, that'll be great! |
Hi Andy, Thanks for mentioning your intention to use the REST API. I'm not sure about your installation because if you pcs-web-ui is running you shouldn't get the page with information about building pcs-web-ui. However, if you just need conversation between your scripts and backend, you can use something like this: curl --insecure --data "username={username}&password={password}" --cookie-jar cookie.txt https://node1:2224/ui/login
curl --insecure --cookie cookie.txt --header "X-Requested-With: XMLHttpRequest" https://node1:2224/managec/cluster-name/cluster_status Where:
|
Can someone point out where the docs are?
How does authentication work? Can someone provide examples?
The text was updated successfully, but these errors were encountered: