Skip to content

Commit c09d197

Browse files
committed
remove unnecessary logic
1 parent 12a474b commit c09d197

2 files changed

Lines changed: 0 additions & 15 deletions

File tree

src/auth/auth-config.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -884,12 +884,8 @@ export class OIDCConfig implements OIDCAuthProviderConfig {
884884
if (typeof response.clientSecret !== 'undefined') {
885885
this.clientSecret = response.clientSecret;
886886
}
887-
// If we do not set responseType, we have idToken flow
888-
// set to true by default.
889887
if (typeof response.responseType !== 'undefined') {
890888
this.responseType = response.responseType;
891-
} else {
892-
this.responseType = { idToken: true };
893889
}
894890
}
895891

test/unit/auth/auth-config.spec.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -794,17 +794,6 @@ describe('OIDCConfig', () => {
794794
expect(config.responseType).to.deep.equal(expectedResponseType);
795795
});
796796

797-
it('should set readonly property default responseType', () => {
798-
const testResponse = deepCopy(serverResponse);
799-
delete testResponse.clientSecret;
800-
delete testResponse.responseType;
801-
const expectedResponseType = {
802-
idToken: true,
803-
};
804-
const testConfig = new OIDCConfig(testResponse);
805-
expect(testConfig.responseType).to.deep.equal(expectedResponseType);
806-
});
807-
808797
it('should throw on missing issuer', () => {
809798
const invalidResponse = deepCopy(serverResponse);
810799
delete invalidResponse.issuer;

0 commit comments

Comments
 (0)