-
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
Feature Request: allow querying password_policy validate api #141
Comments
The share API was contributed by @aleixq in #61. Hm, https://github.com/nextcloud/password_policy is an external app. Maybe it would really be a better idea to talk to the developers of the app about CORS policies to make the app accessible in browsers. |
Maybe just try to open an issue at https://github.com/nextcloud/password_policy/issues. |
Password policy is an internal app that is present in probably every Nextcloud instance. While I think that you're right in saying that Nextcloud really should implement global CORS policies, the fact that you had to build this app right here suggests that is not going to happen. |
A global strategy to configure CORS, was suggested in PR nextcloud/server#37896 and issue nextcloud/server#37716 , the PR needs mentorship or attention (elsewhere I need time to rebase it) . |
At least https://github.com/nextcloud/password_policy is a different app. Maybe one has more luck asking there... |
Hi,
when creating shares of existing files with your app, the requests will get rejected if the password does not conform to the corresponding NextCloud's password policy. In my case, I don't get an error message, the fetch just fails without any additional info.
It would be cool if you could integrate a route (e. g. /apps/webapppassword/api/v1/shares/validate-password) that queries the internal password_policy app's /validate endpoint and return that result. I used to do this in my internal Nextcloud app as well.
Here is an example request that I would send from a third-party website:
Here is what I used to send in a Nextcloud app:
And the result would be something like this:
Would that be possible?
Best regards,
Daniel
The text was updated successfully, but these errors were encountered: