GithubHelp home page GithubHelp logo

auth0-godot-sample's Introduction

Auth0 Godot Sample

This is a sample project that creates a simple login page and works with the Auth0 "Resource Owner Password" grant type. It's not the recommended way to do authentication with Auth0, but to do that, you would need a web page viewer within the engine. Alternatively, a device code flow could also work (user navigates to a page in their browser and retrieves a one-time use code that is typed into the engine, as is common for Roku and similar devices).

To use this, you will need to:

  1. create an Auth0 Application and API
  2. enable the "Password" grant type under the Application "Advanced Settings"
  3. add a scope to the API
  4. create a user under the User Management page
  5. grant the user the permission for the scope you created
  6. under the main account settings, set the default directory to "Username-Password-Authentication"

Finally, override the const values in AuthSingleton.gd.

  • AUTH0_DOMAIN is the domain of the Application, such as my-app.us.auth0.com
  • AUDIENCE is the identifier of the API
  • SCOPE is the scope you added earlier
  • CLIENT_ID is found in the Application settings

Note: you do not need the client secret if your application has "Token Endpoint Authentication Method" set to "None."

auth0-godot-sample's People

Contributors

resinten avatar

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.