diff --git a/Riot/Modules/Authentication/SSO/SSOAuthenticationService.swift b/Riot/Modules/Authentication/SSO/SSOAuthenticationService.swift index a0282c7425..706c3782d1 100644 --- a/Riot/Modules/Authentication/SSO/SSOAuthenticationService.swift +++ b/Riot/Modules/Authentication/SSO/SSOAuthenticationService.swift @@ -50,7 +50,7 @@ final class SSOAuthenticationService: NSObject { var ssoRedirectPath = SSOURLConstants.Paths.redirect - if let identityProvider = identityProvider { + if let identityProvider = identityProvider, !identityProvider.isEmpty { ssoRedirectPath.append("/\(identityProvider)") } diff --git a/changelog.d/pr-7639.bugfix b/changelog.d/pr-7639.bugfix new file mode 100644 index 0000000000..9bbf73b236 --- /dev/null +++ b/changelog.d/pr-7639.bugfix @@ -0,0 +1 @@ +Fix bug in SSO URL generation that was non-compliant with the spec. \ No newline at end of file