You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, Sorry this question looks stupid but I am new to django , and I created a simple app mysite by running the command in my django1.10 version:
django-admin.py startproject mysite
I tested my app by running ** python manage.py runserver ** , and it is running fine and when I go to the URL http://127.0.0.1:8000/admin/login/?next=/admin/ , it shows me a admin login box , which I think by default created when i created my django app and run the DB migration.
Now I want to use your module in my app so when I go to login url , it should ask me the username and pwd for the idp.
So I installed your package by running ** sudo python setup.py install **
Now I dont know how I can use this in my Django app, where do i need to import this package.
The setup for django-saml-service-provider is a bit complicated. To simplify the setup process a bit for users that have OneLogin as an identity provider I created #12.
Hey, Sorry this question looks stupid but I am new to django , and I created a simple app mysite by running the command in my django1.10 version:
django-admin.py startproject mysite
I tested my app by running ** python manage.py runserver ** , and it is running fine and when I go to the URL
http://127.0.0.1:8000/admin/login/?next=/admin/ , it shows me a admin login box , which I think by default created when i created my django app and run the DB migration.
Now I want to use your module in my app so when I go to login url , it should ask me the username and pwd for the idp.
So I installed your package by running ** sudo python setup.py install **
Now I dont know how I can use this in my Django app, where do i need to import this package.
I added below code to my setting.py:
AUTHENTICATION_BACKENDS = (
# 'django.contrib.auth.backends.ModelBackend',
'saml_service_provider.auth_backend.SAMLServiceProviderBackend',
)
But what after this ?
where do I need to add below code (in your view.py or url.py , or in my view.py or url.py ):
class SettingsMixin(object):
def get_onelogin_settings(self):
return OneloginServiceProviderSettings(
onelogin_connector_id=1234,
onelogin_x509_cert="""-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----""",
class LoginView(SettingsMixin, InitiateAuthenticationView):
pass
class Authenticateview(SettingsMixin, CompleteAuthenticationView):
pass
class XMLMetadataView(SettingsMixin, MetadataView):
pass
==================================================================
can you please help me out into this ..
The text was updated successfully, but these errors were encountered: