mirror of
https://github.com/bitwarden/jslib
synced 2025-12-18 01:03:26 +00:00
Fix OrganizationSsoResponse not behaving correctly in production (#515)
This commit is contained in:
@@ -10,14 +10,23 @@ export class OrganizationSsoResponse extends BaseResponse {
|
|||||||
super(response);
|
super(response);
|
||||||
this.enabled = this.getResponseProperty('Enabled');
|
this.enabled = this.getResponseProperty('Enabled');
|
||||||
this.data = new SsoConfigApi(this.getResponseProperty('Data'));
|
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;
|
callbackPath: string;
|
||||||
signedOutCallbackPath: string;
|
signedOutCallbackPath: string;
|
||||||
spEntityId: string;
|
spEntityId: string;
|
||||||
spMetadataUrl: string;
|
spMetadataUrl: string;
|
||||||
spAcsUrl: 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');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user