Class OidcIssuerPolicy
java.lang.Object
com.revetsec.oidc.OidcIssuerPolicy
Exact issuer validation or the fixed Microsoft Entra common/organizations v2.0 trust policy.
The application predicate sees only signature-authenticated lowercase tenant GUIDs. It must be fast,
thread-safe and cooperative: it runs synchronously on the caller's thread and cannot be preempted.
Sharing keys across Entra clients requires the same policy instance; distinct predicates are not equivalent.
Consumer tenants use the same rule; deny them unless consumer accounts are intended. Hosted behavior is unproven.
- Since:
- 1.0.0
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull OidcIssuerPolicyReturns the default exact issuer policy, with no tenant callback.static @NonNull OidcIssuerPolicyfromMicrosoftEntraMultiTenant(@NonNull Predicate<@NonNull String> allowedTenant) Selects only the fixed public-cloud common/organizations v2.0 issuer template.toString()Redacts the application predicate and tenant policy contents.
-
Method Details
-
exactInstance
Returns the default exact issuer policy, with no tenant callback.- Returns:
- exact issuer policy
- Since:
- 1.0.0
-
fromMicrosoftEntraMultiTenant
public static @NonNull OidcIssuerPolicy fromMicrosoftEntraMultiTenant(@NonNull Predicate<@NonNull String> allowedTenant) Selects only the fixed public-cloud common/organizations v2.0 issuer template. The callback is never called by build, metadata parsing or restored session references. False rejects the tenant; a throwing callback produces a fixed configuration failure without its cause.- Parameters:
allowedTenant- trusted application decision for a verified lowercase tenant GUID- Returns:
- selected policy; share this same instance when sharing common keys
- Throws:
NullPointerException- if the predicate is null- Since:
- 1.0.0
-
toString
-