What would be the best way to have a user authenti...
# ory-network
f
What would be the best way to have a user authenticate programmatically? I'm working on a REST API for my application and would like for the end user (the consumer of the API) to be able to authenticate using APIs and receive a token that they can then pass into subsequent requests.
p
Hi @full-scientist-38268 If these are first party users to your system, then you can use the native
api
endpoint. https://www.ory.sh/docs/identities/native-browser If they are machine accounts (IoT device) that are native, you can use OAuth client credentials. https://www.ory.sh/docs/oauth2-oidc/client-credentials