|
|
9146c7 |
commit 5ba9bb72707a90503cd4d042083ea074a0cb6b8a
|
|
|
9146c7 |
Author: John Dennis <jdennis@redhat.com>
|
|
|
9146c7 |
Date: Fri Oct 30 15:46:33 2015 -0400
|
|
|
9146c7 |
|
|
|
9146c7 |
Role maybe unknown when assertion consumer url is looked up
|
|
|
9146c7 |
|
|
|
9146c7 |
Replace the call to lasso_provider_get_metadata_one() with
|
|
|
9146c7 |
lasso_provider_get_metadata_one_for_role() so that we can exlicitly
|
|
|
9146c7 |
pass the LASSO_PROVIDER_ROLE_SP role. The former call obtains the
|
|
|
9146c7 |
role from the provider object and then calls
|
|
|
9146c7 |
lasso_provider_get_metadata_one_for_role() using that role. However
|
|
|
9146c7 |
the role will not have been set in the provider until the first request is
|
|
|
9146c7 |
processed. This means the first time we call this routine it won't
|
|
|
9146c7 |
work correctly because the role will not have been set yet, by
|
|
|
9146c7 |
explicitly passing the role we avoid this problem.
|
|
|
9146c7 |
|
|
|
9146c7 |
Signed-off-by: John Dennis <jdennis@redhat.com>
|
|
|
9146c7 |
|
|
|
9146c7 |
diff --git a/auth_mellon_util.c b/auth_mellon_util.c
|
|
|
9146c7 |
index 155bb1a..6c694b7 100644
|
|
|
9146c7 |
--- a/auth_mellon_util.c
|
|
|
9146c7 |
+++ b/auth_mellon_util.c
|
|
|
9146c7 |
@@ -1827,7 +1827,9 @@ char *am_get_assertion_consumer_service_by_binding(LassoProvider *provider, cons
|
|
|
9146c7 |
}
|
|
|
9146c7 |
|
|
|
9146c7 |
if (selected_descriptor) {
|
|
|
9146c7 |
- url = lasso_provider_get_metadata_one(provider, selected_descriptor);
|
|
|
9146c7 |
+ url = lasso_provider_get_metadata_one_for_role(provider,
|
|
|
9146c7 |
+ LASSO_PROVIDER_ROLE_SP,
|
|
|
9146c7 |
+ selected_descriptor);
|
|
|
9146c7 |
}
|
|
|
9146c7 |
|
|
|
9146c7 |
lasso_release_list_of_strings(descriptors);
|