1
0
mirror of https://github.com/bitwarden/jslib synced 2025-12-15 07:43:45 +00:00

Fix OrganizationSsoResponse not behaving correctly in production (#515)

This commit is contained in:
Oscar Hinton
2021-10-12 13:57:08 +02:00
committed by GitHub
parent 61ffb4f5d9
commit e3ab324d59

View File

@@ -10,14 +10,23 @@ export class OrganizationSsoResponse extends BaseResponse {
super(response);
this.enabled = this.getResponseProperty('Enabled');
this.data = new SsoConfigApi(this.getResponseProperty('Data'));
this.urls = this.getResponseProperty('Urls');
this.urls = new SsoUrls(this.getResponseProperty('Urls'));
}
}
type SsoUrls = {
class SsoUrls extends BaseResponse {
callbackPath: string;
signedOutCallbackPath: string;
spEntityId: string;
spMetadataUrl: string;
spAcsUrl: string;
};
constructor(response: any) {
super(response);
this.callbackPath = this.getResponseProperty('CallbackPath');
this.signedOutCallbackPath = this.getResponseProperty('SignedOutCallbackPath');
this.spEntityId = this.getResponseProperty('SpEntityId');
this.spMetadataUrl = this.getResponseProperty('SpMetadataUrl');
this.spAcsUrl = this.getResponseProperty('SpAcsUrl');
}
}