Implement federated (v3oidcaccesstoken) auth#176
Conversation
v3oidcaccesstoken requires two authentication requests: 1. Retrieving an unscoped token using an oidc access token 2. Retrieving a scoped token using the unscoped token (already implemented in v3auth) Change summary: - Extracted method for auth request handling - Added missing fields to Connection, e.g. IdentityProvider - Added mappings to the relevant openstack environment variables - Added interface TwoStageAuthenticator - Implemented PrelimRequest and PrelimResponse for v3auth Sadly I saw no reasonable way to test these changes, but I'm completely open to suggestions. This includes the way I extended the authentication handling, which may or may not be optimal. These changes are a follow up to this forum thread: https://forum.rclone.org/t/swift-env-auth-true-env-os-access-token-http-error-404-404-not-found/22520
|
Just thinking about the testability for a moment... Currently we have an integration test which tests against a swift all in one docker https://github.com/ncw/swift/blob/master/integration_test.sh Could you add tests to that? |
|
Hi, |
Ah, ha!
It would make the integration tests much more realistic. How difficult would it be? If we could use docker to run a few containers other people maintain that would be fine. |
v3oidcaccesstoken requires two authentication requests:
Change summary:
Sadly I saw no reasonable way to test these changes, but I'm completely
open to suggestions. This includes the way I extended the authentication
handling, which may or may not be optimal.
These changes are a follow up to this forum thread: https://forum.rclone.org/t/swift-env-auth-true-env-os-access-token-http-error-404-404-not-found/22520