google-nomulus/docs
Lai Jiang 36bd508bf9
Remove OAuthAuthenticationMechanism (#2171)
Also made some refactoring to various Auth related classes to clean up things a bit and make the logic less convoluted:

1. In Auth, remove AUTH_API_PUBLIC as it is only used by the WHOIS and EPP endpoints accessed by the proxy. Previously, the proxy relies on OAuth and its service account is not given admin role (in OAuth parlance), so we made them accessible by a public user, deferring authorization to the actions themselves. In practice, OAuth checks for allowlisted client IDs and only the proxy client ID was allowlisted, which effectively limited access to only the proxy anyway.

2. In AuthResult, expose the service account email if it is at APP level. RequestAuthenticator will print out the auth result and therefore log the email, making it easy to identify which account was used. This field is mutually exclusive to the user auth info field. As a result, the factory methods are refactored to explicitly create either APP or USER level auth result.

3. Completely re-wrote RequestAuthenticatorTest. Previously, the test mingled testing functionalities of the target class with testing how various authentication mechanisms work. Now they are cleanly decoupled, and each method in RequestAuthenticator is tested individually.

4. Removed nomulus-config-production-sample.yaml as it is vastly out of date.
2023-10-11 19:12:26 -04:00
..
console-endpoints Add swagger API documentation (#2035) 2023-05-24 16:10:50 -04:00
operational-procedures Remove datastore related code (#1906) 2023-01-19 14:44:11 -05:00
src Fix some low-hanging code quality issue fruits (#1047) 2021-04-01 18:04:21 -04:00
admin-tool.md Remove datastore related code (#1906) 2023-01-19 14:44:11 -05:00
architecture.md Adds cloud scheduler and tasks deployer (#1999) 2023-05-04 15:57:32 -04:00
authentication-framework.md Rename whitelist -> allow list (#635) 2020-06-18 18:36:05 -04:00
build.gradle Upgrade to Gradle 7.0 (#1712) 2022-07-26 11:41:27 -04:00
buildscript-gradle.lockfile Upgrade to Gradle 7.0 (#1712) 2022-07-26 11:41:27 -04:00
code-structure.md Refactor / rename Billing object classes (#1993) 2023-04-28 14:27:37 -04:00
coding-faq.md Remove datastore related code (#1906) 2023-01-19 14:44:11 -05:00
configuration.md Remove OAuthAuthenticationMechanism (#2171) 2023-10-11 19:12:26 -04:00
developing.md Remove datastore related code (#1906) 2023-01-19 14:44:11 -05:00
first-steps-tutorial.md Update user-facing documentation (#662) 2020-08-17 14:46:32 -04:00
flows.md Change __REMOVEDOMAIN__ token to __REMOVE_BULK_PRICING__ (#2152) 2023-09-21 16:03:39 -04:00
gradle.lockfile Upgrade to gradle 8.3 (#2142) 2023-09-13 11:11:49 -04:00
gradle.md Remove datastore related code (#1906) 2023-01-19 14:44:11 -05:00
install.md Update install.md (#2029) 2023-05-16 10:07:20 -04:00
operational-procedures.md Remove datastore related code (#1906) 2023-01-19 14:44:11 -05:00
proxy-setup.md Remove OAuthAuthenticationMechanism (#2171) 2023-10-11 19:12:26 -04:00
rdap.md Fix cut-and-paste error in RDAP documentation 2018-03-19 18:31:15 -04:00
registrar-faq.md Rename whitelist -> allow list (#635) 2020-06-18 18:36:05 -04:00