---
title: authenticationPolicy
framework: appintents
role: symbol
role_heading: Type Property
path: appintents/appintent/authenticationpolicy
---

# authenticationPolicy

The authentication policy to enforce when running the app intent.

## Declaration

```swift
static var authenticationPolicy: IntentAuthenticationPolicy { get }
```

## Discussion

Discussion Set the value of this property if you want someone to provide authentication before running the app intent. The default value of this property is IntentAuthenticationPolicy.alwaysAllowed, which allows the intent to run without authentication, including when the device is locked.

## See Also

### Specifying the authentication policy

- [IntentAuthenticationPolicy](appintents/intentauthenticationpolicy.md)
