mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
Fixing unreleased Okta IdP signing cert issue which prevented from
setting up Okta conditional access.
## Testing
- [x] QA'd all new/changed functionality manually
For unreleased bug fixes in a release candidate, one of:
- [x] Confirmed that the fix is not expected to adversely impact load
test results
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Enhanced the IdP signing certificate download feature with an
interactive button that provides real-time loading indicators and
improved error handling. Users now receive immediate feedback during the
download process with helpful error messages if any issues occur.
* **Chores**
* Removed unused import references.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: jacobshandling <61553566+jacobshandling@users.noreply.github.com>
45 lines
1.2 KiB
TypeScript
45 lines
1.2 KiB
TypeScript
import sendRequest from "services";
|
|
|
|
import endpoints from "utilities/endpoints";
|
|
|
|
export type TriggerMSConditionalStatusResponse = {
|
|
microsoft_authentication_url: string;
|
|
};
|
|
export type ConfirmMSConditionalAccessResponse = {
|
|
configuration_completed: boolean;
|
|
setup_error: string;
|
|
};
|
|
|
|
const conditionalAccessService = {
|
|
triggerMicrosoftConditionalAccess: (
|
|
msTenantId: string
|
|
): Promise<TriggerMSConditionalStatusResponse> => {
|
|
return sendRequest("POST", endpoints.CONDITIONAL_ACCESS_MICROSOFT, {
|
|
microsoft_tenant_id: msTenantId,
|
|
});
|
|
},
|
|
confirmMicrosoftConditionalAccess: (): Promise<ConfirmMSConditionalAccessResponse> => {
|
|
return sendRequest("POST", endpoints.CONDITIONAL_ACCESS_MICROSOFT_CONFIRM);
|
|
},
|
|
deleteMicrosoftConditionalAccess: () => {
|
|
return sendRequest("DELETE", endpoints.CONDITIONAL_ACCESS_MICROSOFT);
|
|
},
|
|
getIdpAppleProfile: (): Promise<string> => {
|
|
return sendRequest(
|
|
"GET",
|
|
endpoints.CONDITIONAL_ACCESS_IDP_APPLE_PROFILE,
|
|
undefined,
|
|
"text"
|
|
);
|
|
},
|
|
getIdpSigningCert: (): Promise<Blob> => {
|
|
return sendRequest(
|
|
"GET",
|
|
endpoints.CONDITIONAL_ACCESS_IDP_SIGNING_CERT,
|
|
undefined,
|
|
"blob"
|
|
);
|
|
},
|
|
};
|
|
|
|
export default conditionalAccessService;
|