n4bb12 / verdaccio-github-oauth-ui

📦🔐 GitHub OAuth plugin for Verdaccio
https://verdaccio.org
MIT License
73 stars 45 forks source link

Need help creating the_authToken "SECRET_TOKEN" #141

Closed mopinon closed 2 years ago

mopinon commented 2 years ago

Hi, I am making my wrapper to integrate Verdaccio with Unity based on your plugin. I have a problem with creating a _authToken. As I understand the algorithm of actions: 1) Request a user's GitHub identity https://github.com/login/oauth/authorize?client_id={value}&scope=read%23org,repo 2) Getting code from github {my-host-ip}/-/oauth/callback?code={code-from-github} 3) Create string {username}:{code-from-github} 4) AES encrypt this string (What is the key?) 5) Convert to Base64 string. (Will the result be an _authToken?)

Thanks in advance for your help! Thanks for the plugin!

n4bb12 commented 2 years ago

Hi

I'm not sure what you are trying to do here.

Are you using this plugin? Then there should not be any need to implement the above steps.

Are you looking for advice on how to implement a plugin of your own? Then I'd recommend checking the Verdaccio docs.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.