Skip to content

Update BrowserService javadoc#452

Merged
jperedadnr merged 1 commit into
gluonhq:masterfrom
jperedadnr:450-webauth-javadoc
Jun 12, 2026
Merged

Update BrowserService javadoc#452
jperedadnr merged 1 commit into
gluonhq:masterfrom
jperedadnr:450-webauth-javadoc

Conversation

@jperedadnr

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 12, 2026 10:06
@jperedadnr jperedadnr merged commit 08db5a8 into gluonhq:master Jun 12, 2026
1 check passed
@jperedadnr jperedadnr deleted the 450-webauth-javadoc branch June 12, 2026 10:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the iOS web-authentication documentation for BrowserService.launchWebAuthentication and adds an early-escape guard in the iOS native implementation when the authentication URL is invalid.

Changes:

  • Expanded BrowserService Javadoc to document iOS 17.4+ HTTPS callback requirements and configuration steps.
  • Added an iOS native NSURL nil-check to fail fast and return a null authentication result when the auth URL can’t be parsed.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
modules/browser/src/main/native/ios/Browser.m Adds validation for invalid auth URLs before starting ASWebAuthenticationSession.
modules/browser/src/main/java/com/gluonhq/attach/browser/BrowserService.java Updates Javadoc for iOS HTTPS callback setup and clarifies iOS configuration requirements.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +142 to +146
if (nsUrl == nil) {
AttachLog(@"Invalid authentication URL: %@", url);
sendAuthResult(nil);
return;
}
Comment on lines +143 to +145
AttachLog(@"Invalid authentication URL: %@", url);
sendAuthResult(nil);
return;
Comment on lines +142 to +146
if (nsUrl == nil) {
AttachLog(@"Invalid authentication URL: %@", url);
sendAuthResult(nil);
return;
}
Comment on lines +124 to +126
* <p><b>iOS Configuration</b>: none for the custom-scheme form; the HTTPS form requires the
* Associated Domains capability and {@code webcredentials} entitlement described above.</p>
*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants