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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic Auth support #200

Merged
merged 16 commits into from
Mar 31, 2020
Merged

Basic Auth support #200

merged 16 commits into from
Mar 31, 2020

Conversation

axelsiebert
Copy link
Contributor

@axelsiebert axelsiebert commented Mar 23, 2020

馃敀 Basic Auth support from Spring Security and can be set via env
馃摑 Add documentation for Basic Auth configuration and usage via
docker

project_management#114

Changes

  • Add Configuration for Basic Auth with Spring Security
  • Add Docker env variables for Basic auth usage
  • Add documentation for EHRbase and Docker image usage

Related issue

Closes https://github.com/ehrbase/project_management/issues/114

Additional information and checks

  • Pull request linked in changelog

馃敀 Basic Auth support from Spring Security and can be set via env
馃摑 Add documentation for Basic Auth configuration and usage via
docker

project_management#114
ehrbase/project_management#114
@axelsiebert axelsiebert marked this pull request as ready for review March 23, 2020 15:27
@stefanspiska
Copy link
Contributor

The integration test are all falling. please disable auth for Integration tests

ehrbase/project_management#114
ehrbase/project_management#114
ehrbase/project_management#114
Reactivated Opt-In for test

ehrbase/project_management#114
ehrbase/project_management#114
README.md Outdated
generate the Base64 encoded username and password combination create the string after the following schema:
`username:password`.

The Basic Auth mechanism is implemented as "opt-in" and can be deactivated by providing an environment variable
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo? Shouldn't that be "opt-out"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes but I cannot get the Robot tests to run with authorization enabled and I cannot switch it off.

I need some advices from Wlad to get authorization working in the tests.

ehrbase/project_management#114
Disable request causing the failure due to not secure characters
Change security to opt-out

ehrbase/project_management#114
ehrbase/project_management#114
@birgerhaarbrandt
Copy link
Contributor

I was not able to successfully authenticate using the credentials. I used the examples provided in the readme and also checked with the security config (additionally set my own via environment variables). We might need to clarify if the problem is on my end.

ehrbase/project_managemen#114
Remove environment variables usage for security
Add yaml file configuration

ehrbase/project_management#114
ehrbase/project_management#114
馃殌 Dockerfile uses new properties setting over env
馃摑 Update README.md to new environment settings

ehrbase/project_management#114
Copy link
Contributor

@birgerhaarbrandt birgerhaarbrandt left a comment

Choose a reason for hiding this comment

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

Works now all for me! Only thing is that it should say "opt-in" insteaf of opt-out as security is disabled by default.

@birgerhaarbrandt birgerhaarbrandt merged commit d10e4b7 into develop Mar 31, 2020
@birgerhaarbrandt birgerhaarbrandt deleted the feature/basic_auth branch March 31, 2020 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants