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

Feature/facebook and google authenticaton #8

Open
wants to merge 17 commits into
base: development
Choose a base branch
from

Conversation

JMCBProxya
Copy link

Back:

  • Modified the User model to include the open_id field
  • Created modifications to register and authenticate users through open_id

SDK:

  • Created functions and tasks in the dRural SDK to manage user sign-in through open_id

Storefront:

  • Created login buttons for Facebook and Google
  • Added functionality to the buttons to obtain the open_id through the Google and Facebook APIs, enabling user registration through it and allowing sign-in using the new SDK function
  • Added the reading of the environment variables Google_OAUTH_ClientId and Facebook_App_ID to the storefront constants file

Env.example:

  • Added new environment variables to set up Google_OAUTH_ClientId and Facebook_App_ID

JMCBProxya and others added 16 commits September 26, 2024 14:50
Agregada funcionalidad preliminar al botón "Register with Google" de SocialMediaLogin.tsx
Descomentado el componente SocialMediaLogin del index.tsx de OverlayManager>Login y encapsulado con GoogleOAuthProvider y el clientId
…e así como cargada como const donde corresponde.
Added funcionality to storefront to register and sing in with Google.
Added log in with google to storefront
Added call from GoogleLogin function to logIn function
Changed needed queries.
Added Google_OAUTH_id to constants file
Changed account mutation to store password for SocialMediaUsers
…gle ClientID constant is available.

In SocialMediaLogin, the googleLogin logic is only generated, and the "Log In with Google" button is only displayed when the ClientID constant is available.
In socialmedia add the logic to log in with Facebook.
In the constant add reading the variable facebook_app_id
…e or Facebook ClientID or AppID constants exist
Rollback sdk/Readme.md
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

Successfully merging this pull request may close these issues.

2 participants