Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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!

    Reset ProGet Admin Password via API

    Scheduled Pinned Locked Moved Support
    2 Posts 2 Posters 18 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F Offline
      forbzie22_0253
      last edited by

      Is there a preferred approach to resetting the Proget Admin password?
      I am automating the Proget build and want to reset the Admin password at build time.

      I see you can use the Proget.Service.exe to reset the password to defaults but not actually pass in your own secure password.

      It seems there is an API documented below that lets you reset the password, but I am having issues with this as Invoke-RestMethod passes a JSON body to the API which is of type string, and the API expects type Bytes

      Am I over thinking this, I'm hoping there is an easier way to set the proget admin password to something more secure

      Common API reference snippet
      Sets the password using "new Rfc2898DeriveBytes(plainTextPassword, 10, 10000)" in C#, with .GetBytes(20) for @Password_Bytes and .Salt for the @Salt_Bytes
      User_Name (String)
      Password_Bytes (Byte[])
      Salt_Bytes (Byte[])

      thanks

      atrippA 1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer @forbzie22_0253
        last edited by

        Hi @forbzie22_0253 ,

        For the Native API, you would pass in a base-64 encoded string value for byte[] values. Sorry that we don't have any examples; it's not a very friendly API, and we don't call it via JSON ourselves. Most users will configure LDAP or SAML, so so this isn't a big priority for us to document or create an API for as you can understand.

        If you find something that works, please do share it here :)

        Thanks,
        Alana

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • 1 / 1
        • First post
          Last post
        Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation