# Authentication

Authentication is verifying the identity of clients accessing Aidbox APIs and services. In healthcare systems, authentication is crucial as it ensures that only authorized users, applications, and services can access sensitive medical data. This includes healthcare providers accessing patient records, third-party applications integrating with your FHIR API, administrative staff using Aidbox Console, and automated system operations services.

## Basic HTTP Authentication

Basic Authentication is a simple username/password authentication suitable for development and testing environments.

{% content-ref url="authentication/basic-http-authentication" %}
[basic-http-authentication](authentication/basic-http-authentication)
{% endcontent-ref %}

## OAuth 2.0

OAuth 2.0 is the industry-standard protocol for authorization. Aidbox provides comprehensive support for OAuth 2.0 flows:

* Authorization Code Flow
* Client Credentials Flow
* Resource Owner Password Flow
* Implicit Flow (legacy)

Learn more about OAuth 2.0 support:

{% content-ref url="authentication/oauth-2-0" %}
[oauth-2-0](authentication/oauth-2-0)
{% endcontent-ref %}

## Token Introspection

Validate and inspect OAuth 2.0 tokens issued by external Identity Providers.

{% content-ref url="authentication/token-introspector" %}
[token-introspector](authentication/token-introspector)
{% endcontent-ref %}

## Authentication of Users Logging into the Aidbox Console UI

### Using Aidbox internal Identity Provider

Aidbox supports username/password authentication for login to the Aidbox Console UI.

See[ Identity Management](../identity-management#user-management) for managing Users and Passwords.

Two-factor authentication is also supported. See [Two Factor Authentication](../tutorials/security-access-control-tutorials/two-factor-authentication) for the tutorial.

### Single Sign-On (SSO) with external Identity Provider

Integrate with external Identity Providers (IdPs) for SSO to Aidbox Console UI.

{% content-ref url="authentication/sso-with-external-identity-provider" %}
[sso-with-external-identity-provider](authentication/sso-with-external-identity-provider)
{% endcontent-ref %}
