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

Load Provider Settings from Datastore #1

Open
kylefinley opened this issue Jan 11, 2012 · 0 comments
Open

Load Provider Settings from Datastore #1

kylefinley opened this issue Jan 11, 2012 · 0 comments

Comments

@kylefinley
Copy link
Member

Proposed here by Nick R

Developers should be able to store providers settings in the datastore.

Possible implementation details

  1. A request is made to a service i.e. example.com/auth/provider
  2. A check is made to the appengine_config.py.
  3. If no settings are found. A check is made to a NDB provider model.
  4. If no model is found. A new NDB provider model is saved to the datastore with empty settings. This will make it easier for a developer to add settings.

Efficiency

Using NDB models will make the retrieval very efficient. Request will follow this pattern instance => memcache => datastore

Multiple Hosts

To allow for multiple hosts the key for the Providers should use this form domain:provider E.g. example.com:google or example.com.br:google.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant