Skip to content

💧 A Vapor-server repository, which implements a token-based authentication.

License

Notifications You must be signed in to change notification settings

serhiybutz/Token-Auth-Server-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💧 Vapor server template with token-based authentication

MIT License Swift 5.6


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.

Features

  • 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)

How to run

  1. Clone the repository on the command line: git clone https://github.com/serhiybutz/Token-Auth-Server-Template.git.
  2. Open it in Xcode (open Package.swift), wait for the Swift Package Manager dependencies to load, and start the server by hitting CMD+r.
  3. Alternatively, you can build and run the server in Terminal by running the command in the server package directory: swift run.

License

This project is licensed under the MIT license.

Releases

No releases published

Packages

No packages published

Languages