From a0d900a336f91de1c20739ddee03f19f8bcb66e3 Mon Sep 17 00:00:00 2001 From: picca Date: Wed, 22 Nov 2017 10:24:15 +0000 Subject: --- .../How_to_add_a_privdata_for_Gitlab_cookies.mdwn | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 doc/forum/How_to_add_a_privdata_for_Gitlab_cookies.mdwn (limited to 'doc') diff --git a/doc/forum/How_to_add_a_privdata_for_Gitlab_cookies.mdwn b/doc/forum/How_to_add_a_privdata_for_Gitlab_cookies.mdwn new file mode 100644 index 00000000..c222e613 --- /dev/null +++ b/doc/forum/How_to_add_a_privdata_for_Gitlab_cookies.mdwn @@ -0,0 +1,30 @@ +Hello joey, + +First let me thank you and other contributors for this great tool, it helps me a lot in my day to day work :)) + + +I need to checkout something from a private area of a gitlab instance. +In order to authenticate, I setup a personnal access token [1]. + +It seems to me that PrivData is the right type to use in order to store it and avoid to have the token in clear text in the config.hs file. + +I will use it in order to generate the url of the Git type. + +(Git "https://:@gitlab.xxxx.yy/user name/blabla.git" Nothing "") + +This is the first time I will try to use the privdata and I do not know how to proceed. + +I saw that only a certain amount of constructors are available for these privdata. +Should I add a new one for my gitlab personnal access token ?. + +What is the context which can be attach to the privdata in order to have something as flexible as possible ? +It seems to me that the contex should be the gitlab url and the user name, but maybe you could think about a better solution. + +Could you explain with a code snipset how to proceed, becasue it is not really clear to me. +Or point to an available example. + +thanks for your help + +Frederic + +[1] https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html -- cgit v1.2.3