-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(jans-auth-server): during encryption AS must consider client's jw…
…ks too, not only jwks_uri #1273
- Loading branch information
Showing
7 changed files
with
37 additions
and
21 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
jans-auth-server/common/src/main/java/io/jans/as/common/util/CommonUtils.java
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package io.jans.as.common.util; | ||
|
||
import com.google.common.base.Strings; | ||
import io.jans.as.common.model.registration.Client; | ||
import io.jans.as.model.util.JwtUtil; | ||
import org.json.JSONObject; | ||
|
||
/** | ||
* @author Yuriy Zabrovarnyy | ||
*/ | ||
public class CommonUtils { | ||
|
||
private CommonUtils() { | ||
} | ||
|
||
public static JSONObject getJwks(Client client) { | ||
return Strings.isNullOrEmpty(client.getJwks()) | ||
? JwtUtil.getJSONWebKeys(client.getJwksUri()) | ||
: new JSONObject(client.getJwks()); | ||
} | ||
} |
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
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