Closed aqib-bhat closed 1 year ago
@aqib-bhat Thanks for bringing this to our attention and I apologize for the inconvenience. I've entered an internal issue to investigate further. This will need to be prioritized against other work.
Internal Ref: OKTA-537890
Hi @aqib-bhat,
Thank you for reporting this issue. You mentioned that deactivating works when you hit the API directly. Would you mind sharing what that request looks like? Also, can you please share the requests the UI makes?
Thank you @bryanapellanes-okta for the quick acknowledgement and assurance!
Hi @laura-rodriguez Hitting the API directly, the request is:
@laura-rodriguez On the UI, when I deactivate an IDP with a routing rule, in the Network tab of Chrome Developer Tools, I see a call: and Request Payload:
Thanks for sharing @aqib-bhat. According to the API docs, the SDK is making the request correctly. I wonder if this could be a UI sync issue 🤔 . What happens if you get the rules via the SDK after calling DeactivateAsync
, do they look ACTIVE?
@laura-rodriguez I had also suspected initially that this is likely an eventual consistency issue. However, the status of the rule did not change even after a few hours. As you suggested, I also just tested again:
Hi @aqib-bhat,
I wasn't able to reproduce this issue. I also added an integration test to verify that routing rules are deactivated when an IDP is deactivated here.
I confirmed with the API team that routing rules are deactivated ONLY if it's not being used by other IDPs. Please, let me know if you're still facing this issue, and I can redirect your case to customer support if necessary.
Closing due to inactivity.
Describe the bug?
OktaClientObject.IdentityProviders.DeactivateIdentityProviderAsync(someOktaIdpId, cancellationToken);
results in the IDP getting deactivated but a routing rule made for it remains Active.IOktaClient
.PostAsync<IdentityProvider>
but that also behaved the same way.P.S. On a side note: The Okta UI has also a weird bug where on trying to deactivate an IDP, the warning says that the following routing rules will be disabled but some of them are not pointing to the IDP being disabled but just happen to match part of the name. On clicking OK though, only the actually related routing rule gets deactivated but the message is confusing.
What is expected to happen?
Just like what happens in the UI and through direct calls to the Okta API, deactivating an IDP through the Okta dotnet SDK should result in the IDP's routing rule(s) also getting deactivated.
What is the actual behavior?
Unlike what happens in the UI and through direct calls to the Okta API, deactivating an IDP through the Okta dotnet SDK only results in the IDP getting deactivated while it's routing rule(s) remain(s) Active.
Reproduction Steps?
OktaClientObject.IdentityProviders.DeactivateIdentityProviderAsync(someOktaIdpId, cancellationToken);
).Additional Information?
Ref:
.NET Version
6
SDK Version
5.6.0
OS version