Skip to content

Commit

Permalink
Merge pull request #1811 from matrix-org/mauroromito/support_delegate…
Browse files Browse the repository at this point in the history
…_oidc_compatibility

delegate OIDC compatibility flag added
  • Loading branch information
Velin92 authored Aug 23, 2023
2 parents 33b67a5 + 9964bfe commit bb02714
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions MatrixSDK/JSONModels/Login/MXLoginSSOFlow.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ extern NSString *const MXLoginSSOFlowIdentityProvidersKey;
List of all SSO Identity Providers supported
*/
@property (nonatomic, readonly) NSArray<MXLoginSSOIdentityProvider*> *identityProviders;
@property (atomic, readonly) BOOL delegatedOIDCCompatibility;

@end

Expand Down
3 changes: 3 additions & 0 deletions MatrixSDK/JSONModels/Login/MXLoginSSOFlow.m
Original file line number Diff line number Diff line change
Expand Up @@ -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<MXLoginSSOIdentityProvider*> *identityProviders;
@property (atomic, readwrite) BOOL delegatedOIDCCompatibility;

@end

Expand Down Expand Up @@ -50,6 +52,7 @@ + (instancetype)modelFromJSON:(NSDictionary *)JSONDictionary

loginFlow.identityProviders = identityProviders;

MXJSONModelSetBoolean(loginFlow.delegatedOIDCCompatibility, JSONDictionary[MXLoginSSOFlowDelegatedOIDCCompatibilityKey]);
}

return loginFlow;
Expand Down
1 change: 1 addition & 0 deletions changelog.d/pr-1811.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Delegate OIDC compatibility flag added.

0 comments on commit bb02714

Please sign in to comment.