Giter Club home page Giter Club logo

authenticator.webapi's Introduction

Authenticator.WebAPI

Aplicação de autorização e autenticação por JWT, validando roles de acesso desenvolvida utilizando o paradigma DDD (Domain-Driven Design)

Publicado

API AUTH - DEMO

Rotas

  • Autenticar e obter token
  • Rotas para validar autenticação de acordo com a "Role"

Arquitetura do projeto

Foi desenvolvido uma API de autenticação utilizando JWT para validação de role, tempo de token, e token do usuario

Modelo de retorno para obter dados e token

  "id": "96f1c7ca-17cb-4284-87dc-b0d513048c49",
  "username": "Rafael",
  "email": "[email protected]",
  "role": "Manager",
  "token": {
    "key": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiUmFmYWVsIiwicm9sZSI6Ik1hbmFnZXIiLCJuYmYiOjE2NDI5OTQ1MjAsImV4cCI6MTY0Mjk5NjMyMCwiaWF0IjoxNjQyOTk0NTIwfQ.ODWusj5ht7KoLC3fGpu4-lRNyb0uAA4fh9JH90iDhKk",
    "vencimento": "2022-01-24T03:52:00.2083397Z"
  }
}

Modelo de retorno para tokens não autenticados 401 - Unauthorized

Code	Details
401
Undocumented
Error: response status is 401

Response headers
 content-length: 0 
 date: Mon,24 Jan 2022 03:22:48 GMT 
 server: Kestrel 
 www-authenticate: Bearer 

Modelo de retorno para tokens de role invalida 403 - Forbidden

403
Undocumented
Error: Forbidden

Response headers
 connection: keep-alive 
 content-length: 0 
 date: Fri,04 Mar 2022 22:41:53 GMT 
 server: Kestrel 
 via: 1.1 vegur 

Modelo de retorno para tokens corretamente

Code	Details
200	
Response body

Response headers
 content-type: text/plain; charset=utf-8 
 date: Mon,24 Jan 2022 03:24:08 GMT 
 server: Kestrel 

authenticator.webapi's People

Contributors

rafaelangelo1999 avatar

Stargazers

 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.