Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User authentication service #439

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

shahrzadav
Copy link
Contributor

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)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 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:

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

Signed-off-by: Shahrzad <shahrzad.asghari73@gmail.com>
Signed-off-by: Shahrzad <shahrzad.asghari73@gmail.com>
Signed-off-by: Shahrzad <shahrzad.asghari73@gmail.com>
@shahrzadav
Copy link
Contributor Author

@AnakinSklavenwalker

@shahrzadav shahrzadav closed this Sep 30, 2021
@shahrzadav shahrzadav reopened this Oct 1, 2021
Conflicts:
	plugins/de.cognicrypt.codegenerator/src/main/java/de/cognicrypt/codegenerator/generator/GeneratorClass.java
Signed-off-by: Shahrzad <shahrzad.asghari73@gmail.com>
@schlichtig schlichtig closed this Apr 21, 2022
@schlichtig schlichtig reopened this Apr 21, 2022
Signed-off-by: Shahrzad <shahrzad.asghari73@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integrate new CogniCrypt Use Case- User Authentication
2 participants