2
0
mirror of https://github.com/VinylDNS/vinyldns synced 2025-08-29 05:18:08 +00:00

10 Commits

Author SHA1 Message Date
Paul Cleary
ea7c77951c
Upgrading scalafmt (#904)
* Upgrading scalafmt to 2.2.1
2019-11-11 13:11:41 -05:00
Paul Cleary
7777c01359
Refactor Portal Authentication (#808)
* Initial Refactor

Pulled out logic specific to auth mechanisms into separate traits.  Updated
constructors for Controllers to take new traits.

The crux of introducing pac4j is to abstract away the details of authentication.
Most of the concerns come into play with custom action building.  Abstracting
away the old OIDC code will pave the way for using pac4j OIDC

* Another refactor

The dependency injection caused issues with the old refactor.  This refactor was
proven by actually running the application.

* DRY out tests

* Fixing merge conflicts
2019-08-23 14:41:11 -04:00
Britney Wright
e39121f86b
add DNS Change review ability to portal (#800) 2019-08-14 14:34:50 -04:00
Michael Ly
d00eab268b
Fix LDAP lookup (#675)
* Update LDAP to handle more explicit cases so that UserDoesNotExistException is only returned when it truly does not exist and there are no other external factors.
* Update tests.
* Update return condition for findUserDetails, only allowing UserDoesNotException to indicate success.
2019-06-11 12:15:52 -04:00
Britney Wright
5040d07c00
portal: add getZoneByName API route (#593) 2019-04-24 09:43:50 -04:00
Rebecca Star
c5c5bccfa9
Support openID connect for login (#488)
* Support openID connect for login

* Add tests on oidc
2019-02-19 11:34:45 -05:00
Rebecca Star
4a442789e3
portal health endpoint (#375)
* portal health endpoint
2018-12-03 16:54:59 -05:00
Britney Wright
f58748e454
Portal lock users and check lock status
* Create custom action for loading user account

* implement user locked status check

* refactor VinylDNSSpec

* code coverage modifications
2018-10-02 11:04:34 -04:00
Paul Cleary
2e172a94bc
Fix authentication error in the portal (#220)
The root cause for the authentication error is that the portal
was not decrypting the user secret key before signing requests.

This is solved via the following:

1. Update VinylDNS controller to decrypt user secret when needed
1. Make sure that the `encrypt-user-secrets` feature flag is `on`
in the API reference.conf.  This was why in testing locally we
did not hit the same issue that we saw in the development environment.
Because the flag was false, test users secrets were not encrypted.

* `portal application.conf` - set the crypto to match the API
* `Dependencies.scala` - eliminate some duplication of dependencies
* `api reference.conf` - set the encrypt-user-secrets flag to true
* `TestApplicationData.scala` - modify the mock play app to have a
CryptoAlgebra binding
* `VinylDNS` - add secret decryption in getUserCreds and processCSV
* `VinylDNSModule` - add binding for CryptoAlgebra for dependency
injection.
2018-09-19 10:47:51 -04:00
Paul Cleary
0f2fdc9c7b
Replace the repos in the portal with dynamodb and core (#206)
Replace the repos in the portal with dynamodb and core

* Remove all data stores from the portal
* Use the user and user change repository from core and dynamodb
* Remove the UserAccount type, use core User instead
* Remove the UserChangeLog types, use core UserChange instead
* Clean up duplication in VinylDNS
* Moved `Module` to `modules.VinylDNSModule`.  The reason is that
you cannot disable the "default" module for unit tests.
* Use mock configuration for VinylDNSSpec and FrontendControllerSpec.
The mock app configuration is what allows us to run without dynamodb
* Added a TestApplicationData trait to cut down on duplication
2018-09-18 11:51:31 -04:00