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
Salesforce login Page is not showing up #82
Comments
@degreecloud have you tried calling any method that makes a request to Salesforce, that is, any method in the |
No. I am not calling any method of salesforce. I created a new project with pod installation of swiftly salesforce and configure app delegate and info.plist as per steps given in document but not getting that login screen. |
@degreecloud it's working as designed. Some apps don't require immediate login and display of the login form. If you do want to display the login form right away on app launch, then you could call the following in your app delegate, for example, and just ignore the result: salesforce.identity() |
@degreecloud BTW there is no longer (as of version 7) any configuration required in the info.plist file. Please see the current README. |
Thank you so much . It works! |
Hello,
In my ios app, I want to switch between production and sandbox urls.
This function we want on login page. As salesforce sdk shows setting
button on navigation bar to change production to sandbox and vice-versa.
We want same button in swiftly salesforce. Could you please suggest m
how we can acheive this. Its really important.
Please revert soon.
…On 2018-07-24 04:54, Michael Epstein wrote:
@degreecloud [1] BTW there is no longer (as of version 7) any
configuration required in the info.plist file. Please see the current
README [2].
--
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub [3], or mute the
thread [4].
Links:
------
[1] https://github.com/degreecloud
[2]
https://github.com/mike4aday/SwiftlySalesforce/blob/master/README.md
[3]
#82 (comment)
[4]
https://github.com/notifications/unsubscribe-auth/AnpwN45GaScxQw6f9r4vu5vUUbFRai9iks5uJvzxgaJpZM4Va7MF
--
Thanks and Regards,
Komal Dhingra
|
@degreecloud there are a couple ways - at least - to do this:
OR
|
Users can log into the sandbox at https://test.salesforce.com by appending .sandbox_name to their Salesforce usernames. For example, if a username for a production organization is user1@acme.com, and the sandbox is named “test”, then the modified username to log into the sandbox is user1@acme.com.test. |
@pbrondum , I am assuming customer do not know about production url and sandbox url then how he can set urls ? |
@degreecloud - the 1st suggestion, having the user click through "Forgot Password" on the login form is not very intuitive. (How does the user know that clicking "Forgot Password" will lead to an option to change the login server? And the user can't go back, as you noted.) But it's a Salesforce-hosted form, outside of my control. It's displayed as part of the OAuth2 'user-agent' flow, which is the prescribed way to authenticate users so your app doesn't handle credentials. I suggest this option for changing to sandbox login only because it's the easiest for the developer - no code required. You could use my 2nd suggestion, however, dynamically at runtime. Build the |
@degreecloud - on re-reading your comment, I noted the significance of "...We want both sandbox and production in login web form..." Unfortunately, I can't provide that. The webform is hosted by Salesforce, and launched by Apple's new SFAuthenticationSession. As far as I know, there is no way to insert extra buttons or links in the web form at runtime. |
Ok no problem. Thanks for clearing doubts.
…On 2018-08-06 15:30, Michael Epstein wrote:
@degreecloud [1] - on re-reading your comment, I noted the
significance of "...We want both sandbox and production in login web
form..." Unfortunately, I can't provide that. The webform is hosted by
Salesforce, and launched by Apple's new SFAuthenticationSession [2].
As far as I know, there is no way to insert extra buttons in there at
runtime.
--
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub [3], or mute the
thread [4].
Links:
------
[1] https://github.com/degreecloud
[2]
https://developer.apple.com/documentation/safariservices/sfauthenticationsession
[3]
#82 (comment)
[4]
https://github.com/notifications/unsubscribe-auth/AnpwN1nW223SJRblnEN0dxZqaqloZ6Yeks5uOLVZgaJpZM4Va7MF
--
Thanks and Regards,
Komal Dhingra
|
Hello,
I am facing new issue in logout from app. For first time we are showing
production view for login but if we want to go sandbox through custom
domain and there using test.salesforce.com link and then I am stuck did
not find method to logout from there because connected app is set to
show production and for sandbox, app is unable to logout since firstly
app is iniated with production url.
Please suggest some method in this situation. Its really urgent.
…On 2018-08-06 22:30, ***@***.*** wrote:
Ok no problem. Thanks for clearing doubts.
On 2018-08-06 15:30, Michael Epstein wrote:
> @degreecloud [1] - on re-reading your comment, I noted the
> significance of "...We want both sandbox and production in login web
> form..." Unfortunately, I can't provide that. The webform is hosted by
> Salesforce, and launched by Apple's new SFAuthenticationSession [2].
> As far as I know, there is no way to insert extra buttons in there at
> runtime.
>
> --
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub [3], or mute the
> thread [4].
>
> Links:
> ------
> [1] https://github.com/degreecloud
> [2]
> https://developer.apple.com/documentation/safariservices/sfauthenticationsession
> [3]
> #82 (comment)
> [4]
> https://github.com/notifications/unsubscribe-auth/AnpwN1nW223SJRblnEN0dxZqaqloZ6Yeks5uOLVZgaJpZM4Va7MF
--
Thanks and Regards,
Komal Dhingra
|
@degreecloud sorry, I don't understand. Would you rephrase and/or include relevant code sample? |
Hello,
I am having problem in custom API. I am using below API:
first {
salesforce.apex(method: .post, path: /Lead, parameters: nil, body:
jsonData, contentType: "application/json")
}.then {
result in
}.catch {
error in
}
And getting error: "The operation could not be
completed.(SwiftlySalesforce.RequestError error 1.)"
Please help me out with this.
Thanks
Komal
|
I have added swiftly salesforce through cocoa pods and successfully configured app delegate file but instead of opening salesforce login page on safari, app shows my rootViewcontroller. Please suggest what i should try?
The text was updated successfully, but these errors were encountered: