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

Social auth for Tumbo Console and Applications #1

Open
philipsahli opened this issue Jul 17, 2016 · 4 comments
Open

Social auth for Tumbo Console and Applications #1

philipsahli opened this issue Jul 17, 2016 · 4 comments

Comments

@philipsahli
Copy link
Contributor

philipsahli commented Jul 17, 2016

By now, Tumbo only support username/password authentication into the console. For later usage in a Saas-offer Tumbo should also support Social auth by using https://github.com/omab/python-social-auth.

But more important is Social auth authentication for Tumbo Applications.

  • By now only Tumbo users can be authenticated for the apps and the user has a session on the root path (thus is authenticated for all apps running on this Tumbo platform). Users should be able to get a session only for one particular app (PATH). Because the user might set a reverse proxy in front of it, the path should be configurable.

Because auth on app level is not suported by now, on https://httptest.sahli.net/ (see repo https://github.com/sahlinet/httptest uses generated ressource ids awhich are linked to email addresses.

The architecture and process might look like:

AUTH FRONTEND

The frontend and api (drf) must have been enabled social auth login.

AUTH BACKEND (worker)

  • ExecutionViewSet class muss add (or create?) a JWT token for request.user and sign with a per worker executor secret
  • send request to worker with JWT token (contains username, custom_id for data in datastore
  • worker receives JWT token, verifies with secret which it received on startup
  • if it is signed by our secret on server -> we got now the identity: userame and custom_id for lookup data in datastore
@philipsahli philipsahli added this to the 0.2 milestone Jul 17, 2016
@philipsahli
Copy link
Contributor Author

philipsahli commented Jul 17, 2016

Apps should be able to integrate this feature in their app simple and easy.

@philipsahli philipsahli changed the title Social auth for Tumbo Console and Applications social auth for Tumbo Console and Applications Jul 17, 2016
@philipsahli
Copy link
Contributor Author

philipsahli commented Sep 14, 2016

Lot of work done in PR #4

@philipsahli
Copy link
Contributor Author

Added frontend_host to be able to use with a proxied project. 98b3c61

@philipsahli philipsahli changed the title social auth for Tumbo Console and Applications Social auth for Tumbo Console and Applications Nov 2, 2016
@philipsahli
Copy link
Contributor Author

Detailled doc is missing.

@philipsahli philipsahli removed this from the 0.2 milestone Oct 8, 2017
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