Tie AccessProvider back to service Provider.
To issue a revokation request, I needed to know the Identity API
endpoint. This endpoint exists in the Provider used to create the
AccessProvider. This change threads a link back to the Provider.
diff --git a/authenticate_test.go b/authenticate_test.go
index e08a0a6..1d4d1f5 100644
--- a/authenticate_test.go
+++ b/authenticate_test.go
@@ -53,7 +53,7 @@
`
func TestAuthProvider(t *testing.T) {
- tt := newTransport()
+ tt := newTransport().WithResponse(SUCCESSFUL_RESPONSE)
c := TestContext().UseCustomClient(&http.Client{
Transport: tt,
})
@@ -86,7 +86,7 @@
}
func TestTenantIdEncoding(t *testing.T) {
- tt := newTransport()
+ tt := newTransport().WithResponse(SUCCESSFUL_RESPONSE)
c := TestContext().
UseCustomClient(&http.Client{
Transport: tt,
@@ -126,7 +126,7 @@
func TestUserNameAndPassword(t *testing.T) {
c := TestContext().
WithProvider("provider", Provider{AuthEndpoint: "http://localhost/"}).
- UseCustomClient(&http.Client{Transport: newTransport()})
+ UseCustomClient(&http.Client{Transport: newTransport().WithResponse(SUCCESSFUL_RESPONSE)})
credentials := []AuthOptions{
AuthOptions{},