I am working on a service which requires authentication.
I would like to base the authentication on my Redmine and grant access to registered users which are members in a private project.
The membership I have figured out:
curl -v -u account:secret \
https://myredmine/projects/private/memberships.json
But how to find out if a user can authenticate?
Use
/users/current.json:It will return 401 if the user fails to login.
Add
?include=membershipsto the URL to retrieve a list of associated projects.I don’t think it will work with OpenID though.