github & personal access token


github & personal access token

OAuth

https://github.com/xgqfrms/webtrc-in-action/issues/1#issuecomment-629671519

access token

https://github.com/settings/tokens/new

Make sure to copy your new personal access token now. You won’t be able to see it again!

https://github.com/settings/tokens

Basic Authentication

Personal access tokens function like ordinary OAuth access tokens. They can be used instead of a password for Git over HTTPS, or can be used to authenticate to the API over Basic Authentication.

https://developer.github.com/

https://developer.github.com/v3/auth/#basic-authentication

curl to fetch

https://cdn.xgqfrms.xyz/curl-to-fetch/index.html

CURL

$ curl -u xgqfrms:123456789  https://api.github.com/user

Fetch API

fetch("https://api.github.com/user", {
  headers: {
    Authorization: "Basic eaGdxNTAzOGEyYTTQx"
  }
})

GraphQL API


Flag Counter

©xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!



免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM