Question: Should Proxy Authentication compliment Cookies Authentication? #4693
Replies: 8 comments 8 replies
-
I mean that GET request for the session, after POST to Am I doing something wrong? |
Beta Was this translation helpful? Give feedback.
-
And when requesting same user with Proxy auth it says: Why? What is the reason for Proxy Authentication then? Or should it behave same as Cookies Auth and allow to return user info? |
Beta Was this translation helpful? Give feedback.
-
Hi, here are more infos about Proxy Authentication. If not configured otherwise, only users of role |
Beta Was this translation helpful? Give feedback.
-
First, check if your proxy auth is working (above you authenticated with cookie authentication) It should look like this ( {
"ok": true,
"userCtx": {
"name": "proxy",
"roles": [
"PROXY-USER-ROLE1",
"PROXY-USER-ROLE2"
]
},
"info": {
"authentication_handlers": [
"proxy",
"cookie",
"default"
],
"authenticated": "proxy"
}
} The important part is |
Beta Was this translation helpful? Give feedback.
-
The authentication handlers cannot be combined. you seem to have configured things correctly and your request works for me when I apply the same settings;
|
Beta Was this translation helpful? Give feedback.
-
For cookie authentication you need to know a secret (a password) stored in CouchDB. For proxy authentication you need to know a secret (the proxy secret) stored in CouchDB. There isn't any obvious greater protection in a request needing to know two secrets instead of one. It doesn't make sense to me to require multiple authentication handlers for a request, at least not the two in this example. |
Beta Was this translation helpful? Give feedback.
-
Back to the topic of Proxy Authentication in CouchDB @rnewson - what are these "proxy" users and how can I manage them in CouchDB? |
Beta Was this translation helpful? Give feedback.
-
The sole point of the proxy handler is that users and roles are controlled externally (by something that knows the shared secret or is proxying all requests to couchdb to add the x-auth headers), so CouchDB doesn't know the users or roles and does not manage them by design. |
Beta Was this translation helpful? Give feedback.
-
With following config settings fro auth:
Request to
_users
database only possible with default (Basic) or cookies authentication and "Proxy" (headers withX-Auth-CouchDB-Token/Roles/UserName
) has no effect whatsoever.How to enable Proxy Authentication to be an additional layer of security when
X-Auth-CouchDB-Token
is mandatory for request to succeed?Beta Was this translation helpful? Give feedback.
All reactions