Clone
 

chongsun ahn <cahn922@yahoo.com> in openlmis-auth

Update Superset URL

For some reason, *.uat.openlmis.org cert is not working the load balancer. Try to use *.openlmis.org load balancer cert by slightly changing the Superset URL in the auth demo data.

Re-add API key initializer

To restore proper access token generation on startup.

OLMIS-6761 Fix more Sonar issues

OLMIS-6761 Fix more sonar issues

OLMIS-6761 More Sonar fixes

OLMIS-6761 Address Sonar issues

Revert "Revert Auth service back to Spring Boot 1.x"

This reverts commit d7de12a691485f3412f0342932693ed406151186.

  1. … 29 more files in changeset.
Revert Auth service back to Spring Boot 1.x

To see if it is the cause of the Superset issue.

  1. … 29 more files in changeset.
OLMIS-6761 Add default redirecturi for superset

Will later probably need to find a way to get Superset URL to insert.

Fix order of cleaning up workspace

Clean up workspace after builds

To avoid errors during pipeline because directories cannot be deleted during git checkout.

Do not allow failed clean up to fail Sonar build step

Clean up workspace after sonar build

Do it after Sonar checks quality gate.

Remove generated files from sonar build

To avoid errors in subsequent builds.

OLMIS-6761 Fix integration test errors

OLMIS-6761 Address Sonar issues

    • -0
    • +107
    /src/test/java/org/openlmis/auth/util/PaginationTest.java
OLMIS-6761 Add to changelog and update dependencies

* Add entry to CHANGELOG.

* Let Spring Boot Gradle plugin handle dependencies that it can, to simplify upgrading.

* Bump to next minor version.

* Fix test.

OLMIS-6761 Remove unnecessary code

Removing migration integration test and some code previously used for another test.

OLMIS-6761 Update Spring Boot version to 2.x

Using Boot version 2.2.2, as it is relatively recent.

* Flyway is at 6.0.8, new mechanism for loading Spring Security for OAuth2, and new versions for REST Assured, RAML tester, RAML parser, PowerMock (so tests will pass).

* Spring application properties for Flyway has changed.

* Fix repository method signatures (findOne is now findById, etc.); additionally they return Optional.

* Spring Security 5 has changed encoding of password storage to DelegatingPasswordEncoder. To be backwards-compatible, currently returning NoOpPasswordEncoder as default. Will probably need to migrate all passwords to new encoding and use a better encoder/decoder.

* Fix unit tests.

* Flyway is now at v6, and Java callback mechanism has changed to a general handle() method.

* Fix integration tests (including simplifying TokenIntegrationTest).

* Integration tests allow bean definition overriding, as it is not enabled by default now in Spring Boot 2.x.

* API definitions require "Keep-Alive" header for web integration tests.

  1. … 19 more files in changeset.
OLMIS-5634 Change tableau demo data client authorized grant type

From implicit to authorization code. It's more secure than implicit https://oauth.net/2/grant-types/implicit/.

Add IntelliJ IDEA config

Remove unused flyway location

Add back demo data info about user's passwords to README

This was removed from demo-data's README, but should have been moved.

    • -1
    • +42
    /src/main/resources/db/demo-data/README.md
OLMIS-4870 Move auth to new demo data strategy

* Move to docker-dev v4 (for pg_dump exporting schema)

* Move away from JSON inserts to TestDataInitializer and CSVs

* Export schema and data to image

* Update README

* No more demoDataSeed gradle task, remove demo-data folder

    • -19
    • +0
    /demo-data/auth.oauth_client_details.json
  1. … 13 more files in changeset.
Revert "OLMIS-4257 Remove NOT NULL constraint"

This reverts commit f3497b25c1f3657145a7afaae85df8343a6b89d5.

OLMIS-4257 Remove NOT NULL constraint

This is temporary to unblock work on setting up an instance (OLMIS-4379).

OLMIS-3463 Add ERD generate script for service

Each service should be in charge of its own ERD generation. Remove the external port number, as it’s not necessary anymore and it could conflict with other services’ ERD generation jobs.

Revert "OLMIS-3463 Remove ERD generation docker compose file"

This reverts commit efde2e2eba0306010bc04c268bd6bdd6e8aeeeba.

OLMIS-3463 Remove ERD generation docker compose file

A generic version of this file has been added to the Ref Distro, so this one is not needed anymore.

Revert "OLMIS-3463 Add consul dependency to auth ERD generation"

This reverts commit 2ef3e84b88b309a4814d7b5fd422bc2536913e9c.