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

Adding MFA and also ADDITIONAL FIELDS #17

Open
programmerizak opened this issue Sep 10, 2023 · 5 comments
Open

Adding MFA and also ADDITIONAL FIELDS #17

programmerizak opened this issue Sep 10, 2023 · 5 comments

Comments

@programmerizak
Copy link

This is not really an issue but i just need support on it

  1. How can i be able to connect MFA(Multi Factor Authentication) to the login, to enhance user security
  2. Am not getting additional fields in my services project set in ADDITIONAL_FIELDS variable in my settings.py
@DAVIDhaker
Copy link
Owner

Hello!

  1. I will look into this possibility and ways of realization and get back to you a little later.
  2. Need more details to explore problem.

@programmerizak
Copy link
Author

Thanks sir am grateful

Hello!

  1. I will look into this possibility and ways of realization and get back to you a little later.
  2. Need more details to explore problem.

Thanks sir am grateful

@DAVIDhaker
Copy link
Owner

  1. What libraries are you using or wanna to use for MFA?
  2. I am waiting for more details if problem is not solved.

@programmerizak
Copy link
Author

  1. I actually like to use Kagi for the MFA, or i can also use django-mfa3
  2. In my Gateway Website settings.py i have
    `
    INSTALLED_APPS += 'django_sso.sso_gateway',

SSO settings section in the gateway side are optional

SSO = {
# Timeout for the communication with subordinated services. (OPTIONAL)
# This timeout is defined in seconds with a default value of 0.1s
# (100ms) per registered service.
'SUBORDINATE_COMMUNICATION_TIMEOUT': 0.1,

# Additional fields. (OPTIONAL). For more details look to part
# named as "Send additional data to subordinated services"
'ADDITIONAL_FIELDS': ('first_name', 'last_name', 'phone_number'),

}
`

In one of my service website settings.py i have this

`
INSTALLED_APPS += 'django_sso.sso_service',

SSO = {
# Specify SSO server base url (REQUIRED)
'ROOT': 'domain.com',

# Specify application token obtained in the SSO server admin panel (REQUIRED)
'TOKEN': 'token_from_gateway',

}

`

My Question is that from my service app, how can i get the user first_name, last_name and phone_number, its only the user email am getting. When i do request.user.email in the template or view in my service app, it return nothing, but request.user.username return the user email. But am looking for how to get the First Name, Last Name and Phone Number

@programmerizak
Copy link
Author

Just want to add, can one use this for a production ready website now, or should we wait for update ?

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

2 participants