Coder Social home page Coder Social logo

aa-pastprojects / loginandregistrationapi Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 2.0 13 KB

Made in the summer of 2018 - It's a login and registration system that uses HTTPS and JWT tokens for security. - Made in .NET Core with C#, Swagger, Microsoft Identity, EntityFrameworkCore and your choice of MySQL or SQLServer (EFCore can use both).

C# 100.00%
csharp swagger api login-system registration-system netcore jwt-token jwt-authentication jwt

loginandregistrationapi's Introduction

LoginAndRegistrationAPI

Made in the summer of 2018 - It's a login and registration system that uses HTTPS and JWT tokens for security. - Made in .NET Core with C#, Swagger, Microsoft Identity, EntityFrameworkCore and your choice of MySQL or SQLServer (EFCore can use both).

Setup of project - making it run

To make it work there are 2 steps you must take.

  1. You need to set up the settings in the AppSettings.json file. More specifically these sections:
  "ConnectionStrings": {
    "DefaultConnection": "INSERT YOUR CONNECTION STRING HERE"
  },
  "Jwt": {
    "SecretKey": "INSERT JWT SECRET KEY HERE",
    "Audience": "INSERT JWT AUDIENCE SITE HERE",
    "Issuer": "INSERT JWT ISSUING SITE HERE"
  },
  "API": {
    "APIKey": "INSERT YOUR API KEY HERE OR GENERATE IT SOMEWHERE, CAN ALSO STORE IN DATABASE OR SIMILAR."
  }
  1. In the Startup.cs file, change the options in ConfigureServices to use the SQL type of your choice, e.g. MySql or SqlServer. Note that there are 2 mysql choices, MySQL or MySql, use MySql.

The application should now be able to run.

If you start it from Visual Studio you will end up at the website address it's hosted locally on (if you have IIS set up correctly).

There you can go to the web address /swagger to get information on how to consume the API, which request types it support, API endpoints, body's to send and so on.

Further information

In another project I am currently working on, I have used a login system similar to this one to make role based authorization.

loginandregistrationapi's People

Contributors

doh09 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.