Questions tagged [aswebauthenticationsession]
39 questions
2
votes
1 answer
Clear cookies when using ASWebAuthenticationSession
How to clear cookies when using ASWebAuthenticationSession, the scenario is like, a different user can use the same device to login. If a user has already used it with SSO done, app is not insisting SSO for the new user.
So need to clear…

ragul ml
- 703
- 2
- 7
- 18
2
votes
1 answer
ASWebAuthenticationSession: Support own provider
My company has a couple of apps and would like to use it's own SSO service instead of using a public like google or facebook.
For SSO we would like to use ASWebAuthenticationSession. What are the requirements to that SSO service to work with…

netshark1000
- 7,245
- 9
- 59
- 116
1
vote
0 answers
ASWebAuthenticationSession w/ SwiftUI
Recently, I implemented an ASWebAuthenicationSession in my SwiftUI application to handle the OIDC Authentication of my app. My question is: Is it possible to change the size of the Safari login view that pops up to handle the…

Nate Lott
- 21
- 2
1
vote
1 answer
Google OAuth in Desktop Mac App - Error 400: redirect_uri_mismatch
I am trying to authenticate to Google OAuth 2 via a native Mac app. I set up my app in the Google Developer Console as a Desktop application, and there is nowhere to specify a redirect_uri. As I understand it, those are only available to web…

Clifton Labrum
- 13,053
- 9
- 65
- 128
1
vote
2 answers
ASWebAuthenticationSession completionHandler not called on Strava Authentication
ASWebAuthenticationSession completionHandler not called on clicking Authorize button in Strava Authentication. below given is my code.(used Using ASWebAuthenticationSession to connect to Strava account fails this link to implement.)
import…

Ben Rockey
- 920
- 6
- 23
1
vote
1 answer
How do you use ASWebAuthenticationSession, native app, https: redirect required?
I'm using ASWebAuthenticationSession for OAuth and all works well when I can use my custom scheme. However, when I try it with a service that requires a protocol in the redirect url "https://myapp.com/auth", I just see "cannot find server..." after…

CogitoErgoBibo
- 41
- 1
- 4
1
vote
1 answer
Using ASWebAuthenticationSession to connect to Strava account fails
I have trouble using the new ASWebAuthenticationSession class that is used for the OAuth2 process in iOS applications.
I want to use this class to connect my app with my Strava account.
I have the following code:
class AuthController
{
private…

inexcitus
- 2,471
- 2
- 26
- 41
0
votes
0 answers
Swift - (Strava API) Bad Request, Redirect URI Invalid
I am prompting the user to connect to Strava, and when I open the URL, I am given a page with JSON telling me that it was a bad request, and that my redirect uri was invalid.
{ "message":"Bad Request",
"errors":[{
…

Jorge Zapata
- 101
- 7
0
votes
0 answers
Oauth2 with Qt broken on iOS (QOAuth2AuthorizationCodeFlow)
I need to sign in users via Oauth2 on multiple platforms. I'm using the cross platform Qt Framework, class 'QOAuth2AuthorizationCodeFlow'. I created the following function according to some online examples, and it works on macOS but gets stuck in…

ChrisCoder
- 1
- 2
0
votes
0 answers
OAuth 2.0: SAML Bearer Assertion Flow
We have been trying to implement OAuth 2.0 SAML Bearer Assertion authentication in our enterprise iOS application. We are not receiving the SAML Assertion id response in WKWEBVIEW/Aswebauthenticationsession. Please confirm whether OAuth 2.0 SAML…

Sridhar Mari
- 1
- 1
0
votes
1 answer
ASWebAuthenticationSession callbackURLScheme won't call completion
I am trying to create a connected account with Stripe, after requesting an account ID from the API it spits out a URL to handle the auth, I am using ASWebAuthenticationSession, it looks like this:
// this is the return url I have given stripe
//…

Trevor
- 580
- 5
- 16
0
votes
0 answers
Swift ASWebAuthenticationSession callbackURLScheme not calling completion
I am setting up OAuth for Stripe using Swift/SwiftUI, Firebase, and of course, Stripe. How it works is you make some requests to get the Stripe users account ID, then create another request that spits out the OAuth URL. For testing purposes the url…

Trevor
- 580
- 5
- 16
0
votes
0 answers
ASWebAuthenticationSession crashes Chrome on MacOS
Dev environment: MacbookPro, Ventura 13.0.1 XCode 14.1
I’m implementing a feature for an existing MacOS application, which will allow users to launch Zoom (and eventually, other 3rd party services) from the application. I'm trying to implement…

Yeine
- 1
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…

Paweł Madej
- 1,229
- 23
- 42
0
votes
0 answers
SSO with Google 2fa account in WKWebview using ASWebAuthenticationSession not working right
We have a web app which has two single sign-on options sign-in with apple and sign-in with google which all works fine in the browser. On iOS we have this web app in WKWebview app shell in which we use ASWebAuthenticationSession for sign-in with…

Joel S
- 3
- 3