github oauth第三方登陆

官方文档地址

https://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow

通过token能操作的api列表

Git token 联合登陆(SSO)又两种方式:

– Web-base application

– Nonweb-base application (这种方式是受限的)

Nonweb-base的限制:

  • 只支持https模式,不支持ssh模式

说明:

Once you have a token, you can enter it instead of your password when performing Git operations over HTTPS.

For example, on the command line you would enter the following:

$ git clone https://github.com/username/repo.git
Username: your_username
Password: your_token

Personal access tokens can only be used for HTTPS Git operations. If your repository uses an SSH remote URL, you will need to switch the remote from SSH to HTTPS.

If you are not prompted for your username and password, your credentials may be cached on your computer. You can update your credentials in the Keychain to replace your old password with the token.

应用: 官方文档

“github oauth第三方登陆”的一个回复

评论已关闭。