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

passport、passportlocalモジュールで認証 #77

Closed
ooitanojohn opened this issue Nov 19, 2022 · 21 comments
Closed

passport、passportlocalモジュールで認証 #77

ooitanojohn opened this issue Nov 19, 2022 · 21 comments
Assignees
Labels
feat 新機能

Comments

@ooitanojohn
Copy link
Owner

追加機能でtwitterとか各aouth認証

@ooitanojohn ooitanojohn added the feat 新機能 label Nov 19, 2022
@ooitanojohn ooitanojohn added this to the サーバサイド milestone Nov 19, 2022
@ooitanojohn ooitanojohn self-assigned this Nov 23, 2022
@ooitanojohn
Copy link
Owner Author

pbkdf2 → bcryptに変更
sqlite → mysql2

@ooitanojohn
Copy link
Owner Author

bcrypt https://www.wakuwakubank.com/posts/739-node-crypto/#bcrypt%E3%81%A8%E3%81%AF
カラムはハッシュ化したパスワードのみ

@ooitanojohn
Copy link
Owner Author

上記だと同期処理の為遅いらしい
ので公式の非同期のhttps://github.com/kelektiv/node.bcrypt.js#readme
これで書く

@ooitanojohn
Copy link
Owner Author

変数名が思いつかないのでclass化

@ooitanojohn
Copy link
Owner Author

pbkdf2 と bcrypt 、ソルトとストレッチングの保存方法とかか?重要なの
今回はカラム増やしたくないのでbcrypt

@ooitanojohn
Copy link
Owner Author

ooitanojohn/passport#1

@ooitanojohn
Copy link
Owner Author

実装

@ooitanojohn
Copy link
Owner Author

メール認証、password忘れたときの再認証に使える?
https://www.passportjs.org/tutorials/email/prompt/

@ooitanojohn
Copy link
Owner Author

@ooitanojohn
Copy link
Owner Author

自力認証したいね~
https://www.passportjs.org/packages/passport-auth0/

@ooitanojohn
Copy link
Owner Author

@ooitanojohn
Copy link
Owner Author

@ooitanojohn
Copy link
Owner Author

googleはoauth2.0

@ooitanojohn
Copy link
Owner Author

さらに分かりやすいoauth
https://tech-lab.sios.jp/archives/8026

@ooitanojohn
Copy link
Owner Author

頭に入ってこないゾ
https://tech-lab.sios.jp/archives/8651

@ooitanojohn
Copy link
Owner Author

comsumerkey と ベアラーtokenとかいうの渡さないとダメみたいだ
https://developer.twitter.com/ja/docs/authentication/oauth-2-0/application-only

@ooitanojohn
Copy link
Owner Author

ooitanojohn commented Nov 27, 2022

違う consumerで認証できた反映おそかった
渡してるのが↑
帰ってきてるのがoauth_token,oauth_token_secret,profile
https://developer.twitter.com/en/docs/authentication/oauth-1-0a

@ooitanojohn
Copy link
Owner Author

@ooitanojohn
Copy link
Owner Author

passport作者のtwitter /110 のissue

@ooitanojohn
Copy link
Owner Author

twitterがよく調子悪いけどよく分からん

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat 新機能
Projects
Status: 完了
Development

No branches or pull requests

1 participant