You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to use the Policy API to retrieve the IdP Discovery Policy and the corresponding rules.
We need the corresponding conditions & actions as described in the API documentation.
Explicitly we need the user identifier patterns & to which IDPs the routing is done.
This is currently not possible with the SDK.
If you call the API manually, you get the correct result:
api.listPolicyRules(String policyId) should return an implementation of PolicyRule that can be mapped to the actual result by the API (IdP Discovery Policy).
What is the actual behavior?
Currently there is no implementation which matches the rules of the IdP Discovery Policy.
If you don't cast api.listPolicyRules(String policyId) returns the implementation AccessPolicyRule which is the policy rule for the Authentication API.
Reproduction Steps?
final var idpPolicy = policyApi.listPolicies(IDP_DISCOVERY.getValue(), null, null).stream()
.toList()
.getFirst();
return policyApi.listPolicyRules(idpPolicy.getId()).stream()
.map(AccessPolicyRule.class::cast)
.toList();
Additional Information?
No response
Java Version
temurin-21.0.2
SDK Version
com.okta.sdk
okta-sdk-api
15.0.0
com.okta.sdk okta-sdk-impl 15.0.0
OS version
No response
The text was updated successfully, but these errors were encountered:
Describe the bug?
We need to use the Policy API to retrieve the IdP Discovery Policy and the corresponding rules.
We need the corresponding conditions & actions as described in the API documentation.
Explicitly we need the user identifier patterns & to which IDPs the routing is done.
This is currently not possible with the SDK.
If you call the API manually, you get the correct result:
What is expected to happen?
api.listPolicyRules(String policyId)
should return an implementation ofPolicyRule
that can be mapped to the actual result by the API (IdP Discovery Policy).What is the actual behavior?
Currently there is no implementation which matches the rules of the
IdP Discovery Policy
.If you don't cast
api.listPolicyRules(String policyId)
returns the implementationAccessPolicyRule
which is the policy rule for the Authentication API.Reproduction Steps?
Additional Information?
No response
Java Version
temurin-21.0.2
SDK Version
com.okta.sdk okta-sdk-api 15.0.0com.okta.sdk okta-sdk-impl 15.0.0
OS version
No response
The text was updated successfully, but these errors were encountered: