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

Github Oauth integration. #63

Merged
merged 1 commit into from
Jul 13, 2023

Conversation

muttaqin1
Copy link
Collaborator

resolved #58

@bellaabdelouahab
Copy link
Member

@muttaqin1 you should add some guide on how to get it working.

@bellaabdelouahab
Copy link
Member

@yassineboujrada can you review these changes and see if you can implement it on the frontend?

@muttaqin1
Copy link
Collaborator Author

@muttaqin1 you should add some guide on how to get it working.

Create a Oauth application in github -> developers setting -> Oauth application. Set the callback url = http://localhost:4000/api/v1/auth/github/callback
Then you will get a client id and client secret.
Add those values in the .env file.
Then start the server.

For frontend:
Create a index.html file

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <a
      href="https://github.com/login/oauth/authorize?client_id=PUT YOUR CLIENT ID HERE&redirect_url=http://localhost:4000/api/v1/auth/github/callback?path=/&scope=user:email"
      >Login with github</a
    >
  </body>
</html>

@bellaabdelouahab

@bellaabdelouahab
Copy link
Member

Thank you, please remind me to add this to contribute.md when we create it.

@muttaqin1
Copy link
Collaborator Author

Thank you, please remind me to add this to contribute.md when we create it.

You are welcome.I will surely remind you.

@bellaabdelouahab bellaabdelouahab merged commit e2503a6 into ISIL-ESTE:dev Jul 13, 2023
@bellaabdelouahab
Copy link
Member

done @muttaqin1

@muttaqin1 muttaqin1 deleted the Feat/Github-Integration branch July 13, 2023 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

GitHub integration
2 participants