forked from keycloak/keycloak
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Takashi Norimatsu <[email protected]>
- Loading branch information
Showing
6 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,6 +67,8 @@ | |
import java.util.Map; | ||
import java.util.function.BiConsumer; | ||
|
||
import static org.keycloak.protocol.oidc.par.endpoints.ParEndpoint.PAR_DPOP_PROF_JKT; | ||
|
||
/** | ||
* @author <a href="mailto:[email protected]">Stian Thorgersen</a> | ||
*/ | ||
|
@@ -185,6 +187,12 @@ private Response process(final MultivaluedMap<String, String> params) { | |
return redirectErrorToClient(parsedResponseMode, ex.getError(), ex.getErrorDescription()); | ||
} | ||
|
||
// If DPoP Proof existed with PAR request, its public key needs to be matched with the one with Token Request afterward | ||
String dpopJkt = session.getAttribute(PAR_DPOP_PROF_JKT, String.class); | ||
if (request.getDpopJkt() == null) { | ||
request.setDpopJkt(dpopJkt); | ||
} | ||
|
||
try { | ||
session.clientPolicy().triggerOnEvent(new AuthorizationRequestContext(parsedResponseType, request, redirectUri, params)); | ||
} catch (ClientPolicyException cpe) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters