[java-identity-provider COMMIT] /trunk/idp-profile-impl/src/main/java/net/shibboleth/idp/profile/impl/InitializeRelyi...
noreply at shibboleth.net
noreply at shibboleth.net
Sun Dec 22 20:35:13 EST 2013
Author: scantor
Date: Sun Dec 22 20:35:13 2013
New Revision: 5076
URL: http://svn.shibboleth.net/view/java-identity-provider?rev=5076&view=rev
Log:
Attach RP context even if no relying party ID available.
Modified:
trunk/idp-profile-impl/src/main/java/net/shibboleth/idp/profile/impl/InitializeRelyingPartyContext.java
Modified: trunk/idp-profile-impl/src/main/java/net/shibboleth/idp/profile/impl/InitializeRelyingPartyContext.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-profile-impl/src/main/java/net/shibboleth/idp/profile/impl/InitializeRelyingPartyContext.java?rev=5076&r1=5075&r2=5076&view=diff
==============================================================================
--- trunk/idp-profile-impl/src/main/java/net/shibboleth/idp/profile/impl/InitializeRelyingPartyContext.java (original)
+++ trunk/idp-profile-impl/src/main/java/net/shibboleth/idp/profile/impl/InitializeRelyingPartyContext.java Sun Dec 22 20:35:13 2013
@@ -78,14 +78,14 @@
@Override
protected void doExecute(@Nonnull final ProfileRequestContext profileRequestContext) throws ProfileException {
+ final RelyingPartyContext rpContext = profileRequestContext.getSubcontext(RelyingPartyContext.class, true);
final BasicMessageMetadataContext messageSubcontext =
messageMetadataContextLookupStrategy.apply(profileRequestContext.getInboundMessageContext());
if (messageSubcontext != null) {
log.debug("{} Attaching RelyingPartyContext with relying party ID {} to ProfileRequestContext",
getLogPrefix(), messageSubcontext.getMessageIssuer());
- profileRequestContext.getSubcontext(RelyingPartyContext.class, true).setRelyingPartyId(
- messageSubcontext.getMessageIssuer());
+ rpContext.setRelyingPartyId(messageSubcontext.getMessageIssuer());
}
}
More information about the commits
mailing list