Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

Maven Repository Authentication with API Key



  • I would like to authenticate to our on premesis ProGet server and a maven feed using an API key. I have attempted to configure the feed like:

            <repository>
                <id>snapshots</id>
                <name>ProGet Snapshots</name>
                <releases>
                    <enabled>false</enabled>
                    <updatePolicy>always</updatePolicy>
                    <checksumPolicy>warn</checksumPolicy>
                </releases>
                <snapshots>
                    <enabled>true</enabled>
                    <updatePolicy>never</updatePolicy>
                    <checksumPolicy>fail</checksumPolicy>
                </snapshots>
                <url>https://proget.domain.com/maven2/snapshots?key=00000000000</url>
                <layout>default</layout>
            </repository>
    

    This results in an authentication error, however. Is this a problem with my settings.xml file, or ProGet?

    Thank you,
    Justin Griffiths
    Geomni, Inc.

    Product: ProGet
    Version: 5.1.16



  • Is this "key=" documented anywhere, like as a part of a standard?

    You should be able to use the standard username/password authentication for this, but use "api" as the username, and your api key as the password.



  • Thank you. That worked.

    The key=##### is documented in the API, whereas I cannot find anything that says you specify the username as 'api' and the password as the api-key.

    Many thanks,
    Justin



  • Thanks Justin; we definitely need to improve docs. I just made a change to it now to clarify this better: https://github.com/Inedo/inedo-docs/blob/master/ProGet/feeds/maven.htm


Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation