Open haarg opened 3 weeks ago
I was wondering if you have considered allowing users to upload a file with a generated key to their directory.
Here's an example:
That's not generally a bad idea, the only issue is PAUSE is write-once so you could only upload a file with a specific name one time.
There are a number of file extensions that are allowed to be overwritten, including txt
and json
.
The
@cpan.org
mail redirector is very unreliable, and unlikely to be improved. We should move away from using it.Currently, logging in to a PAUSE account sends an email to their
@cpan.org
address with a confirmation link. We should find an alternative method.The best option would be to use OAuth 2. This would require implementing it on PAUSE. PAUSE is now using Mojolicious for its web interface. It should be possible to implement this using Mojolicious::Plugin::OAuth2::Server. See also andk/pause#258
For reference, some other services have implemented PAUSE linking by directly accepting PAUSE login details, then internally testing a login using them. AFAIK this is the method rt.cpan.org uses. This is pretty terrible security though. You are asking people to provide login details to a third party. It substantially increases the sensitivity of the data you need to access. And it wouldn't work well with any changes or improvements PAUSE makes to its login flow.