<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASWebAuthenticationSessionRequest",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "c:objc(cs)ASWebAuthenticationSessionRequest"
  },
  "title" : "ASWebAuthenticationSessionRequest"
}
-->

# ASWebAuthenticationSessionRequest

A login session request that a web browser receives from an app.

```
class ASWebAuthenticationSessionRequest
```

## Topics

### Interpreting a request

[`url`](/documentation/AuthenticationServices/ASWebAuthenticationSessionRequest/url)

The web address the browser should use to perform the authentication request.

[`shouldUseEphemeralSession`](/documentation/AuthenticationServices/ASWebAuthenticationSessionRequest/shouldUseEphemeralSession)

A Boolean that indicates whether the browser should use a private browsing session.

[`uuid`](/documentation/AuthenticationServices/ASWebAuthenticationSessionRequest/uuid)

A unique identifier for the request.

[`additionalHeaderFields`](/documentation/AuthenticationServices/ASWebAuthenticationSessionRequest/additionalHeaderFields)

Additional headers to send when loading the initial URL.

### Finishing a request

[`callback`](/documentation/AuthenticationServices/ASWebAuthenticationSessionRequest/callback)

The callback to listen for, which completes the request.

[`ASWebAuthenticationSession.Callback`](/documentation/AuthenticationServices/ASWebAuthenticationSession/Callback)

An object for evaluating navigation events in an authentication session.

[`complete(withCallbackURL:)`](/documentation/AuthenticationServices/ASWebAuthenticationSessionRequest/complete(withCallbackURL:))

Indicates that the browser successfully completed the authentication attempt.

[`cancelWithError(_:)`](/documentation/AuthenticationServices/ASWebAuthenticationSessionRequest/cancelWithError(_:))

Indicates that the browser canceled the authentication attempt.

### Indicating completion

[`delegate`](/documentation/AuthenticationServices/ASWebAuthenticationSessionRequest/delegate)

A delegate that the session request instance informs about authentication completion.

[`ASWebAuthenticationSessionRequestDelegate`](/documentation/AuthenticationServices/ASWebAuthenticationSessionRequestDelegate)

An interface through which the session request can inform its delegate, which is typically a browser, about the outcome of the authentication attempt.

### Deprecated symbols

[`callbackURLScheme`](/documentation/AuthenticationServices/ASWebAuthenticationSessionRequest/callbackURLScheme)

The scheme for the browser to use when returning the result of the authentication attempt to the app requesting it.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)