Skip to content

An implementation of .Net Core Identity, Authentication, Authorization with JWT.

License

Notifications You must be signed in to change notification settings

Geraldoab/netcore-identity-sample

Repository files navigation

Netcore-identity-sample

An implementation of .Net Core Identity, Authentication, Authorization with JWT.

  • MySQL Database
  • Swagger for Api Documentation
  • Docker
  • Logging with ElasticSearch and Kibana
  • Message Broker with RabbitMQ
  • For the purpose of this test project, I didn't add unit tests or created a complex architecture.
  • If you want to debug the project you can execute it after the docker-compose up command, the secrets are hardcoded ;however, it's not recommended to store secrets in this way, we should use tools like AWS Secret Manager or Azure Vault instead.

To start the project use docker-compose

docker-compose up
http://localhost:8080/swagger/index.html

If you want to see the MySql Database using Workbench

Host: 127.0.0.1
Port: 7000
Username: my_database_username
Password: my_database_password
Default Schema: myuserapi

Logging with ElasticSearch and Kibana

http://localhost:8080/swagger/index.html image

http://localhost:5601/app/home#/

image

Message Broker with RabbitMQ

How to setup your RabbitMQ:

Exchange

http://localhost:15672/#/exchanges
Exchange name: userapi-service-exchange
Type: topic

Queue

http://localhost:15672/#/queues
Queue name: userapi-email-service-queue

Binding

From exchange: userapi-service-exchange
Routing key: userapi-routing-key

http://localhost:8080/swagger/index.html image

http://localhost:15672/#/queues/%2F/userapi-email-service-queue image

Hosted Service - Message Consumer

EmailMessageSubscriber.cs

image

My DockerHub

https://hub.docker.com/repositories/geraldoab

About

An implementation of .Net Core Identity, Authentication, Authorization with JWT.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages