Giter VIP home page Giter VIP logo

fusionauth-example-python-django's Introduction

secret-birthdays

This application will let users put in their birthdays and keep this “secret” information safe for them. With these basics in place, you’ll see how FusionAuth works and how it can extend the application to do whatever you need. The application will also let users sign-in using their google account. You can read the detailed blog post here: https://fusionauth.io/blog/2020/07/14/django-and-oauth/

Prerequisites

You need to make sure FusionAuth is running and that you have python3/pip3 available.

Setup

  • virtualenv sb-env
  • source sb-env/bin/activate
  • pip3 install django dateparser fusionauth-client pkce
  • django-admin startproject secretbirthdays
  • cd secretbirthdays
  • python3 manage.py startapp secretbirthdaysapp
  • python3 manage.py makemigrations
  • python3 manage.py migrate
  • python3 manage.py runserver

Running

To run this: python3 manage.py runserver

Credits

fusionauth-example-python-django's People

Contributors

amans330 avatar sixhobbits avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

sjames33

fusionauth-example-python-django's Issues

Receiving error "The request is missing a required parameter: grant_type"

I have quadruple checked my values for FUSION_AUTH_API_KEY, FUSION_AUTH_APP_ID, FUSION_AUTH_CLIENT_SECRET against the running instance of FusionAuth. The response that I get from the call to exchange_o_auth_code_for_access_token fails with the error The request is missing a required parameter: grant_type when attempting to login using either a Google account through oauth2 or with a valid Django user.

As far as I can tell, the setup in Google is valid and I'm given a login form, nothing fails, and tokens are returned. What is the way in FusionAuth to increase logging to determine where this is failing? Should there have been some kind of setup performed in FA to specify grant_type or does the request need to be modified in some way to include that?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.