API token Git authentication in Buddy-hosted repositories
Besides support for external Git hosting services such as GitHub and Bitbucket, Buddy offers native code hosting directly in the service. This solution is good for users who want to keep everything in one place, especially developers using the on-premises version.
With this week's release, we've added API token authentication to Buddy-hosted repositories, which means you can clone and push to your repository from the application level via the API.
Configuration
To generate the token, go to My ID settings and switch to API → Personal Access Tokens:
Image loading...
Token settings
Enter the token name and define the settings:
- To provide read-only access, the token must have the
Read repositories
scope. - To allow pushing changes to the repo, set the scope to
Write to repositories
(this scope includes RO access by default)
Image loading...
Accessing repository
To access the repository, run:
bashgit clone https://$TOKEN@buddy.works/$WORKSPACE_NAME/$PROJECT_NAME
$
API documentation
- Personal access tokens
- OAuth applications
- API methods – allow you to list branches, commits, and repository contents
Jarek Dylewski
Customer Support
A journalist and an SEO specialist trying to find himself in the unforgiving world of coders. Gamer, a non-fiction literature fan and obsessive carnivore. Jarek uses his talents to convert the programming lingo into a cohesive and approachable narration.