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

Reimplment the library using backends #527

Open
3 tasks
nrbnlulu opened this issue Apr 17, 2024 · 0 comments
Open
3 tasks

Reimplment the library using backends #527

nrbnlulu opened this issue Apr 17, 2024 · 0 comments

Comments

@nrbnlulu
Copy link
Owner

Backend would replace the settings object.
we would have a default implementation for a django backend and in the future possibly other orm's.

The backed should look like this:

class GqlAuthUserProto:
	
	def get_pk_field():
		... 
	# possibly other things
	
class GqlAuthBackend(Protocol):

	def get_user_type(self) ->  GqlAuthUserProto:
		...
		
	def login(data: TBD ) -> GqlAuthUserProto:
		...
	
	# TBD

This will allow users to extend this library how ever they would want without a pile of settings.

This issue should solve

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

No branches or pull requests

1 participant