Closed dominique-p closed 7 years ago
Blow you'll find a patch to PreAuthorizeUserApprovalAction.java
that fixes the issue.
I thought it would help me to see more details about my other issue https://github.com/uchicago/shibboleth-oidc/issues/30#issuecomment-274073279 but it did not bring anything new. :-(
diff PreAuthorizeUserApprovalAction.java.01 PreAuthorizeUserApprovalAction.java
229c229
< log.debug("Response will contain the following scopes", sortedScopes);
---
> log.debug("Response will contain the following scopes {}", sortedScopes);
233c233
< log.debug("Response will contain the following claims for scopes", claimsForScopes.keySet());
---
> log.debug("Response will contain the following claims for scopes {}", claimsForScopes.keySet());
282c282
< log.debug("Final claims for system scope {} are", systemScope.getValue(), claimValues);
---
> log.debug("Final claims for system scope {} are {}", systemScope.getValue(), claimValues);
Excellent. Would you mind turning these into a pull request? Are you familiar with that process?
Not yet, though I am learning... :-)
But the old school patch command should work for you:
patch -b PreAuthorizeUserApprovalAction.java /tmp/PreAuthorizeUserApprovalAction.java.patch.txt
Note: The attached patch file was generated with
diff -u PreAuthorizeUserApprovalAction.java.01 PreAuthorizeUserApprovalAction.java >/tmp/PreAuthorizeUserApprovalAction.java.patch.txt
Thank you. This is fixed, and I also found a few other instances where placeholders for logs were mismatched. Pushed.
It seems that some debugging code does not display the expected values in the following log lines:
One would expect a list of claims after "
Final claims for system scope phone are
" and "Response will contain the following claims for scopes
" and a list of scopes after "Response will contain the following scopes". At least this what the code should do, cf. https://github.com/uchicago/shibboleth-oidc/blob/master/idp-oidc-impl/src/main/java/net/shibboleth/idp/oidc/flow/PreAuthorizeUserApprovalAction.java#L282 https://github.com/uchicago/shibboleth-oidc/blob/master/idp-oidc-impl/src/main/java/net/shibboleth/idp/oidc/flow/PreAuthorizeUserApprovalAction.java#L233 https://github.com/uchicago/shibboleth-oidc/blob/master/idp-oidc-impl/src/main/java/net/shibboleth/idp/oidc/flow/PreAuthorizeUserApprovalAction.java#L229Note: the above log lines were extracted from the log posted in another issue's comment: https://github.com/uchicago/shibboleth-oidc/issues/30#issuecomment-274073279