1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-14 02:08:50 +02: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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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');
}
}