SmalltalkHub username/password in environment variable?
Hi folks, Is there a way of setting the SmalltalkHub username and password in an environment variable or an external configuration file as opposed to setting them in every repository in every image? It gets old introducing them always :) Cheers, M. -- Mircea Lungu, PhD. Researcher Software Composition Group University of Bern
A while ago, Sean did this: Sean P. DeNigris <sean@clipperadams.com> 10/23/13 to pharo-dev philippeback wrote
Would be great to have a logout, in order to give images to other people without leaving credentials around.
Done, added to world menu under the individual repo login options The way the logins work is that a file named .mcconfig is expected in the general preferences folder with the format: [squeaksource] user := 'me'. password := 'pwd'. [squeaksource3] user := 'me'. password = 'pwd'. [smalltalkhub] user := 'me'. password := 'pwd'. But I do not see where is is used... Sean? Phil On Wed, May 14, 2014 at 11:56 AM, Mircea Filip Lungu <lungu@iam.unibe.ch>wrote:
Hi folks,
Is there a way of setting the SmalltalkHub username and password in an environment variable or an external configuration file as opposed to setting them in every repository in every image?
It gets old introducing them always :)
Cheers, M.
-- Mircea Lungu, PhD. Researcher Software Composition Group University of Bern
Hi Phil! Thanks for the prompt answer. I can't get it to work though... Thanks, M. 2014-05-14 12:10 GMT+02:00 phil@highoctane.be <phil@highoctane.be>:
A while ago, Sean did this:
Sean P. DeNigris <sean@clipperadams.com> 10/23/13 to pharo-dev philippeback wrote
Would be great to have a logout, in order to give images to other people without leaving credentials around.
Done, added to world menu under the individual repo login options
The way the logins work is that a file named .mcconfig is expected in the general preferences folder with the format:
[squeaksource] user := 'me'. password := 'pwd'. [squeaksource3] user := 'me'. password = 'pwd'. [smalltalkhub] user := 'me'. password := 'pwd'.
But I do not see where is is used...
Sean?
Phil
On Wed, May 14, 2014 at 11:56 AM, Mircea Filip Lungu <lungu@iam.unibe.ch>wrote:
Hi folks,
Is there a way of setting the SmalltalkHub username and password in an environment variable or an external configuration file as opposed to setting them in every repository in every image?
It gets old introducing them always :)
Cheers, M.
-- Mircea Lungu, PhD. Researcher Software Composition Group University of Bern
-- Mircea Lungu, PhD. Researcher Software Composition Group University of Bern
On Thu, May 15, 2014 at 11:23 AM, Mircea Filip Lungu <lungu@iam.unibe.ch>wrote:
Hi Phil!
Thanks for the prompt answer. I can't get it to work though...
That's why I need Sean to tell us where the changes to get that working are... I want this too, so, ... bump :-) Phil
Thanks, M.
2014-05-14 12:10 GMT+02:00 phil@highoctane.be <phil@highoctane.be>:
A while ago, Sean did this:
Sean P. DeNigris <sean@clipperadams.com> 10/23/13 to pharo-dev philippeback wrote
Would be great to have a logout, in order to give images to other people without leaving credentials around.
Done, added to world menu under the individual repo login options
The way the logins work is that a file named .mcconfig is expected in the general preferences folder with the format:
[squeaksource] user := 'me'. password := 'pwd'. [squeaksource3] user := 'me'. password = 'pwd'. [smalltalkhub] user := 'me'. password := 'pwd'.
But I do not see where is is used...
Sean?
Phil
On Wed, May 14, 2014 at 11:56 AM, Mircea Filip Lungu <lungu@iam.unibe.ch>wrote:
Hi folks,
Is there a way of setting the SmalltalkHub username and password in an environment variable or an external configuration file as opposed to setting them in every repository in every image?
It gets old introducing them always :)
Cheers, M.
-- Mircea Lungu, PhD. Researcher Software Composition Group University of Bern
-- Mircea Lungu, PhD. Researcher Software Composition Group University of Bern
philippeback wrote
That's why I need Sean to tell us where the changes to get that working are...
I see that you found the part of the code to programmatically set the credentials. I had also wrote code to read those credentials from a file. It's in the DeNigrisPreferences package on sthub. If that sounds interesting, I'll see about extracting that code. lmk ----- Cheers, Sean -- View this message in context: http://forum.world.st/SmalltalkHub-username-password-in-environment-variable... Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
Hi http://stackoverflow.com/questions/23673986/how-to-publish-to-smalltalkhub-f... Uko On 14 May 2014, at 11:56, Mircea Filip Lungu <lungu@iam.unibe.ch> wrote:
Hi folks,
Is there a way of setting the SmalltalkHub username and password in an environment variable or an external configuration file as opposed to setting them in every repository in every image?
It gets old introducing them always :)
Cheers, M.
-- Mircea Lungu, PhD. Researcher Software Composition Group University of Bern
Thanks Yuriy for the fast response! Your solution works, but only for the repos which are in the image. MCHTTPRepository>>userAndPasswordFromSettingsDo: already has machinery for using credentials. I posted an alternative solution that uses that machinery here: http://stackoverflow.com/a/23677314/1200070 @Phil: the code of Sean that you mentioned is maybe this: MCHTTPRepository>>userAndPasswordFromSettingsDo: M. 2014-05-15 11:50 GMT+02:00 Yuriy Tymchuk <yuriy.tymchuk@me.com>:
Hi
http://stackoverflow.com/questions/23673986/how-to-publish-to-smalltalkhub-f...
Uko
On 14 May 2014, at 11:56, Mircea Filip Lungu <lungu@iam.unibe.ch> wrote:
Hi folks,
Is there a way of setting the SmalltalkHub username and password in an environment variable or an external configuration file as opposed to setting them in every repository in every image?
It gets old introducing them always :)
Cheers, M.
-- Mircea Lungu, PhD. Researcher Software Composition Group University of Bern
-- Mircea Lungu, PhD. Researcher Software Composition Group University of Bern
Thanks Mircea for improvement. Now there is indexible important piece of knowledge :) Uko On 15 May 2014, at 14:28, Mircea Filip Lungu <lungu@iam.unibe.ch> wrote:
Thanks Yuriy for the fast response!
Your solution works, but only for the repos which are in the image. MCHTTPRepository>>userAndPasswordFromSettingsDo: already has machinery for using credentials. I posted an alternative solution that uses that machinery here:
http://stackoverflow.com/a/23677314/1200070
@Phil: the code of Sean that you mentioned is maybe this: MCHTTPRepository>>userAndPasswordFromSettingsDo:
M.
2014-05-15 11:50 GMT+02:00 Yuriy Tymchuk <yuriy.tymchuk@me.com>: Hi
http://stackoverflow.com/questions/23673986/how-to-publish-to-smalltalkhub-f...
Uko
On 14 May 2014, at 11:56, Mircea Filip Lungu <lungu@iam.unibe.ch> wrote:
Hi folks,
Is there a way of setting the SmalltalkHub username and password in an environment variable or an external configuration file as opposed to setting them in every repository in every image?
It gets old introducing them always :)
Cheers, M.
-- Mircea Lungu, PhD. Researcher Software Composition Group University of Bern
-- Mircea Lungu, PhD. Researcher Software Composition Group University of Bern
participants (4)
-
Mircea Filip Lungu -
phil@highoctane.be -
Sean P. DeNigris -
Yuriy Tymchuk