Swiftpack.co - PedroCavaleiro/api-app-authentication as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by PedroCavaleiro.
PedroCavaleiro/api-app-authentication 1.1.0
A simple library written in multiple languages to authenticate a Client App with an API
⭐️ 0
🕓 2 years ago
iOS macOS watchOS tvOS
.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

Requirements

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

Concept

You can find the concept behind this library here

Documentation

You can find the documentation per language here:

GitHub

link
Stars: 0
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

Added C# Support
2 years 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 | Analytics