1. Marcin Kuzminski
  2. RhodeCode
  3. Issues

Issues

Issue #49 resolved

Anonymous access

Marcin Kuzminski
repo owner created an issue

Ok, finally I'm into creating anonymous access. Since i have already 'default' user it can be toggled if anonymous access can auto login to default as anonymous access. If this would work out of the box it will be cool. Check and verify.

Comments (8)

  1. sampablokuper

    I see that in the docs at http://packages.python.org/RhodeCode/upgrade.html you recommend users upgrade using easy_install or pip. I approve of that :)

    However, the latest version of RhodeCode in PyPi at time of writing is 1.0.2: http://pypi.python.org/pypi/RhodeCode/

    I'm really looking forward to enabling anonymous access, so please can I encourage you to either push 1.1 to PyPI or, failing that, to provide instructions on upgrading to 1.1 without using pip or easy_install? (Incidentally, there doesn't seem to be a tag for 1.1 in the repo here on Bitbucket.)

    Many thanks.

  2. sampablokuper

    PS. One problem I can see with the "defaults:default" part of the URL: it doesn't feel quite so restful as just having one URL for browsing any given repository.

    Accessing that one URL should, I think, behave as follows:

    • If the repository is private AND the user is already logged in AND the user has permission to view the repository: show the repository to the user at that one URL.
    • If the repository is private AND the user is already logged in AND the user does not have permission to view the repository: redirect the user to the URL for the dashboard.
    • If the repository is private AND the user is not logged in: redirect to the login page, with a "came_from" URL parameter set to the repository's one URL.
    • If the repository is public AND the user is already logged in: show the repository to the user at that one URL.
    • If the repository is public AND the user is not logged in: show the repository to the user at that one URL.
  3. Marcin Kuzminski reporter

    Hi, actually the note was strictly for me so I wrote it such way it might confused You. the default:default is only for clone url for anonymous access, it doesn't affect the urls for web access.

    Maybe later on i'll change this without the default:default for clone url, at this point is just to much work.

  4. Log in to comment