diff --git a/MatrixSDK/JSONModels/Login/MXLoginSSOFlow.h b/MatrixSDK/JSONModels/Login/MXLoginSSOFlow.h index 6fbfe1e965..2aec96d6a2 100644 --- a/MatrixSDK/JSONModels/Login/MXLoginSSOFlow.h +++ b/MatrixSDK/JSONModels/Login/MXLoginSSOFlow.h @@ -31,6 +31,7 @@ extern NSString *const MXLoginSSOFlowIdentityProvidersKey; List of all SSO Identity Providers supported */ @property (nonatomic, readonly) NSArray *identityProviders; +@property (atomic, readonly) BOOL delegatedOIDCCompatibility; @end diff --git a/MatrixSDK/JSONModels/Login/MXLoginSSOFlow.m b/MatrixSDK/JSONModels/Login/MXLoginSSOFlow.m index cf6cae656c..95083abb8a 100644 --- a/MatrixSDK/JSONModels/Login/MXLoginSSOFlow.m +++ b/MatrixSDK/JSONModels/Login/MXLoginSSOFlow.m @@ -17,10 +17,12 @@ #import "MXLoginSSOFlow.h" NSString *const MXLoginSSOFlowIdentityProvidersKey = @"identity_providers"; +NSString *const MXLoginSSOFlowDelegatedOIDCCompatibilityKey = @"org.matrix.msc3824.delegated_oidc_compatibility"; @interface MXLoginSSOFlow() @property (nonatomic, readwrite) NSArray *identityProviders; +@property (atomic, readwrite) BOOL delegatedOIDCCompatibility; @end @@ -50,6 +52,7 @@ + (instancetype)modelFromJSON:(NSDictionary *)JSONDictionary loginFlow.identityProviders = identityProviders; + MXJSONModelSetBoolean(loginFlow.delegatedOIDCCompatibility, JSONDictionary[MXLoginSSOFlowDelegatedOIDCCompatibilityKey]); } return loginFlow; diff --git a/changelog.d/pr-1811.feature b/changelog.d/pr-1811.feature new file mode 100644 index 0000000000..a2a36f75bd --- /dev/null +++ b/changelog.d/pr-1811.feature @@ -0,0 +1 @@ +Delegate OIDC compatibility flag added. \ No newline at end of file