CogniCrypt icon indicating copy to clipboard operation
CogniCrypt copied to clipboard

User authentication service

Open shahrzadav opened this issue 3 years ago • 1 comments

Description

This PR includes a new use-case in the CogniCrypt code generator. The new use-case has 2 parts, password generator, and user authentication service. The first one creates a secure random password of a length of 12 characters (this is editable by the user). User authentication service provides an authority check service via SQL database, where the user enters a username and a password, and the service checks if it exists in the database and returns a boolean.

Fixes #17

Type of change

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [x] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [x] This change requires a documentation update

How Has This Been Tested?

Tests are provided for both cases in the codegenerator.test.

Test Configuration:

  • Eclipse Version: 2019-06
  • Java Version: 1.8
  • OS: Windows 10

Checklist:

  • [x] I have performed a self-review of my own code
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [x] My changes generate no new warnings
  • [x] I have added tests that prove my fix is effective or that my feature works
  • [x] New and existing unit tests pass locally with my changes

shahrzadav avatar Jun 15 '21 10:06 shahrzadav

@AnakinSklavenwalker

shahrzadav avatar Jul 05 '21 08:07 shahrzadav