-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Branding login page not supported #63
Comments
@abhijeetkokane are you referring to custom branded communities login? If so, see issue #3 - if not, please provide a short, but clear, code sample to illustrate the issue. |
Hi @mike4aday, Thank you for your response. public func login(url: URL) throws { guard !loggingIn else { guard let window = UIApplication.shared.keyWindow else { // Replace current root view controller with Safari view controller for login Below is the code for handle the callback for reedit into the app after successful login: /// Handles the redirect URL returned by Salesforce after OAuth2 authentication and authorization. var result:LoginResult // Note: docs are wrong - error information may be in URL fragment or in query string... // Restore the original root view controller
} I have noticed that, for login using default page, the callback method are getting invoked, but for the custom branding login page, the callback methods are not getting invoked. |
@abhijeetkokane re. the code you included: is that the original Swiftly Salesforce code, or did you modify it? It's hard for me to tell if that is an as-is paste from Swiftly Salesforce source, or if you modified part(s). If modified, just include the modified segment(s). Does the suggested workaround mentioned in issue #3 help? |
@abhijeetkokane I'm closing this as no response - if it remains an issue, just reopen. |
Hi @mike4aday Sorry for not replying for a while, but we are still facing the same issue: We have added following in your sample project on git: Login host url - https://spacecommunity-developer-edition.ap7.force.com/mycommunity Consumer Key Consumer Secret Following are the login credentials: Email : harshal@harshal.com After login using above credentials, it is not getting redirected to iOS app. Could you please help us and look into this. After successful login the control should redirect to iOS app. |
Hi @abhijeetkokane have you tried the suggestion in issue #3 ? (Also in keeping with security best practices, please don't post your credentials, like password, consumer secret -- I recommend changing all those that have been posted in this thread ASAP.) |
Hi @mike4aday We have tried your solution but no luck so far. Could you please let us know are you able to navigate back to app after login. |
@abhijeetkokane what is the callback URL configured in the connected app? |
We have set the callback URL - "sfdc://success" |
@abhijeetkokane is this still an issue? Please try with new version 7 and re-open if there's still a problem. |
• Login working fine when we using default login page
• When we use custom branding login page
• It loads the login url in SFSafariViewController properly, but after click on login its redirects me to chatter page in same window, which is incorrect flow.
• In case of default login page, it redirects me to my application, which is correct flow.
• For custom branding we are using vfx page in backend.
• I need to implement custom branding login in my application and navigate to my application after click on login
Kindly can you guys help me with this.
Thanks in advance ...
The text was updated successfully, but these errors were encountered: