To generate an API Key for your users in Ory, you can follow these steps: 1. Go to the Ory Console. 2. Go to
Access & APIs. 3. Click the
+ icon in the
API Keys section. 4. Enter the API Key name and click
Create API Key. 5. Copy the created API Key from the prompt that shows at the bottom right of the screen. This API Key can be used to authorize privileged operations, such as calling the Admin API which allows you to delete users. As for OAuth 2.0, it is a protocol that allows applications to request authorization to access resources on behalf of a user. It does not directly support the generation of long-lived API keys. However, it does support the generation of access tokens which can be used in a similar way to API keys. These tokens are typically short-lived, but can be refreshed without user intervention, effectively making them long-lived. Please note that Ory is fully compliant with OAuth 2.0 and OpenID Connect. However, Ory recommends using OAuth 2.0 and OpenID Connect for targeted use cases only, such as providing third-party integration with your application. For more information, you can refer to the following sources: - [API Keys](
https://www.ory.sh/docs/getting-started/local-development#api-keys) - [OAuth 2.0 / OpenID Connect](
https://www.ory.sh/docs/security-model#can-i-use-oauth-20--openid-connect)