Skip to Content
Authgate 1.7.0 is released 🎉

Files

Store files on the server and distribute them to your application.

Why Use Files?

You may want to distribute files to your application through Authgate for various reasons:

  • Provide updates
  • Download assets
  • Enable premium features in a secure way

Public vs Private Files

The visibility of files behaves the same way as with variables. Private files are only accessible to authenticated users, while public files are accessible to anyone with your API key and secret.

Encryption

Files can be stored with or without encryption:

Plain Storage

Files are stored as-is on the server.

Encrypted Storage

  • Files are encrypted on the server using AES-256 (GCM)
  • Automatically decrypted in-memory by the SDK after download
  • Extra security layer for sensitive content

Choose encryption when uploading the file. You can’t change it later without re-uploading.

Uploading Files

  1. Go to Files in your dashboard
  2. Click “Upload file”
  3. Choose your file or drag and drop it
  4. Enter a name
  5. Choose public or private
  6. Choose encrypted or plain storage
  7. Upload

The file is processed in the background. You’ll see the storage status update when ready.

Downloading Files

You can download files from the dashboard by clicking the download button. The file will be served as-is (no automatic decryption).

Your application downloads files through the API using the file ID. The Authgate SDK handles authentication and decryption automatically.

See SDK documentation for examples.

Last updated on