Results 1 to 8 of 8

Thread: Repository authentication for download

    Success! Looks like we've fixed this one. According to our records the fix was applied for SDKTOOLS-853 in 5.1.0.26.
  1. #1
    Ext JS Premium Member
    Join Date
    May 2010
    Posts
    2

    Default Repository authentication for download

    Is there a way to configure Sencha CMD to authenticate when downloading packages from a remote repository?

    I have configured a remote repository which works as long as I do not require authentication. However, we want to restrict access to our packages so I have added basic authentication.

    When I try adding the repo with the username/password in the url like this:

    sencha repo add my-repo http://username:[email protected]/pkgs

    The authentication is stripped out and thus all requests are blocked. If I use curl to request resources using a similar URL all is good.

    I haven't seen this addressed anywhere. Sorry if I am just overlooking documentation or existing forum posts.

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    I couldn't find that capability in the docs. Would you like me to file a feature request?

  3. #3
    Ext JS Premium Member
    Join Date
    May 2010
    Posts
    2

    Default

    That would be great. Thanks!

  4. #4
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Thanks for the report! I have opened a feature request in our bug tracker.

  5. #5
    Sencha Premium User
    Join Date
    Aug 2013
    Posts
    14

    Default

    Well the feature request is in the Release Notes for Sencha Cmd 5.1.0 but there is no way to test it. Could someone point to any documentation where we can see how to set the credentials for the remote repository?

    Thank you and regards.

  6. #6
    Sencha Premium Member
    Join Date
    Nov 2015
    Location
    France
    Posts
    5

    Exclamation

    Quote Originally Posted by gmainerd View Post
    Well the feature request is in the Release Notes for Sencha Cmd 5.1.0 but there is no way to test it. Could someone point to any documentation where we can see how to set the credentials for the remote repository?

    Thank you and regards.
    I'm in the same situation, basic htpp authent doesn't work.

    Why ?

    Can you give us a sample please ?

  7. #7
    Sencha Premium User
    Join Date
    Aug 2013
    Posts
    14

    Default

    Yes do the following:

    Edit your cmd config file like \bin\Sencha\Cmd\5.1.0.26\sencha.cfg with:


    #-------- Remote report credentials
    repo.remote.<name_of_remote_repository>.username=<username>
    repo.remote.<name_of_remote_repository>.password=<password>

    Regards

  8. #8
    Sencha Premium Member
    Join Date
    Nov 2015
    Location
    France
    Posts
    5

    Thumbs up

    Quote Originally Posted by gmainerd View Post
    Yes do the following:

    Edit your cmd config file like \bin\Sencha\Cmd\5.1.0.26\sencha.cfg with:


    #-------- Remote report credentials
    repo.remote.<name_of_remote_repository>.username=<username>
    repo.remote.<name_of_remote_repository>.password=<password>


    Regards
    Thank's you for your help, it's seems to work now.

    I'm using Sencha Cmd 6.0.2.14 and Nexus (with basic http authent) for Sencha packages (and applications) repository (using plugin.xml modified for package upload to nexus).

    I think using repositories with credentials is a basic thing and i doesn't have see in documentation or in other place how to do for specified repositories credentials.

    It's must be documented (perhaps in "sencha add repo" documentation part).
    and when adding repositories with credentials (eg: http://login:[email protected]/packages) i think credentials should be stored in repository sencha.cfg file, not in the general Sencha cmd sencha.cfg file. It's would be better ?

    Thank you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •