Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问 basic authentication 的原理? #42

Closed
dpyzo0o opened this issue Apr 29, 2019 · 4 comments
Closed

请问 basic authentication 的原理? #42

dpyzo0o opened this issue Apr 29, 2019 · 4 comments

Comments

@dpyzo0o
Copy link

dpyzo0o commented Apr 29, 2019

Screenshot 2019-04-29 at 21 53 14

Screenshot 2019-04-29 at 21 54 27

关于使用用户名密码进行认证的方式,看到您代码中对用户名密码进行加密,然后放在 header 中就可以通过 github 的认证。但是在 v3 的文档中,basic authentication via username and password 只给了个 curl 的例子,并没有提到通过设置 header 的方式。想请问一下,您是如何知道可以使用这种方式的呢?

@nslogx
Copy link
Owner

nslogx commented Apr 30, 2019

@dpyzo0o
Copy link
Author

dpyzo0o commented Apr 30, 2019

@huangjianke 谢谢回复~ 原来是在这个 RFC 里面,是我看得不够仔细了。小程序做的很棒,一个小建议,是不是可以加一个 logout 的功能?

@nslogx
Copy link
Owner

nslogx commented Apr 30, 2019

@dpyzo0o 有的啊,me --> about

@dpyzo0o
Copy link
Author

dpyzo0o commented Apr 30, 2019

@huangjianke 😂我又看漏了

@dpyzo0o dpyzo0o closed this as completed Apr 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants