Skip to content

SoplicaIndustries/WOMBAT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Wombat Identity API

Wombat is a Identity Login/Register service developed in .NET 6.0 using Entity Framework with Identity. API authentication provides your client user with JSON Web Token, which can be later used for authorization.

Authors

What this API provides?

1. User creation and login
2. Email confirmation for important actions
3. User authentication and authorization

DB mode feature

Db mode is a feature that allows client to choose between using just the JWT for all auth operations, or use server side token validation.
Enabling db mode saves users token in database, and allows client to use ValidateToken call to check if token is valid and is in database, therefore check if token       was actually created by API (even if private key is exposed), and LogOut call, which deletes token from database to allow its invalidation.

App settings configuration

1. Database details
    a) Provide your connection string
2. JSON Web Token
    a) Provide valid token issuer (API url)
    b) Provide valid token audience (your application)
    c) Provide your secret JWT key
    d) Set dbmode to true/false (read more to learn about dbmode)
3. Mail service
    a) Provide mail address that will be used for sending mail to users
    b) Provide mail password/application password
    c) Provide your smtp server details (server, port)
    d) Provide urls for forms in your application (email confirmation screen, change mail confirmation, password change form)
4. API key
    a) Provide key that will be used to authorize access of your application 

Database configuration

1. add migration and update database (using regular Entity framework commands)
2. Database should have following scheduled events:
    a) Expired token cleaning every 1 day (if dbmode is set to true)
    b) Unconfirmed user cleaning every 3 hours

Documentation

https://documenter.getpostman.com/view/19462677/2s8ZDR6jzR

About

ASP Identity login api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages