https://github.com/elegantchaos/vapor4webauthentication
An example of session-based authentication using Vapor 4 for a website.
https://github.com/elegantchaos/vapor4webauthentication
sessions swift vapor-4 web-template
Last synced: about 1 year ago
JSON representation
An example of session-based authentication using Vapor 4 for a website.
- Host: GitHub
- URL: https://github.com/elegantchaos/vapor4webauthentication
- Owner: elegantchaos
- Created: 2020-04-28T13:16:55.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-26T11:54:26.000Z (about 5 years ago)
- Last Synced: 2025-03-26T04:41:20.260Z (over 1 year ago)
- Topics: sessions, swift, vapor-4, web-template
- Language: Swift
- Homepage:
- Size: 68.4 KB
- Stars: 5
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vapor4 Session-Based Authentication for Websites
When I set out to play with Vapor, what I was looking for was a nice example of how to do authentication, for a website and not an API, using Vapor 4.0.
This proved to be hard to find, as Vapor 4 is quite new!
There are lots of Vapor 3 examples, but the API has changed quite a bit. Certainly enough to confuse a noob like me.
There are a few Vapor 4 examples, but they focus exclusively on token-based authentication for APIs. Transferrable to some extent, but again, confusing for a noob.
The contents of this repo are the results of me trying to piece together the bits of the puzzle.
Disclaimer:
I am not a web developer or a Vapor expert, nor do I play one on TV. I may have this stuff backwards. If so, please let me know why.