A Vapor server that uses token-based authentication. The client side is represented by the repository Token-Auth-Client-Template, which is an iOS app. Since the server uses an SQLite database, no Docker installation is required.
- Username+password authentication with authentication token issuing.
- The original password information is not kept, only its hash is.
- Providing some functionality to a user authorized with a valid authentication token (with the user's book list maintenance and management as an example)
- Clone the repository on the command line:
git clone https://github.com/serhiybutz/Token-Auth-Server-Template.git
. - Open it in Xcode (
open Package.swift
), wait for the Swift Package Manager dependencies to load, and start the server by hittingCMD+r
. - Alternatively, you can build and run the server in Terminal by running the command in the server package directory:
swift run
.
This project is licensed under the MIT license.