Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGES.ja.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
変更点
======

- `Service` クラス
* `isHttpAliasProhibited()` メソッドを追加。
* `setHttpAliasProhibited(boolean)` メソッドを追加。


4.31 (2025 年 11 月 25 日)
--------------------------

Expand Down
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
CHANGES
=======

- `Service` class
* Added the `isHttpAliasProhibited()` method.
* Added the `setHttpAliasProhibited(boolean)` method.


4.31 (2025-11-25)
-----------------

Expand Down
95 changes: 94 additions & 1 deletion src/main/java/com/authlete/common/dto/Service.java
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@
*/
public class Service implements Serializable
{
private static final long serialVersionUID = 87L;
private static final long serialVersionUID = 88L;


/*
Expand Down Expand Up @@ -1951,6 +1951,16 @@ public class Service implements Serializable
private boolean cimdQueryPermitted;


/**
* Whether to prohibit client ID aliases that start with {@code https://}
* or {@code http://}.
*
* @since 4.32
* @since Authlete 3.0.22
*/
private boolean httpAliasProhibited;


/**
* Get the service number.
*
Expand Down Expand Up @@ -4302,6 +4312,8 @@ public Service setErrorUriOmitted(boolean omitted)
* {@code false} if the feature is disabled.
*
* @since 2.2
*
* @see #isHttpAliasProhibited()
*/
public boolean isClientIdAliasEnabled()
{
Expand All @@ -4328,6 +4340,8 @@ public boolean isClientIdAliasEnabled()
* {@code this} object.
*
* @since 2.2
*
* @see #isHttpAliasProhibited()
*/
public Service setClientIdAliasEnabled(boolean enabled)
{
Expand Down Expand Up @@ -12708,4 +12722,83 @@ public Service setCimdQueryPermitted(boolean permitted)

return this;
}


/**
* Get the flag that indicates whether to prohibit client ID aliases that
* start with {@code https://} or {@code http://}.
*
* <p>
* The primary purpose of this flag is to prevent the use of client ID
* aliases that may conflict with entity IDs in <a href=
* "https://openid.net/specs/openid-federation-1_0.html">OpenID Federation
* 1.0</a> or metadata document locations in <a href=
* "https://datatracker.ietf.org/doc/draft-ietf-oauth-client-id-metadata-document/"
* >CIMD</a>.
* </p>
*
* <p>
* For backward compatibility, the default value of this flag is set to
* {@code false}, but it is recommended to set it to {@code true} whenever
* possible.
* </p>
*
* @return
* {@code true} if client ID aliases that start with {@code https://}
* or {@code http://} are prohibited.
*
* @since 4.32
* @since Authlete 3.0.22
*
* @see <a href="https://openid.net/specs/openid-federation-1_0.html">
* OpenID Federation 1.0</a>
* @see <a href="https://datatracker.ietf.org/doc/draft-ietf-oauth-client-id-metadata-document/">
* OAuth Client ID Metadata Document</a>
*/
public boolean isHttpAliasProhibited()
{
return httpAliasProhibited;
}


/**
* Set the flag that indicates whether to prohibit client ID aliases that
* start with {@code https://} or {@code http://}.
*
* <p>
* The primary purpose of this flag is to prevent the use of client ID
* aliases that may conflict with entity IDs in <a href=
* "https://openid.net/specs/openid-federation-1_0.html">OpenID Federation
* 1.0</a> or metadata document locations in <a href=
* "https://datatracker.ietf.org/doc/draft-ietf-oauth-client-id-metadata-document/"
* >CIMD</a>.
* </p>
*
* <p>
* For backward compatibility, the default value of this flag is set to
* {@code false}, but it is recommended to set it to {@code true} whenever
* possible.
* </p>
*
* @param prohibited
* {@code true} to prohibit client ID aliases that start with
* {@code https://} or {@code http://}.
*
* @return
* {@code this} object.
*
* @since 4.32
* @since Authlete 3.0.22
*
* @see <a href="https://openid.net/specs/openid-federation-1_0.html">
* OpenID Federation 1.0</a>
* @see <a href="https://datatracker.ietf.org/doc/draft-ietf-oauth-client-id-metadata-document/">
* OAuth Client ID Metadata Document</a>
*/
public Service setHttpAliasProhibited(boolean prohibited)
{
this.httpAliasProhibited = prohibited;

return this;
}
}