File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments