<!--
{
  "availability" : [
    "macOS: 13.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASAuthorizationProviderExtensionLoginConfiguration/configuration(openIDConfigurationURL:clientID:issuer:completion:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "c:objc(cs)ASAuthorizationProviderExtensionLoginConfiguration(cm)configurationWithOpenIDConfigurationURL:clientID:issuer:completion:"
  },
  "title" : "configuration(openIDConfigurationURL:clientID:issuer:completion:)"
}
-->

# configuration(openIDConfigurationURL:clientID:issuer:completion:)

Creates a login configuration using the OpenID configuration.

```
class func configuration(openIDConfigurationURL: URL, clientID: String, issuer: String?, completion: @escaping @Sendable (ASAuthorizationProviderExtensionLoginConfiguration?, (any Error)?) -> Void)
```

```
class func configuration(openIDConfigurationURL: URL, clientID: String, issuer: String?) async throws -> ASAuthorizationProviderExtensionLoginConfiguration
```

## Parameters

`openIDConfigurationURL`

The base URL to retrieve the `/.well-known/openid-configuration` file.

`clientID`

The `client_id` for the Apple platform SSO login at the identity provider.

`issuer`

The `issuer` for the requests that validate responses.

`completion`

The completion block the system calls upon completion or error.

---

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)