Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Accessing changeset with basic authentication
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  14 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Douglas José  
View profile  
 More options Jan 17 2012, 4:07 pm
From: Douglas José <douglasj...@gmail.com>
Date: Tue, 17 Jan 2012 13:07:02 -0800 (PST)
Local: Tues, Jan 17 2012 4:07 pm
Subject: Accessing changeset with basic authentication

Hi,

I would like to integrate an issue tracker (Mantis) with RhodeCode and need
to access the changeset information of a password-protected repository. I'm
not having success using an URL with basic authentication (in the format
"https://<username>:<password>@server"). Is there an alternative way to
access the information I need?

Thank you,

Douglas


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marcin Kuzminski  
View profile  
 More options Jan 17 2012, 4:14 pm
From: Marcin Kuzminski <marcin...@gmail.com>
Date: Tue, 17 Jan 2012 13:14:42 -0800 (PST)
Local: Tues, Jan 17 2012 4:14 pm
Subject: Re: Accessing changeset with basic authentication

Hi, yes you can enable API access for each web view in rhodecode. please
see this:
https://secure.rhodecode.org/rhodecode/files/f2bd5b0c10949e6d8467d3b3...

Also you might be intereseted in:
https://bitbucket.org/tcplomp/rhodecode-connector-for-mantis

Cheers


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Douglas José  
View profile   Translate to Translated (View Original)
 More options Jan 17 2012, 4:32 pm
From: Douglas José <douglasj...@gmail.com>
Date: Tue, 17 Jan 2012 16:32:21 -0500
Local: Tues, Jan 17 2012 4:32 pm
Subject: Re: Accessing changeset with basic authentication
Hi Marcin,

This is exactly the plugin I would like to use. Sorry if I'm not
familiar with Python enough to do this change, but as the plugin will
make a request to /raw-changeset, is it enough to add
@LoginRequired(api_access=True) to the changeset.py file and then
restart RhodeCode?

Thank you,

Douglas

On Tue, Jan 17, 2012 at 16:14, Marcin Kuzminski <marcin...@gmail.com> wrote:
> Hi, yes you can enable API access for each web view in rhodecode. please see
> this:
> https://secure.rhodecode.org/rhodecode/files/f2bd5b0c10949e6d8467d3b3...

> Also you might be intereseted in:
> https://bitbucket.org/tcplomp/rhodecode-connector-for-mantis

> Cheers

--
Douglas Jose
http://douglasjose.com

- "Use free software. Help us make a free world."


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marcin Kuzminski  
View profile  
 More options Jan 17 2012, 4:43 pm
From: Marcin Kuzminski <marcin...@gmail.com>
Date: Tue, 17 Jan 2012 13:43:07 -0800 (PST)
Local: Tues, Jan 17 2012 4:43 pm
Subject: Re: Accessing changeset with basic authentication

Hi,

You need to change this.
https://secure.rhodecode.org/rhodecode/files/1ff606a7858dbd8a5f70b3da...

But beware It will enable api access to all funcitons in that controller,
if you want to just enable it for raw-changes you must move the
@LoginRequired from __before__ method into each controller function and
enable
api access just for
https://secure.rhodecode.org/rhodecode/files/1ff606a7858dbd8a5f70b3da...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thirumalai Kandasami  
View profile  
 More options Jul 5 2012, 3:20 am
From: Thirumalai Kandasami <thirumal...@gmail.com>
Date: Thu, 5 Jul 2012 00:20:53 -0700 (PDT)
Local: Thurs, Jul 5 2012 3:20 am
Subject: Re: Accessing changeset with basic authentication

Hi,

I used this plugin
https://bitbucket.org/tcplomp/rhodecode-connector-for-mantis for
integrating Rhodecode with Mantis.
It's working fine for public repositories but for private repositories I
don't know how to proceed?

As Marcin Kuzminski mentioned in previous post "if you want to just enable
it for raw-changes you must move the @LoginRequired from __before__ method
into each controller function and enable
api access just for
https://secure.rhodecode.org/rhodecode/files/1ff606a7858dbd8a5f70b3da..."

This is exactly what I want but unfortunately I'm unable to understand
anything in this code.I'm zero in programming.Do you have any sample?
Can you please help me?

Thanks,
Thirumalai.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thirumalai Kandasami  
View profile  
 More options Jul 5 2012, 4:30 am
From: Thirumalai Kandasami <thirumal...@gmail.com>
Date: Thu, 5 Jul 2012 01:30:47 -0700 (PDT)
Local: Thurs, Jul 5 2012 4:30 am
Subject: Re: Accessing changeset with basic authentication

Hi,

I changed my  changeset.py file as @LoginRequired(api_access=
True) and after that I tried to login with,
http://URL?api_key=a2e0a74548aee6d30a56218910973da788761bbd<http://url/?api_key=a2e0a74548aee6d30a56218910973da788761bbd>
but it redirected me to login page,

http://url/_admin/login?came_from=%2F

In log I got error,

