Set default auth_url from django settings when auth_url is None.

Bug #1316490 reported by xiaohanyu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
django-openstack-auth
In Progress
Low
xiaohanyu

Bug Description

By default, users should pass username/password/auth_url in order to get authenticated from django_openstack_auth.

However, by default, in general we can often get auth_url from django's conf.settings.

This is useful when users(client web forms) just provide username/password to authenticate with django_openstack_auth. In this
case, they can still login if keystone version == 2.0 since keystone v2.0 only requires username/password and auth_url to authenticate. In most cases, auth_url can get from django(horizon)'s settings.

This makes it more consistent with django.contrib.auth.

Revision history for this message
Julie Pichon (jpichon) wrote :
Changed in django-openstack-auth:
status: New → In Progress
assignee: nobody → xiaohanyu (xiaohanyu1988)
Kieran Spear (kspear)
Changed in django-openstack-auth:
importance: Undecided → Low
Akihiro Motoki (amotoki)
Changed in django-openstack-auth:
milestone: none → 1.1.8
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to django_openstack_auth (master)

Reviewed: https://review.openstack.org/89323
Committed: https://git.openstack.org/cgit/openstack/django_openstack_auth/commit/?id=e239fb78e07a86daee3821ccabc3e929cf5ab79f
Submitter: Jenkins
Branch: master

commit e239fb78e07a86daee3821ccabc3e929cf5ab79f
Author: Xiao Hanyu <email address hidden>
Date: Mon Apr 21 17:21:31 2014 +0800

    Set default auth_url from django settings when auth_url is None

    This is useful when users(client web forms) just provide
    username/password to authenticate with django_openstack_auth. In this
    case, they can still login if keystone version == 2.0 since keystone
    v2.0 only requires username/password and auth_url to authenticate. In
    most cases, auth_url can get from django(horizon)'s settings.

    Fix-bug: #1316490
    Change-Id: I2ed24238adb79b6ef33e4bf20232b6a924ad0b1f

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.