commit e40938cbb426e8e0ddf8d60d3a38c72c2d51ea6d
Author: Prashanth Pai <email address hidden>
Date: Fri Feb 26 18:37:34 2016 +0530
Fix changing of auth_type in existing deployments
Problem:
If an existing swauth deployment changes `auth_type` in conf file to a
different one (for example: sha1 to sha512), all attempts to authorize
existing/old users will fail because of change in encoder type.
Fix:
With this change, the credentials match is done using an encoder with
which the password was initially encoded. This allows swauth deployments
to change auth_type and old users will still be able to authorize.
Closes-Bug: 1516980
Change-Id: I8a5c397d0796062f4109c59b6dc61b14d4a97e4b
Signed-off-by: Prashanth Pai <email address hidden>
Reviewed: https:/ /review. openstack. org/285292 /git.openstack. org/cgit/ openstack/ swauth/ commit/ ?id=e40938cbb42 6e8e0ddf8d60d3a 38c72c2d51ea6d
Committed: https:/
Submitter: Jenkins
Branch: master
commit e40938cbb426e8e 0ddf8d60d3a38c7 2c2d51ea6d
Author: Prashanth Pai <email address hidden>
Date: Fri Feb 26 18:37:34 2016 +0530
Fix changing of auth_type in existing deployments
Problem:
If an existing swauth deployment changes `auth_type` in conf file to a
different one (for example: sha1 to sha512), all attempts to authorize
existing/old users will fail because of change in encoder type.
Fix:
With this change, the credentials match is done using an encoder with
which the password was initially encoded. This allows swauth deployments
to change auth_type and old users will still be able to authorize.
Closes-Bug: 1516980 2f4109c59b6dc61 b14d4a97e4b
Change-Id: I8a5c397d079606
Signed-off-by: Prashanth Pai <email address hidden>