2012-07-05 13:56:46.367 INFO  [rhodecode.lib.base] User:
<AuthUser('id:2:thirumalai|None')> accessed /
2012-07-05 13:56:46.367 WARNI [rhodecode.lib.auth] user
<AuthUser('id:2:thirumalai|None')> NOT authenticated on func:
HomeController:__before__
2012-07-05 13:56:46.370 INFO  [rhodecode.lib.base] Request to / time: 0.067s

Now I'm In checking HomeController,,

Thanks,
Thirumalai


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marcin Kuzminski  
View profile  
 More options Jul 5 2012, 2:12 pm
From: Marcin Kuzminski <marcin...@gmail.com>
Date: Thu, 5 Jul 2012 11:12:23 -0700 (PDT)
Local: Thurs, Jul 5 2012 2:12 pm
Subject: Re: Accessing changeset with basic authentication

Hi,

That should work, did you restart the server after that change ?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thirumalai Kandasami  
View profile  
 More options Jul 9 2012, 1:15 am
From: Thirumalai Kandasami <thirumal...@gmail.com>
Date: Sun, 8 Jul 2012 22:15:13 -0700 (PDT)
Local: Mon, Jul 9 2012 1:15 am
Subject: Re: Accessing changeset with basic authentication

Hi Marcin,

Sorry for my late reply.

I commented container_auth_enabled = false and proxypass_auth_enabled =
false in production.ini.After that,I tried with restart but it was not
working.Later I noticed I'm trying to list all repositories.So I tried with
display changeset alone(API) and it worked fine.

I tried the same with Mantis integration but it was not working.Fine,I did
the following in Rhodecode.

1.Removed private repository access
2.Removed anonymous access
3.Added read option for default.

After this configuration I tried to pull repository from Mantis and it
worked fine.I surprised and I don't know,How it was worked without any
password.
I tried to verify manually with default:default but it was not working..

How mantis can able to connect rhodecode without any username/password??Now
I'm breaking my hand to know the root cause.
Can you help me?

My objective is,Rhodecode private repository need to connect with Mantis.

Thanks,
Thirumalai.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ton  
View profile  
 More options Jul 9 2012, 2:51 am
From: Ton <tcpl...@gmail.com>
Date: Sun, 8 Jul 2012 23:51:08 -0700 (PDT)
Local: Mon, Jul 9 2012 2:51 am
Subject: Re: Accessing changeset with basic authentication

Let me chime in.

If you can access the page http://$server$/$repository$/raw-changeset/tip
without logging in (perhaps clear your cache), then you have enough access
to get the info into Mantis.

Ton

Op dinsdag 17 januari 2012 22:07:02 UTC+1 schreef Douglas José het volgende:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thirumalai Kandasami  
View profile  
 More options Jul 9 2012, 3:31 am
From: Thirumalai Kandasami <thirumal...@gmail.com>
Date: Mon, 9 Jul 2012 00:31:50 -0700 (PDT)
Local: Mon, Jul 9 2012 3:31 am
Subject: Re: Accessing changeset with basic authentication

Hi Ton,

Thanks for your quick reply.

I'm able to access page http://$server$/$repository$/raw-changeset/tip
without logging in.Yes,mantis is working fine but I want to make sure,Will
it lead to any security flow?.I mean,anyone can able to access my
repository without permission?

Thanks,
Thirumalai.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ton  
View profile  
 More options Jul 9 2012, 7:01 am
From: Ton <tcpl...@gmail.com>
Date: Mon, 9 Jul 2012 04:01:28 -0700 (PDT)
Local: Mon, Jul 9 2012 7:01 am
Subject: Re: Accessing changeset with basic authentication

If you were able to see that page you could say that anyone can see that
information.

Ton

Op maandag 9 juli 2012 09:31:50 UTC+2 schreef Thirumalai Kandasami het
volgende:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marcin Kuzminski  
View profile   Translate to Translated (View Original)
 More options Jul 9 2012, 7:08 am
From: Marcin Kuzminski <marcin...@gmail.com>
Date: Mon, 9 Jul 2012 04:08:00 -0700 (PDT)
Subject: Re: Accessing changeset with basic authentication

Hi,

Well if no-one will steal the api_key then you're pretty safe i guess.
You can always make IP restrictions on certain url, for extra security
layer.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ton  
View profile  
 More options Sep 2 2012, 3:52 am
From: Ton <tcpl...@gmail.com>
Date: Sun, 2 Sep 2012 00:52:32 -0700 (PDT)
Local: Sun, Sep 2 2012 3:52 am
Subject: Re: Accessing changeset with basic authentication

I extended the Mantis plugin to insert API-keys

See
http://tononlabview.blogspot.nl/2012/09/using-private-rhodecode-repos...

Op maandag 9 juli 2012 13:08:00 UTC+2 schreef Marcin Kuzminski het volgende:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marcin Kuzminski  
View profile  
 More options Sep 2 2012, 9:42 am
From: Marcin Kuzminski <marcin...@gmail.com>
Date: Sun, 2 Sep 2012 06:42:39 -0700 (PDT)
Local: Sun, Sep 2 2012 9:42 am
Subject: Re: Accessing changeset with basic authentication

Thanks Ton for this article !


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »