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

19 auth #57

Merged
merged 35 commits into from
Feb 17, 2023
Merged

19 auth #57

merged 35 commits into from
Feb 17, 2023

Conversation

safstromo
Copy link
Contributor

@safstromo safstromo commented Feb 8, 2023

Class for authentication.

Anyone got ideas how to test environment variables?
Please add to test or create a separate issue :)

@safstromo safstromo linked an issue Feb 8, 2023 that may be closed by this pull request
Closed
@kappsegla kappsegla added the feature Marks a pull request as a new feature label Feb 8, 2023
@kappsegla
Copy link
Contributor

Maybe you can find some tips here how to use env in your code and being able to test the behavior based on env values?

A design using dependency injection might make the code more testable.

@safstromo
Copy link
Contributor Author

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs Vulnerability A 0 Vulnerabilities Security Hotspot E 1 Security Hotspot Code Smell A 1 Code Smell

0.0% 0.0% Coverage 0.0% 0.0% Duplication

Is the Security hotspot a problem since Surefire plugin is only used for tests?

@safstromo safstromo marked this pull request as draft February 15, 2023 10:13
@safstromo
Copy link
Contributor Author

safstromo commented Feb 16, 2023

Ive added cli options to set password. run with "-pw 123" to set password 123
To authenticate send command "AUTH 123"

@safstromo safstromo marked this pull request as ready for review February 16, 2023 13:26
RobertMili
RobertMili previously approved these changes Feb 16, 2023
Copy link
Contributor

@jLereback jLereback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have looked at your code and have a few questions that would be appreciated if you could answer. We also have a few suggestions that you could consider 🤗

Co-authored-by: Ahlberg-iths 113943951+ahlberg-iths@users.noreply.github.com

src/test/java/org/fungover/haze/AuthTest.java Outdated Show resolved Hide resolved
src/main/java/org/fungover/haze/Auth.java Show resolved Hide resolved
src/main/java/org/fungover/haze/Initialize.java Outdated Show resolved Hide resolved
src/main/java/org/fungover/haze/Main.java Outdated Show resolved Hide resolved
Fix test

Co-authored-by: Julia Lerebäck Corell <112405931+jLereback@users.noreply.github.com>
safstromo and others added 2 commits February 17, 2023 07:07
cleanup parentheses

Co-authored-by: Julia Lerebäck Corell <112405931+jLereback@users.noreply.github.com>
Fix boolean

Co-authored-by: Julia Lerebäck Corell <112405931+jLereback@users.noreply.github.com>
@sonarcloud
Copy link

sonarcloud bot commented Feb 17, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

41.0% 41.0% Coverage
0.0% 0.0% Duplication

@kappsegla kappsegla merged commit 76296d3 into main Feb 17, 2023
@kappsegla kappsegla deleted the 19-auth branch February 17, 2023 10:35
@kappsegla kappsegla restored the 19-auth branch February 17, 2023 13:06
@kappsegla kappsegla deleted the 19-auth branch February 17, 2023 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breakingchange enhancement New feature or request feature Marks a pull request as a new feature major
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AUTH
4 participants