File tree 16 files changed +21
-20
lines changed
16 files changed +21
-20
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,9 @@ See godoc for further documentation and examples.
24
24
25
25
In change 96e89be (March 2015), we removed the ` oauth2.Context2 ` type in favor
26
26
of the [ ` context.Context ` ] ( https://golang.org/x/net/context#Context ) type from
27
- the ` golang.org/x/net/context ` package
27
+ the ` golang.org/x/net/context ` package. Later replaced by the standard ` context ` package
28
+ of the [ ` context.Context ` ] ( https://golang.org/pkg/context#Context ) type.
29
+
28
30
29
31
This means it's no longer possible to use the "Classic App Engine"
30
32
` appengine.Context ` type with the ` oauth2 ` package. (You're using
@@ -44,7 +46,7 @@ with the `oauth2` package.
44
46
45
47
``` go
46
48
import (
47
- " golang.org/x/net/ context"
49
+ " context"
48
50
" golang.org/x/oauth2"
49
51
" golang.org/x/oauth2/google"
50
52
newappengine " google.golang.org/appengine"
Original file line number Diff line number Diff line change 14
14
package clientcredentials // import "golang.org/x/oauth2/clientcredentials"
15
15
16
16
import (
17
+ "context"
17
18
"fmt"
18
19
"net/http"
19
20
"net/url"
20
21
"strings"
21
22
22
- "golang.org/x/net/context"
23
23
"golang.org/x/oauth2"
24
24
"golang.org/x/oauth2/internal"
25
25
)
Original file line number Diff line number Diff line change 5
5
package google
6
6
7
7
import (
8
+ "context"
8
9
"time"
9
10
10
- "golang.org/x/net/context"
11
11
"golang.org/x/oauth2"
12
12
)
13
13
Original file line number Diff line number Diff line change 5
5
package google
6
6
7
7
import (
8
+ "context"
8
9
"encoding/json"
9
10
"fmt"
10
11
"io/ioutil"
@@ -14,7 +15,6 @@ import (
14
15
"runtime"
15
16
16
17
"cloud.google.com/go/compute/metadata"
17
- "golang.org/x/net/context"
18
18
"golang.org/x/oauth2"
19
19
)
20
20
Original file line number Diff line number Diff line change 5
5
package google_test
6
6
7
7
import (
8
+ "context"
8
9
"fmt"
9
10
"io/ioutil"
10
11
"log"
11
12
"net/http"
12
13
13
- "golang.org/x/net/context"
14
14
"golang.org/x/oauth2"
15
15
"golang.org/x/oauth2/google"
16
16
"golang.org/x/oauth2/jwt"
Original file line number Diff line number Diff line change 7
7
package google
8
8
9
9
import (
10
- "golang.org/x/net/context"
10
+ "context"
11
+
11
12
"golang.org/x/oauth2"
12
13
)
13
14
Original file line number Diff line number Diff line change 5
5
package google
6
6
7
7
import (
8
+ "context"
8
9
"encoding/json"
9
10
"errors"
10
11
"fmt"
11
12
"strings"
12
13
"time"
13
14
14
15
"cloud.google.com/go/compute/metadata"
15
- "golang.org/x/net/context"
16
16
"golang.org/x/oauth2"
17
17
"golang.org/x/oauth2/jwt"
18
18
)
Original file line number Diff line number Diff line change 7
7
package google
8
8
9
9
import (
10
- "golang.org/x/net/context"
10
+ "context"
11
+
11
12
"golang.org/x/oauth2"
12
13
)
13
14
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ package google
6
6
7
7
import (
8
8
"bufio"
9
+ "context"
9
10
"encoding/json"
10
11
"errors"
11
12
"fmt"
@@ -18,7 +19,6 @@ import (
18
19
"strings"
19
20
"time"
20
21
21
- "golang.org/x/net/context"
22
22
"golang.org/x/oauth2"
23
23
)
24
24
Original file line number Diff line number Diff line change 5
5
package internal
6
6
7
7
import (
8
+ "context"
8
9
"encoding/json"
9
10
"errors"
10
11
"fmt"
@@ -17,7 +18,6 @@ import (
17
18
"strings"
18
19
"time"
19
20
20
- "golang.org/x/net/context"
21
21
"golang.org/x/net/context/ctxhttp"
22
22
)
23
23
Original file line number Diff line number Diff line change 5
5
package internal
6
6
7
7
import (
8
+ "context"
8
9
"fmt"
9
10
"io"
10
11
"net/http"
11
12
"net/http/httptest"
12
13
"net/url"
13
14
"testing"
14
-
15
- "golang.org/x/net/context"
16
15
)
17
16
18
17
func TestRegisterBrokenAuthHeaderProvider (t * testing.T ) {
Original file line number Diff line number Diff line change 5
5
package internal
6
6
7
7
import (
8
+ "context"
8
9
"net/http"
9
-
10
- "golang.org/x/net/context"
11
10
)
12
11
13
12
// HTTPClient is the context key to use with golang.org/x/net/context's
Original file line number Diff line number Diff line change 9
9
package jwt
10
10
11
11
import (
12
+ "context"
12
13
"encoding/json"
13
14
"fmt"
14
15
"io"
@@ -18,7 +19,6 @@ import (
18
19
"strings"
19
20
"time"
20
21
21
- "golang.org/x/net/context"
22
22
"golang.org/x/oauth2"
23
23
"golang.org/x/oauth2/internal"
24
24
"golang.org/x/oauth2/jws"
Original file line number Diff line number Diff line change @@ -10,13 +10,13 @@ package oauth2 // import "golang.org/x/oauth2"
10
10
11
11
import (
12
12
"bytes"
13
+ "context"
13
14
"errors"
14
15
"net/http"
15
16
"net/url"
16
17
"strings"
17
18
"sync"
18
19
19
- "golang.org/x/net/context"
20
20
"golang.org/x/oauth2/internal"
21
21
)
22
22
Original file line number Diff line number Diff line change 5
5
package oauth2
6
6
7
7
import (
8
+ "context"
8
9
"errors"
9
10
"fmt"
10
11
"io/ioutil"
@@ -13,8 +14,6 @@ import (
13
14
"net/url"
14
15
"testing"
15
16
"time"
16
-
17
- "golang.org/x/net/context"
18
17
)
19
18
20
19
type mockTransport struct {
Original file line number Diff line number Diff line change 5
5
package oauth2
6
6
7
7
import (
8
+ "context"
8
9
"fmt"
9
10
"net/http"
10
11
"net/url"
11
12
"strconv"
12
13
"strings"
13
14
"time"
14
15
15
- "golang.org/x/net/context"
16
16
"golang.org/x/oauth2/internal"
17
17
)
18
18
You can’t perform that action at this time.
0 commit comments