GithubHelp home page GithubHelp logo

r-lib / credentials Goto Github PK

View Code? Open in Web Editor NEW
70.0 4.0 5.0 288 KB

Tools for Managing SSH and Git Credentials

Home Page: https://docs.ropensci.org/credentials

License: Other

R 99.47% Shell 0.53%
r rstats git password ssh

credentials's Introduction

credentials logo

This package is a joint effort from rOpenSci and the Tidyverse team.

Tools for Managing SSH and Git Credentials

Project Status: Active โ€“ The project has reached a stable, usable state and is being actively developed. AppVeyor Build Status CRAN_Status_Badge CRAN RStudio mirror downloads

Setup and retrieve HTTPS and SSH credentials for use with 'git' and other services. For HTTPS remotes the package interfaces the 'git-credential' utility which 'git' uses to store HTTP usernames and passwords. For SSH remotes we provide convenient functions to find or generate appropriate SSH keys. The package both helps the user to setup a local git installation, and also provides a back-end for git/ssh client libraries to authenticate with existing user credentials.

Setting your GITHUB_PAT

Automatically populate your GITHUB_PAT environment variable from the native git credential store. The credential manager will safely prompt the user for credentials when needed.

credentials::set_github_pat()

Use this function in your .Rprofile if you want to automatically set GITHUB_PAT for each R session, without hardcoding your secret in plain text.

Manage HTTPS credentials

Load or prompt the user for GitHub username and password:

library(credentials)
git_credential_ask('https://github.com')

See which credential helper back-end your git-credential store is using:

credentials::credential_helper_get()

Manage SSH keys

Lookup the appropriate key, or prompt the user to generate one:

library(credentials)
ssh_key_info()

You can copy-paste the public key directly to your GitHub profile!

For developers

Use the openssl package to read the user private key in R for encryption / signatures:

user <- ssh_key_info()
key <- ssh_read_key(user$key)
openssl::write_pem(key)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.