Swiftpack.co -  PedroCavaleiro/api-app-authentication as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
A simple library written in multiple languages to authenticate a Client App with an API
.package(url: "https://github.com/PedroCavaleiro/api-app-authentication.git", from: "1.1.0")

API App Authentication

A simple library written in multiple languages to authenticate a Client App with an API

Currently supported languages:

  • Python
  • Swift


To use this library there are the following requirements besides the requirements for each language

  • An SQL server with a table to store the AppIDs and AppKeys, more information can be stored as well app privileges for different app privileges, this is not covered by this library.

  • Ability to redirect the headers X-Req-Timestamp, X-Req-Nonce, X-Req-Sig and X-App-Id if using a web server as proxy

Root File Structure

This repository contains multiple languages, in order to provide ease of install some folders must be added to the root

  • Root
    • .github: Contains the issues templates for GitHub
    • Sources: The source code for the Swift Package (also available on the src/Swift folder)
    • Tests: The tests folders for the Swift Package (it's required by SPM, also available on the src/Swift folder)
    • docs: Folder containing all documentation for all languages
    • src: Source code for all languages including the swift package
      • Python: Source code for the Python version
      • Swift: Source code for the Swift version
      • CSharp: Source code for the C#
    • bin: Contains the binaries for the supported languages
      • CSharp: The binary files for the C# version
    • .gitignore: The git ignore file
    • LICENSE: The repository license
    • Package.swift: The manifest file for the Swift Package
    • README.md: The readme file


You can find the concept behind this library here


You can find the documentation per language here:


Stars: 0
Last commit: 1 week ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

Added C# Support
2 weeks ago

This new version comes with the following changes

  • Full C# support
    • Binaries and Source
    • All in the same project (just import the project onto your solution or import the binary) view the documentation
  • Swift version is now a package, to install just add this to your Swift Package manager https://github.com/PedroCavaleiro/api-app-authentication.git view the documentation

As always all the languages are commented in code and as .md files in the docs folder in the repository. In the docs folder all non README.md files are generated automatically.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API