Search results for

ASWebAuthenticationSession cookie

1,295 results found

Post

Replies

Boosts

Views

Activity

Reply to safari-not-sending-cookie-even-after-setting-samesite-none-secure
We have already given the authentication in all the API services. And we are getting the valid cookie in browser. But cookie is not storing in the header request while calling the API using the JavaScript method. We are not using the swift and objective code in my application. Kindly suggest how we can set the cookie in header request using the JavaScript in the Cordova framework?
Topic: Safari & Web SubTopic: General Tags:
Nov ’24
Reply to HTTPCookieProperty's "secure" property seems broken
I disagree with your assessment that this is kind of how HTTP cookies work. The RFC you link is for how a server needs to interpret a cookie sent to it not how a client should implement creation of one. I think others would likely agree that this is a wart and that setting secure to false would result in the correct behavior of not setting the secure attribute on the cookie. It also make coding something simple like .secure: environment().isSecure() into another if statement that every person coming after will question why it's done this way and then eventually figure it out. The only reason I agree that this likely needs to stay the same is it's a pretty big breaking change at this point and many apps are likely working by accident as setting .secure to anything other than true makes no sense. Anyway... wasted more hours than I would like to admit on this as I was also adding a new networking library as well as adding cookies to the app so I spent a lot of time debugging t
Nov ’24
Get cookies - Safari web extension macOS 18.1
I have a macOS safari web extension and It can read the cookies of my website, but when I fully close safari and open it again the extension can't read the cookies anymore. When I try to inspect the cause in the console (safari > develop > web extension background content) everything starts to work again. My safari version is 18.1 (19619.2.8.111.1, 19619)
4
0
590
Oct ’24
Reply to Its time for SwiftUI on the web! (WASM, WEBGL)
I'm a freelancer in iOS development but every now and then I get a request to make small websites for distant relatives or friends or acquaintances of them. I don't like those heavy weight websites that take ages to load (hello WIX) with tons of js and those damned cookies. On the other hand I don't like to make static websites myself in html like in the 90s which look super sparse (though they load very fast). What I would really like is to make use of my Swift/SwiftUI knowledge in web. Been thinking about some minimal framework or some kind of method to do that. Found some toy projects but I don't want to bring the iOS L&F to the web, I want websites to look like websites but made with SwiftUI. No more CSS and HTML. Compiling SwiftUI to html is the first naive idea that comes to mind. But I lack the broad knowledge of web technologies out there so I find myself unable to devise anything that could nearly rival other sophisticated frameworks.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’24
Reply to safari-not-sending-cookie-even-after-setting-samesite-none-secure
Added more point to clear the issue about cookie store issue in safari browser. Our application uses cookies to remember user login. Every auth API call we make, the browser attaches server-set HTTPOnly cookie with the API request and gets a response. This behaviour seems to be broken in safari after Sequoia release. I read about the cross-site cookie security implemented by safari and our server team added SameSite=None;Secure while setting the cookie. Even after that, it still doesn't work. Cookies are stored in the safari browser but it is not added into the request header on API call. Javascript API code to make requests with httpclient to get the response using Cordova framework in mobile app. The problem is on iOS/safari , the subsequent request does not send the cookie Header with the value. Android is working fine with the same code. Only Issue in iOS device. System Information- OS - Sequoia 15.1 Safari - 18. iOS Simulator - 18.1 Mobile ap
Topic: Safari & Web SubTopic: General Tags:
Nov ’24
Authentication for Safari Web Extensions
My Safari Web Extension got rejected with the following reason: Guideline 4.0 - Design The user is taken to a new Safari window or tab to sign in or register for an account, which provides a poor user experience. Is this right? First of all Design guide line 4.0 does not seem to mention antyhing about this topic. Second, I've seen many, many web extensions that opens a new tab to let you sign in or register. Including top recommended ones like Grammarly, PayPal Honey and Pocket. The review also mentions: It is acceptable to take users to the default web browser for some sign in or account registration options if ASWebAuthenticationSession is used for the session. That does not seem right either, since that is primarily designed for native apps. I'm pretty sure the extensions I've tried that open a tab for authentication does not use that. It is like my Safari Web Extension is being reviewed like a Mac OS app. What am I'm doing wrong?
1
0
471
Nov ’24
Validate mail, already validated!
I claim that I paid the enrollment to the developer program and have the validated Apple ID emails for a long time.Whenever I try to download a beta, the site will refer me to the validation page of the mail.I emptied the browser cache and deleted cookies, I also tried it from another mac.Does anyone know how I can solve it?Thanks so much
1
0
11k
Aug ’17
How to get Password AutoFill to work with ASWebAuthenticationSession?
I have a sample HTML form that follows the password auto-fill requirements. When navigating to the web page without the app, using the built-in Safari app, the native Password AutoFill dialogs for the login and signup forms correctly show:However, when viewed within the app, the same flow does not trigger the dialog in neither the login or signup submission. It simply dismisses the login/signup screen without any error.This is how my view controller looks like:class ViewController: UIViewController { @IBAction func didTapLoginButton() { let session = ASWebAuthenticationSession( url: URL(string: https://example.com/login.html)!, callbackURLScheme: customscheme) { print($0, $1) } session.prefersEphemeralWebBrowserSession = true session.presentationContextProvider = self session.start() } } extension ViewController: ASWebAuthenticationPresentationContextProviding { func presentationAnchor(for session: ASWebAuthenticationSession) -> ASPresentationAnchor { view.window! } }Is there a way to
5
0
2.4k
Apr ’23
Unable to enroll in iOS dev program
I have been trying for the last 2 weeks to enroll in the developer program, but get an error every time. I've already tried contacting support through email and my case has been bounced around to 3 different people. Is ANYONE else having this problem since I can't get an answer from support, and has anyone been able to resolve this? The support techs reccomended I verify the info on my account, use safari, clear the cache and cookies, and try another computer, yet I still get an error after completing all of these instructions. I really want to get into iOS development and swift, but honestly this whole experience is putting me off contining.This is the error I get
6
0
4.5k
Jul ’15