Questions tagged [sfauthenticationsession]

30 questions
2
votes
0 answers

Automatic login for new app download after OAuth through a different app (iOS 11)

I have a website that allows sign-ins via OAuth, where a user may use a 3rd party iPhone app to log in. Later, if the same user on the same device downloads the official 1st party app through the App Store, I'd like to automatically log them in on…
Erich
  • 2,509
  • 2
  • 21
  • 24
2
votes
0 answers

Keycloak and SSO with SAML and Safari

we are using keycloak 3.4.2 to try to integrate SSO behavior (via SAML). I configured two clients in the same realm; if user logins to clientA and he opens a new tab in the same browser and logins to clientB he is successfully automatically logged…
2
votes
1 answer

SSO experience with SFSafariViewController

In the SFSafariViewController description it's written that The two cases where you would use SFAuthenticationSession are: Logging in to a third party's service using an authentication protocol (e.g. OAuth). This option works well for social…
alb445
  • 31
  • 3
2
votes
0 answers

Did SFAuthenticationSession share cookies between apps

I am using Single-Sign-On (SSO) to let user login in the iOS app. I implemented the SSO with SFAuthenticationSession. I created another app and implemented the same SSO mechanism that uses the same login URL. I was expecting that the two apps will…
koobcam
  • 21
  • 2
2
votes
1 answer

Sync with Safari - extension for SFSafariViewController

I know that SFSafariViewController has private cookie storage and other implementations. However, I know that we may write an extension for every (every native system) Swift class. I need either to share cookies with native Safari, or to open…
1
vote
0 answers

SfAuthenticationSession cant read cookies set on safari immediately

We have a web app that is shown in a native app A via SfAuthenticationSession. We have another app B that is like an auth provider which is owned by another organization. Most of our functionality is designed in the web-app. The login flow is like…
Amal Jossy
  • 75
  • 1
  • 8
1
vote
0 answers

SFAuthenticationSession completion handler not called when using Azure Facebook Authentication

I'm implementing Facebook Login on my app using Azure B2C and I have to use SFAuthenticationSession to do this because FB doesn't allow it to run inside a WKWebView. I'm basically trying to implement a SFAuthenticationSession with the URL that…
1
vote
0 answers

Share REST API session cookies with SFAuthenticationSession or SFSafariViewController

Actually, I'm calling REST API services using NSURLSession and I get the session cookies which provided headers. Now I want to share the same cookies with SFAuthenticationSession or SFSafariViewController and load the web page without login. My…
1
vote
0 answers

Limitations on SFAuthenticationSession

Apple's documentation for the SFAuthenticationSession say it allows sharing a login "along with cookies and website data". My question is whether there is any limitation to the cookies, and what the 'data' entails exactly. I have seen a case where…
Locksleyu
  • 5,192
  • 8
  • 52
  • 77
0
votes
1 answer

How to close ASWebAuthenticationSession with redirect to external website not to app universal link

I have an authorisation flow that at the end redirects to our API endpoint not to the app universal link like https://api.example.com/redirect not the app://redirect For now I am able to use WKWebView to detect that redirect was done by comparing…
0
votes
1 answer

Cannot find name 'SFAuthSession'

I am new to ionic and cordova plugins and I'm trying to implement the sharing of cookies using the cordova-plugin-sfauthenticationsession in my ionic app. Here is my code based on the documentation provided in this…
Angelo
  • 111
  • 1
  • 11
0
votes
2 answers

how do I use SFAuthenticationSession from nativescript?

I'm working on some SSO behavour in a nativescript application. I have the following Swift code that works correctly: class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() } var…
0
votes
0 answers

Call a custom URL scheme (myapp://) from a Firebase Cloud Function

I'm trying to make it possible to log into an iOS app with Instagram. I'm trying to do that with SFAuthenticationSession and unfortunately SFAuthenticationSession requires the callbackURL to be a custom one (like myapp://) and Instagram only allows…
0
votes
1 answer

SFAuthenticationSession appearance

How can I change tintColor and barTintColor on the SafariVC that is presented when using SFAuthenticationSession ? I tried to change UINavigationBar and UIToolBar and UIBarButtonItem appearance but it doesn't respect them. Thanks
Oleg Sherman
  • 2,772
  • 1
  • 21
  • 20
-1
votes
1 answer

login.microsoftonline.com does not work using Xcode 9 simulators

Anyone using AppAuth 9.1 and Xcode 9? I have successfully used the SFAuthenticationSession to call my desired login page, which then redirects me to login.microsoftonline.com.. However, I get this blank page instead. I have no issues running on my…
Rach Ng
  • 123
  • 1
  • 1
  • 10
1
2