Skip to content

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

@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
@schlichtig schlichtig closed this Apr 21, 2022
@schlichtig schlichtig reopened this Apr 21, 2022
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