dawidl022 / ECS506-flat-finder-app

FDM Flat Finder application for ECS506U - Software Engineering group project at Queen Mary University of London
1 stars 1 forks source link

Authlib Flask setup with Google SSO #77

Closed dawidl022 closed 1 year ago

dawidl022 commented 1 year ago

Screenshots of steps to get Google Auth client ID and secret (full instructions in README):

Screenshot 2023-04-02 at 08 13 04 Screenshot 2023-04-02 at 08 13 46 Screenshot 2023-04-02 at 08 14 15 Screenshot 2023-04-02 at 08 18 53 Screenshot 2023-04-02 at 08 19 21 Screenshot 2023-04-02 at 08 21 08 Screenshot 2023-04-02 at 08 24 29

Instead of using the autogenerated client code, a plain HTML form submission request should be made from the frontend, e.g.:

<form
  action="http://127.0.0.1:5000/api/v1/login/google"
  method="POST"
>
  <button>Login with Google</button>
</form>