<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASAuthorization/OpenIDOperation",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Authentication Services",
      "AuthenticationServices"
    ],
    "preciseIdentifier" : "c:@T@ASAuthorizationOpenIDOperation"
  },
  "title" : "ASAuthorization.OpenIDOperation"
}
-->

# ASAuthorization.OpenIDOperation

The kinds of operations that you can perform with OpenID authentication.

```
struct OpenIDOperation
```

## Discussion

Use one of these values as the [`requestedOperation`](/documentation/AuthenticationServices/ASAuthorizationOpenIDRequest/requestedOperation) property in an OpenID request that you make with an instance of either [`ASAuthorizationAppleIDRequest`](/documentation/AuthenticationServices/ASAuthorizationAppleIDRequest) or [`ASAuthorizationSingleSignOnRequest`](/documentation/AuthenticationServices/ASAuthorizationSingleSignOnRequest).

## Topics

### Operation Types

[`operationLogin`](/documentation/AuthenticationServices/ASAuthorization/OpenIDOperation/operationLogin)

An operation used to authenticate a user.

[`operationRefresh`](/documentation/AuthenticationServices/ASAuthorization/OpenIDOperation/operationRefresh)

An operation that refreshes the logged-in user’s credentials.

[`operationLogout`](/documentation/AuthenticationServices/ASAuthorization/OpenIDOperation/operationLogout)

An operation that ends an authenticated session.

[`operationImplicit`](/documentation/AuthenticationServices/ASAuthorization/OpenIDOperation/operationImplicit)

An operation that depends on the particular kind of credential provider.

### Creating an Operation

[`init(_:)`](/documentation/AuthenticationServices/ASAuthorization/OpenIDOperation/init(_:))

Creates an operation from the given string.

[`init(rawValue:)`](/documentation/AuthenticationServices/ASAuthorization/OpenIDOperation/init(rawValue:))

Creates an operation from the given string.



---

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)