Aidbox
Aidbox.Dev
Aidbox.Cloud
Aidbox.One
Fhirbase
Search…
Getting started
Getting Started
Installation & Configuration
Features
Licensing and Support
Versioning & Release Notes
FAQ
Aidbox configuration
Aidbox project
API constructor (beta)
Setup SMTP provider
Zen Configuration
API
FHIR API
REST API
Bulk API
Batch Upsert
Batch/Transaction
Cache
ETAG support
Reactive API
Sequence API
Encryption API
Compartments API
GraphQL API
RPC API
Aidbox UI
Profiling and validation
Profiling and validation overview
Profiling with zen-lang
Asynchronous resource validation
Profiling with AidboxProfile
Terminology
Aidbox terminology module overview
Import external (not-present) terminologies
Concept
CodeSystem
ValueSet
$translate on ConceptMap
Terminology Tutorials
FHIR Implementation Guides
🎓
HL7 FHIR Da Vinci PDex Plan Net IG
App development guides
Tutorials
Authentication Tutorial
Restricting Access to Patient Data
Uploading Sample Data
Custom Search
Working with Aidbox from .NET
Patient Encounter notification Application
Working with pgAgent
Working with Extensions
Sync Data From Aidbox
SDC with Custom Resources
Testing with Stresty
APM Aidbox
Subscribe to new Patient resource
Administration
Receive logs from your app
$matcho
$to-format
Security & Access Control
Overview
Authentication Flows
Access Control
Multitenancy
Storage
Archiving
Database
AWS S3
GCP Cloud Storage
Azure Blob Storage
Core Modules
Entities & Attributes
$json-schema
Monitoring
Logging & Audit
Modules
HL7 v2 Integration
FHIR Resources
Custom Resources
Aidbox Search
First-Class Extensions
Multibox
Multibox box manager API
Plan API
Plan API Overview
Patient Access API
Integrations
Analytics
Audit
Authentication
Tools
Mappings
Aidbox SDK
Contact us
Powered By
GitBook
Authentication Tutorial
Basic Auth
The simplest way to interact with Aidbox API from your confidential (backend) code is a Basic Auth
To start you have to register in Aidbox Auth Client with secret and basic flow enabled in this form:
Auth Client form
PUT Client/basic
Let's create AccessPolicy for this Client
PUT AcessPolicy/basic-policy
GET /Patient
Client Credentials Flow
Client get access by OAuth 2.0 Client Credentials flow
To start you have to register in Aidbox OAuth Client with secret and client_credentials flow enabled
OAuth Client form
Before you start - create a Client
And policy for this client
When you have a token!
Now using this access token we can query Aidbox
Resource Owner Flow
This flow works for mobile and desktop apps.
Before you start - create a Client and User
When you have a token!
Now using this access token we can query Aidbox
Authorization Code Flown
This flow works for web and single page apps
Before you start - create a Client and User
Now we have to go to authorize endpoint to get code
/auth/authorize?client_id=web-app&response_type=code
​
When you have a token!
Now using this access token we can query Aidbox
Implicit Flow
This flow works for single page apps. Before you start - create a Client
Now we have to go to authorize endpoint to get code
/auth/authorize?client_id=web-app&response_type=code
​
When you have a token!
Now using this access token we can query Aidbox
JWT Auth
If you use external server, which provides you with JWT access token - you can configure Aidbox to trust this JWT token and act as Resource Server
You can use for example this
app to generate test JWT
​
First of all you have to register TokenIntrospector in Aidbox
SMART on FHIR Flow
When you have a token!
Now using this access token we can query Aidbox
App development guides - Previous
Tutorials
Next
Restricting Access to Patient Data
Last modified
9mo ago
Copy link
Contents
Basic Auth
Client Credentials Flow
Resource Owner Flow
Authorization Code Flown
Implicit Flow
JWT Auth
SMART on FHIR Flow