Tony Mack | 09080c6 | 2013-05-06 16:57:54 -0400 | [diff] [blame^] | 1 | from django.contrib.auth import authenticate |
2 | from plstackapi.openstack.manager import OpenStackManager | ||||
Tony Mack | 5f7abe0 | 2013-04-08 15:14:30 -0400 | [diff] [blame] | 3 | |
Tony Mack | 7974861 | 2013-05-01 14:52:03 -0400 | [diff] [blame] | 4 | def auth_check(username, password, tenant): |
5 | client = OpenStackClient(username=username, | ||||
6 | password=password, | ||||
7 | tenant=tenant) | ||||
Tony Mack | 5f7abe0 | 2013-04-08 15:14:30 -0400 | [diff] [blame] | 8 | client.authenticate() |
9 | return client |