Skip to content

Commit

Permalink
renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
Velin92 committed Aug 23, 2023
1 parent e435ce5 commit 049eb8c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ class AuthenticationService: NSObject {
if identityProviders.isEmpty {
// Provide a backup for homeservers that support SSO but don't offer any identity providers
// https://spec.matrix.org/latest/client-server-api/#client-login-via-sso
identityProviders = [SSOIdentityProvider(name: "SSO", brand: nil, iconURL: nil, isOIDC: loginFlow?.isOIDC ?? false)]
identityProviders = [SSOIdentityProvider(name: "SSO", brand: nil, iconURL: nil, isOIDC: loginFlow?.delegatedOIDCCompatibility ?? false)]
}

return LoginFlowResult(supportedLoginTypes: loginFlowResponse.flows?.compactMap { $0 } ?? [],
Expand Down Expand Up @@ -323,7 +323,7 @@ extension MXLoginSSOIdentityProvider {

extension MXLoginSSOFlow {
@objc var ssoIdentityProviders: [SSOIdentityProvider] {
identityProviders.map { $0.makeSSOIdentityProvider(isOIDC: isOIDC)}
identityProviders.map { $0.makeSSOIdentityProvider(isOIDC: delegatedOIDCCompatibility)}
}
}

0 comments on commit 049eb8c

Please sign in to comment.