googleauth 0.5.1 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/{CONTRIBUTING.md → .github/CONTRIBUTING.md} +5 -4
- data/.github/ISSUE_TEMPLATE/bug_report.md +36 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +21 -0
- data/.github/ISSUE_TEMPLATE/support_request.md +7 -0
- data/.kokoro/build.bat +16 -0
- data/.kokoro/build.sh +4 -0
- data/.kokoro/continuous/common.cfg +24 -0
- data/.kokoro/continuous/linux.cfg +25 -0
- data/.kokoro/continuous/osx.cfg +8 -0
- data/.kokoro/continuous/post.cfg +30 -0
- data/.kokoro/continuous/windows.cfg +29 -0
- data/.kokoro/osx.sh +4 -0
- data/.kokoro/presubmit/common.cfg +24 -0
- data/.kokoro/presubmit/linux.cfg +24 -0
- data/.kokoro/presubmit/osx.cfg +8 -0
- data/.kokoro/presubmit/windows.cfg +29 -0
- data/.kokoro/release.cfg +94 -0
- data/.kokoro/trampoline.bat +10 -0
- data/.kokoro/trampoline.sh +4 -0
- data/.repo-metadata.json +5 -0
- data/.rubocop.yml +17 -1
- data/CHANGELOG.md +90 -19
- data/CODE_OF_CONDUCT.md +43 -0
- data/Gemfile +16 -13
- data/README.md +58 -18
- data/Rakefile +106 -10
- data/googleauth.gemspec +27 -25
- data/lib/googleauth/application_default.rb +81 -0
- data/lib/googleauth/client_id.rb +21 -19
- data/lib/googleauth/compute_engine.rb +40 -43
- data/lib/googleauth/credentials.rb +375 -0
- data/lib/googleauth/credentials_loader.rb +117 -43
- data/lib/googleauth/default_credentials.rb +93 -0
- data/lib/googleauth/iam.rb +11 -11
- data/lib/googleauth/json_key_reader.rb +46 -0
- data/lib/googleauth/scope_util.rb +12 -12
- data/lib/googleauth/service_account.rb +64 -62
- data/lib/googleauth/signet.rb +53 -12
- data/lib/googleauth/stores/file_token_store.rb +8 -8
- data/lib/googleauth/stores/redis_token_store.rb +22 -22
- data/lib/googleauth/token_store.rb +6 -6
- data/lib/googleauth/user_authorizer.rb +80 -68
- data/lib/googleauth/user_refresh.rb +44 -35
- data/lib/googleauth/version.rb +1 -1
- data/lib/googleauth/web_user_authorizer.rb +77 -68
- data/lib/googleauth.rb +6 -96
- data/rakelib/devsite_builder.rb +45 -0
- data/rakelib/link_checker.rb +64 -0
- data/rakelib/repo_metadata.rb +59 -0
- data/spec/googleauth/apply_auth_examples.rb +47 -46
- data/spec/googleauth/client_id_spec.rb +75 -55
- data/spec/googleauth/compute_engine_spec.rb +60 -43
- data/spec/googleauth/credentials_spec.rb +467 -0
- data/spec/googleauth/get_application_default_spec.rb +149 -111
- data/spec/googleauth/iam_spec.rb +25 -25
- data/spec/googleauth/scope_util_spec.rb +26 -24
- data/spec/googleauth/service_account_spec.rb +261 -143
- data/spec/googleauth/signet_spec.rb +93 -30
- data/spec/googleauth/stores/file_token_store_spec.rb +12 -13
- data/spec/googleauth/stores/redis_token_store_spec.rb +11 -11
- data/spec/googleauth/stores/store_examples.rb +16 -16
- data/spec/googleauth/user_authorizer_spec.rb +153 -124
- data/spec/googleauth/user_refresh_spec.rb +186 -121
- data/spec/googleauth/web_user_authorizer_spec.rb +82 -69
- data/spec/spec_helper.rb +21 -19
- metadata +75 -32
- data/.rubocop_todo.yml +0 -32
- data/.travis.yml +0 -37
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: '084256f40daf70be42b7489597bbdde5fa0809a0b33690f60307fafa4928d83f'
|
4
|
+
data.tar.gz: ecf351e58a7ff196ed6e75e9a9bdca3eef918828feb9e65dd5e51869c6c6a235
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb987a66865f02231cd66e8b96bbc8a26c97bb516a0a4324c19b86e9c5a77b84f1af208aa96b2a9f9b3656b0d9b742b0f27b6dcc26060cb9acfd5b03d96beccb
|
7
|
+
data.tar.gz: b59184d1118bc14fdf5499eb2a19e5ecd9ba4e90c9d1f6ba648e18a648f4162c2a6ef0fe2d65683ecf1b0dfd42500a9fdfbba0d61208538d4c3c4bd85b482f9e
|
@@ -9,11 +9,12 @@ Please fill out either the individual or corporate Contributor License Agreement
|
|
9
9
|
(CLA).
|
10
10
|
|
11
11
|
* If you are an individual writing original source code and you're sure you
|
12
|
-
own the intellectual property, then you'll need to sign an [individual CLA]
|
13
|
-
(http://code.google.com/legal/individual-cla-v1.0.html).
|
12
|
+
own the intellectual property, then you'll need to sign an [individual CLA].
|
14
13
|
* If you work for a company that wants to allow you to contribute your work,
|
15
|
-
then you'll need to sign a [corporate CLA]
|
16
|
-
|
14
|
+
then you'll need to sign a [corporate CLA].
|
15
|
+
|
16
|
+
[individual CLA]: http://code.google.com/legal/individual-cla-v1.0.html
|
17
|
+
[corporate CLA]: http://code.google.com/legal/corporate-cla-v1.0.html
|
17
18
|
|
18
19
|
Follow either of the two links above to access the appropriate CLA and
|
19
20
|
instructions for how to sign and return it. Once we receive it, we'll be able to
|
@@ -0,0 +1,36 @@
|
|
1
|
+
---
|
2
|
+
name: Bug report
|
3
|
+
about: Create a report to help us improve
|
4
|
+
|
5
|
+
---
|
6
|
+
|
7
|
+
Thanks for stopping by to let us know something could be better!
|
8
|
+
|
9
|
+
**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.
|
10
|
+
|
11
|
+
Please run down the following list and make sure you've tried the usual "quick fixes":
|
12
|
+
|
13
|
+
- Search the issues already opened: https://github.com/googleapis/google-auth-library-ruby/issues
|
14
|
+
- Search Stack Overflow: https://stackoverflow.com/questions/tagged/google-auth-library-ruby
|
15
|
+
|
16
|
+
If you are still having issues, please be sure to include as much information as possible:
|
17
|
+
|
18
|
+
#### Environment details
|
19
|
+
|
20
|
+
- OS:
|
21
|
+
- Ruby version:
|
22
|
+
- Gem name and version:
|
23
|
+
|
24
|
+
#### Steps to reproduce
|
25
|
+
|
26
|
+
1. ...
|
27
|
+
|
28
|
+
#### Code example
|
29
|
+
|
30
|
+
```ruby
|
31
|
+
# example
|
32
|
+
```
|
33
|
+
|
34
|
+
Making sure to follow these steps will guarantee the quickest resolution possible.
|
35
|
+
|
36
|
+
Thanks!
|
@@ -0,0 +1,21 @@
|
|
1
|
+
---
|
2
|
+
name: Feature request
|
3
|
+
about: Suggest an idea for this library
|
4
|
+
|
5
|
+
---
|
6
|
+
|
7
|
+
Thanks for stopping by to let us know something could be better!
|
8
|
+
|
9
|
+
**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.
|
10
|
+
|
11
|
+
**Is your feature request related to a problem? Please describe.**
|
12
|
+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
13
|
+
|
14
|
+
**Describe the solution you'd like**
|
15
|
+
A clear and concise description of what you want to happen.
|
16
|
+
|
17
|
+
**Describe alternatives you've considered**
|
18
|
+
A clear and concise description of any alternative solutions or features you've considered.
|
19
|
+
|
20
|
+
**Additional context**
|
21
|
+
Add any other context or screenshots about the feature request here.
|
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
name: Support request
|
3
|
+
about: If you have a support contract with Google, please create an issue in the Google Cloud Support console.
|
4
|
+
|
5
|
+
---
|
6
|
+
|
7
|
+
**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.
|
data/.kokoro/build.bat
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
REM This file runs tests for merges, PRs, and nightlies.
|
2
|
+
REM There are a few rules for what tests are run:
|
3
|
+
REM * PRs run all non-acceptance tests for every library.
|
4
|
+
REM * Merges run all non-acceptance tests for every library, and acceptance tests for all altered libraries.
|
5
|
+
REM * Nightlies run all acceptance tests for every library.
|
6
|
+
REM Currently only runs tests on 2.5.1
|
7
|
+
|
8
|
+
SET url="https://raw.githubusercontent.com/googleapis/google-cloud-ruby/master/.kokoro/build.bat"
|
9
|
+
|
10
|
+
SET "download=powershell -C Invoke-WebRequest -Uri %url% -OutFile master-build.bat"
|
11
|
+
|
12
|
+
SET EXIT_STATUS=1
|
13
|
+
|
14
|
+
%download% && master-build.bat && SET EXIT_STATUS=0
|
15
|
+
|
16
|
+
EXIT %EXIT_STATUS%
|
data/.kokoro/build.sh
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# Format: //devtools/kokoro/config/proto/build.proto
|
2
|
+
|
3
|
+
# Build logs will be here
|
4
|
+
action {
|
5
|
+
define_artifacts {
|
6
|
+
regex: "**/*sponge_log.xml"
|
7
|
+
}
|
8
|
+
}
|
9
|
+
|
10
|
+
# Download trampoline resources.
|
11
|
+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
|
12
|
+
|
13
|
+
# Download resources for system tests (service account key, etc.)
|
14
|
+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-ruby"
|
15
|
+
|
16
|
+
env_vars: {
|
17
|
+
key: "JOB_TYPE"
|
18
|
+
value: "continuous"
|
19
|
+
}
|
20
|
+
|
21
|
+
env_vars: {
|
22
|
+
key: "REPO_DIR"
|
23
|
+
value: "github/google-auth-library-ruby"
|
24
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# Format: //devtools/kokoro/config/proto/build.proto
|
2
|
+
|
3
|
+
build_file: "google-auth-library-ruby/.kokoro/trampoline.sh"
|
4
|
+
|
5
|
+
# Configure the docker image for kokoro-trampoline.
|
6
|
+
# Dockerfile is maintained at https://github.com/googleapis/google-cloud-ruby/tree/master/.kokoro/docker/multi
|
7
|
+
env_vars: {
|
8
|
+
key: "TRAMPOLINE_IMAGE"
|
9
|
+
value: "gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/multi"
|
10
|
+
}
|
11
|
+
|
12
|
+
env_vars: {
|
13
|
+
key: "TRAMPOLINE_BUILD_FILE"
|
14
|
+
value: "github/google-auth-library-ruby/.kokoro/build.sh"
|
15
|
+
}
|
16
|
+
|
17
|
+
env_vars: {
|
18
|
+
key: "TRAMPOLINE_SCRIPT"
|
19
|
+
value: "trampoline_v1.py"
|
20
|
+
}
|
21
|
+
|
22
|
+
env_vars: {
|
23
|
+
key: "OS"
|
24
|
+
value: "linux"
|
25
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# Format: //devtools/kokoro/config/proto/build.proto
|
2
|
+
|
3
|
+
build_file: "google-auth-library-ruby/.kokoro/trampoline.sh"
|
4
|
+
|
5
|
+
# Configure the docker image for kokoro-trampoline.
|
6
|
+
# Dockerfile is maintained at https://github.com/googleapis/google-cloud-ruby/tree/master/.kokoro/docker/multi-node
|
7
|
+
env_vars: {
|
8
|
+
key: "TRAMPOLINE_IMAGE"
|
9
|
+
value: "gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/multi-node"
|
10
|
+
}
|
11
|
+
|
12
|
+
env_vars: {
|
13
|
+
key: "TRAMPOLINE_BUILD_FILE"
|
14
|
+
value: "github/google-auth-library-ruby/.kokoro/build.sh"
|
15
|
+
}
|
16
|
+
|
17
|
+
env_vars: {
|
18
|
+
key: "TRAMPOLINE_SCRIPT"
|
19
|
+
value: "trampoline_v1.py"
|
20
|
+
}
|
21
|
+
|
22
|
+
env_vars: {
|
23
|
+
key: "OS"
|
24
|
+
value: "linux"
|
25
|
+
}
|
26
|
+
|
27
|
+
env_vars: {
|
28
|
+
key: "JOB_TYPE"
|
29
|
+
value: "post"
|
30
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# Format: //devtools/kokoro/config/proto/build.proto
|
2
|
+
|
3
|
+
build_file: "google-auth-library-ruby/.kokoro/trampoline.bat"
|
4
|
+
|
5
|
+
# Configure the docker image for kokoro-trampoline.
|
6
|
+
env_vars: {
|
7
|
+
key: "TRAMPOLINE_IMAGE"
|
8
|
+
value: "gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/windows"
|
9
|
+
}
|
10
|
+
|
11
|
+
env_vars: {
|
12
|
+
key: "TRAMPOLINE_BUILD_FILE"
|
13
|
+
value: "github/google-auth-library-ruby/.kokoro/build.bat"
|
14
|
+
}
|
15
|
+
|
16
|
+
env_vars: {
|
17
|
+
key: "TRAMPOLINE_SCRIPT"
|
18
|
+
value: "trampoline_windows.py"
|
19
|
+
}
|
20
|
+
|
21
|
+
env_vars: {
|
22
|
+
key: "REPO_DIR"
|
23
|
+
value: "google-auth-library-ruby"
|
24
|
+
}
|
25
|
+
|
26
|
+
env_vars: {
|
27
|
+
key: "OS"
|
28
|
+
value: "windows"
|
29
|
+
}
|
data/.kokoro/osx.sh
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# Format: //devtools/kokoro/config/proto/build.proto
|
2
|
+
|
3
|
+
# Build logs will be here
|
4
|
+
action {
|
5
|
+
define_artifacts {
|
6
|
+
regex: "**/*sponge_log.xml"
|
7
|
+
}
|
8
|
+
}
|
9
|
+
|
10
|
+
# Download trampoline resources.
|
11
|
+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
|
12
|
+
|
13
|
+
# Download resources for system tests (service account key, etc.)
|
14
|
+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-ruby"
|
15
|
+
|
16
|
+
env_vars: {
|
17
|
+
key: "JOB_TYPE"
|
18
|
+
value: "presubmit"
|
19
|
+
}
|
20
|
+
|
21
|
+
env_vars: {
|
22
|
+
key: "REPO_DIR"
|
23
|
+
value: "github/google-auth-library-ruby"
|
24
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Format: //devtools/kokoro/config/proto/build.proto
|
2
|
+
|
3
|
+
build_file: "google-auth-library-ruby/.kokoro/trampoline.sh"
|
4
|
+
|
5
|
+
# Configure the docker image for kokoro-trampoline.
|
6
|
+
env_vars: {
|
7
|
+
key: "TRAMPOLINE_IMAGE"
|
8
|
+
value: "gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/multi"
|
9
|
+
}
|
10
|
+
|
11
|
+
env_vars: {
|
12
|
+
key: "TRAMPOLINE_BUILD_FILE"
|
13
|
+
value: "github/google-auth-library-ruby/.kokoro/build.sh"
|
14
|
+
}
|
15
|
+
|
16
|
+
env_vars: {
|
17
|
+
key: "TRAMPOLINE_SCRIPT"
|
18
|
+
value: "trampoline_v1.py"
|
19
|
+
}
|
20
|
+
|
21
|
+
env_vars: {
|
22
|
+
key: "OS"
|
23
|
+
value: "linux"
|
24
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# Format: //devtools/kokoro/config/proto/build.proto
|
2
|
+
|
3
|
+
build_file: "google-auth-library-ruby/.kokoro/trampoline.bat"
|
4
|
+
|
5
|
+
# Configure the docker image for kokoro-trampoline.
|
6
|
+
env_vars: {
|
7
|
+
key: "TRAMPOLINE_IMAGE"
|
8
|
+
value: "gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/windows"
|
9
|
+
}
|
10
|
+
|
11
|
+
env_vars: {
|
12
|
+
key: "TRAMPOLINE_BUILD_FILE"
|
13
|
+
value: "github/google-auth-library-ruby/.kokoro/build.bat"
|
14
|
+
}
|
15
|
+
|
16
|
+
env_vars: {
|
17
|
+
key: "TRAMPOLINE_SCRIPT"
|
18
|
+
value: "trampoline_windows.py"
|
19
|
+
}
|
20
|
+
|
21
|
+
env_vars: {
|
22
|
+
key: "REPO_DIR"
|
23
|
+
value: "google-auth-library-ruby"
|
24
|
+
}
|
25
|
+
|
26
|
+
env_vars: {
|
27
|
+
key: "OS"
|
28
|
+
value: "windows"
|
29
|
+
}
|
data/.kokoro/release.cfg
ADDED
@@ -0,0 +1,94 @@
|
|
1
|
+
# Format: //devtools/kokoro/config/proto/build.proto
|
2
|
+
|
3
|
+
# Build logs will be here
|
4
|
+
action {
|
5
|
+
define_artifacts {
|
6
|
+
regex: "**/*sponge_log.xml"
|
7
|
+
}
|
8
|
+
}
|
9
|
+
|
10
|
+
# Fetch the token needed for reporting release status to GitHub
|
11
|
+
before_action {
|
12
|
+
fetch_keystore {
|
13
|
+
keystore_resource {
|
14
|
+
keystore_config_id: 73713
|
15
|
+
keyname: "yoshi-automation-github-key"
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
# Fetch magictoken to use with Magic Github Proxy
|
21
|
+
before_action {
|
22
|
+
fetch_keystore {
|
23
|
+
keystore_resource {
|
24
|
+
keystore_config_id: 73713
|
25
|
+
keyname: "releasetool-magictoken"
|
26
|
+
backend_type: FASTCONFIGPUSH
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
# Fetch api key to use with Magic Github Proxy
|
32
|
+
before_action {
|
33
|
+
fetch_keystore {
|
34
|
+
keystore_resource {
|
35
|
+
keystore_config_id: 73713
|
36
|
+
keyname: "magic-github-proxy-api-key"
|
37
|
+
backend_type: FASTCONFIGPUSH
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
before_action {
|
43
|
+
fetch_keystore {
|
44
|
+
keystore_resource {
|
45
|
+
keystore_config_id: 73713
|
46
|
+
keyname: "docuploader_service_account"
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
# Download resources for system tests (service account key, etc.)
|
52
|
+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-ruby"
|
53
|
+
|
54
|
+
# Download trampoline resources.
|
55
|
+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
|
56
|
+
|
57
|
+
# Use the trampoline script to run in docker.
|
58
|
+
build_file: "google-auth-library-ruby/.kokoro/trampoline.sh"
|
59
|
+
|
60
|
+
# Configure the docker image for kokoro-trampoline.
|
61
|
+
env_vars: {
|
62
|
+
key: "TRAMPOLINE_IMAGE"
|
63
|
+
value: "gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/release"
|
64
|
+
}
|
65
|
+
|
66
|
+
env_vars: {
|
67
|
+
key: "TRAMPOLINE_BUILD_FILE"
|
68
|
+
value: "github/google-auth-library-ruby/.kokoro/build.sh"
|
69
|
+
}
|
70
|
+
|
71
|
+
env_vars: {
|
72
|
+
key: "TRAMPOLINE_SCRIPT"
|
73
|
+
value: "trampoline_v1.py"
|
74
|
+
}
|
75
|
+
|
76
|
+
env_vars: {
|
77
|
+
key: "JOB_TYPE"
|
78
|
+
value: "release"
|
79
|
+
}
|
80
|
+
|
81
|
+
env_vars: {
|
82
|
+
key: "OS"
|
83
|
+
value: "linux"
|
84
|
+
}
|
85
|
+
|
86
|
+
env_vars: {
|
87
|
+
key: "REPO_DIR"
|
88
|
+
value: "github/google-auth-library-ruby"
|
89
|
+
}
|
90
|
+
|
91
|
+
env_vars: {
|
92
|
+
key: "PACKAGE"
|
93
|
+
value: "googleauth"
|
94
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
|
2
|
+
SET url="https://raw.githubusercontent.com/googleapis/google-cloud-ruby/master/.kokoro/trampoline.bat"
|
3
|
+
|
4
|
+
SET "download=powershell -C Invoke-WebRequest -Uri %url% -OutFile master-trampoline.bat"
|
5
|
+
|
6
|
+
SET EXIT_STATUS=1
|
7
|
+
|
8
|
+
%download% && master-trampoline.bat && SET EXIT_STATUS=0
|
9
|
+
|
10
|
+
EXIT %EXIT_STATUS%
|
data/.repo-metadata.json
ADDED
data/.rubocop.yml
CHANGED
@@ -1 +1,17 @@
|
|
1
|
-
|
1
|
+
inherit_gem:
|
2
|
+
google-style: google-style.yml
|
3
|
+
|
4
|
+
AllCops:
|
5
|
+
Exclude:
|
6
|
+
- "spec/**/*"
|
7
|
+
- "Rakefile"
|
8
|
+
- "rakelib/**/*"
|
9
|
+
Metrics/ClassLength:
|
10
|
+
Max: 200
|
11
|
+
Metrics/ModuleLength:
|
12
|
+
Max: 110
|
13
|
+
Metrics/BlockLength:
|
14
|
+
Exclude:
|
15
|
+
- "googleauth.gemspec"
|
16
|
+
Style/SafeNavigation:
|
17
|
+
Enabled: false
|
data/CHANGELOG.md
CHANGED
@@ -1,21 +1,100 @@
|
|
1
|
-
|
1
|
+
### 0.11.0 / 2020-02-24
|
2
2
|
|
3
|
-
|
3
|
+
* Support Faraday 1.x.
|
4
|
+
* Allow special "postmessage" value for redirect_uri.
|
5
|
+
|
6
|
+
### 0.10.0 / 2019-10-09
|
7
|
+
|
8
|
+
Note: This release now requires Ruby 2.4 or later
|
9
|
+
|
10
|
+
* Increase metadata timeout to improve reliability in some hosting environments
|
11
|
+
* Support an environment variable to suppress Cloud SDK credentials warnings
|
12
|
+
* Make the header check case insensitive
|
13
|
+
* Set instance variables at initialization to avoid spamming warnings
|
14
|
+
* Pass "Metadata-Flavor" header to metadata server when checking for GCE
|
15
|
+
|
16
|
+
### 0.9.0 / 2019-08-05
|
17
|
+
|
18
|
+
* Restore compatibility with Ruby 2.0. This is the last release that will work on end-of-lifed versions of Ruby. The 0.10 release will require Ruby 2.4 or later.
|
19
|
+
* Update Credentials to use methods for values that are intended to be changed by users, replacing constants.
|
20
|
+
* Add retry on error for fetch_access_token
|
21
|
+
* Allow specifying custom state key-values
|
22
|
+
* Add verbosity none to gcloud command
|
23
|
+
* Make arity of WebUserAuthorizer#get_credentials compatible with the base class
|
24
|
+
|
25
|
+
### 0.8.1 / 2019-03-27
|
26
|
+
|
27
|
+
* Silence unnecessary gcloud warning
|
28
|
+
* Treat empty credentials environment variables as unset
|
29
|
+
|
30
|
+
### 0.8.0 / 2019-01-02
|
31
|
+
|
32
|
+
* Support connection options :default_connection and :connection_builder when creating credentials that need to refresh OAuth tokens. This lets clients provide connection objects with custom settings, such as proxies, needed for the client environment.
|
33
|
+
* Removed an unnecessary warning about project IDs.
|
34
|
+
|
35
|
+
### 0.7.1 / 2018-10-25
|
36
|
+
|
37
|
+
* Make load_gcloud_project_id module function.
|
38
|
+
|
39
|
+
### 0.7.0 / 2018-10-24
|
40
|
+
|
41
|
+
* Add project_id instance variable to UserRefreshCredentials, ServiceAccountCredentials, and Credentials.
|
42
|
+
|
43
|
+
### 0.6.7 / 2018-10-16
|
44
|
+
|
45
|
+
* Update memoist dependency to ~> 0.16.
|
46
|
+
|
47
|
+
### 0.6.6 / 2018-08-22
|
48
|
+
|
49
|
+
* Remove ruby version warnings.
|
50
|
+
|
51
|
+
### 0.6.5 / 2018-08-16
|
52
|
+
|
53
|
+
* Fix incorrect http verb when revoking credentials.
|
54
|
+
* Warn on EOL ruby versions.
|
55
|
+
|
56
|
+
### 0.6.4 / 2018-08-03
|
57
|
+
|
58
|
+
* Resolve issue where DefaultCredentials constant was undefined.
|
59
|
+
|
60
|
+
### 0.6.3 / 2018-08-02
|
61
|
+
|
62
|
+
* Resolve issue where token_store was being written to twice
|
63
|
+
|
64
|
+
### 0.6.2 / 2018-08-01
|
65
|
+
|
66
|
+
* Add warning when using cloud sdk credentials
|
67
|
+
|
68
|
+
### 0.6.1 / 2017-10-18
|
69
|
+
|
70
|
+
* Fix file permissions
|
71
|
+
|
72
|
+
### 0.6.0 / 2017-10-17
|
73
|
+
|
74
|
+
* Support ruby-jwt 2.0
|
75
|
+
* Add simple credentials class
|
76
|
+
|
77
|
+
### 0.5.3 / 2017-07-21
|
78
|
+
|
79
|
+
* Fix file permissions on the gem's `.rb` files.
|
80
|
+
|
81
|
+
### 0.5.2 / 2017-07-19
|
82
|
+
|
83
|
+
* Add retry mechanism when fetching access tokens in `GCECredentials` and `UserRefreshCredentials` classes.
|
84
|
+
* Update Google API OAuth2 token credential URI to v4.
|
85
|
+
|
86
|
+
### 0.5.1 / 2016-01-06
|
4
87
|
|
5
88
|
* Change header name emitted by `Client#apply` from "Authorization" to "authorization" ([@murgatroid99][])
|
6
89
|
* Fix ADC not working on some windows machines ([@vsubramani][])
|
7
90
|
[#55](https://github.com/google/google-auth-library-ruby/issues/55)
|
8
91
|
|
9
|
-
|
10
|
-
|
11
|
-
### Changes
|
92
|
+
### 0.5.0 / 2015-10-12
|
12
93
|
|
13
94
|
* Initial support for user credentials ([@sqrrrl][])
|
14
95
|
* Update Signet to 0.7
|
15
96
|
|
16
|
-
|
17
|
-
|
18
|
-
### Changes
|
97
|
+
### 0.4.2 / 2015-08-05
|
19
98
|
|
20
99
|
* Updated UserRefreshCredentials hash to use string keys ([@haabaato][])
|
21
100
|
[#36](https://github.com/google/google-auth-library-ruby/issues/36)
|
@@ -29,27 +108,19 @@
|
|
29
108
|
* Relax the constraint of dependent version of multi_json ([@igrep][])
|
30
109
|
[#30](https://github.com/google/google-auth-library-ruby/issues/30)
|
31
110
|
|
32
|
-
### Changes
|
33
|
-
|
34
111
|
* Enables passing credentials via environment variables. ([@haabaato][])
|
35
112
|
[#27](https://github.com/google/google-auth-library-ruby/issues/27)
|
36
113
|
|
37
|
-
|
38
|
-
|
39
|
-
### Changes
|
114
|
+
### 0.4.1 / 2015-04-25
|
40
115
|
|
41
116
|
* Improves handling of --no-scopes GCE authorization ([@tbetbetbe][])
|
42
117
|
* Refactoring and cleanup ([@joneslee85][])
|
43
118
|
|
44
|
-
|
45
|
-
|
46
|
-
### Changes
|
119
|
+
### 0.4.0 / 2015-03-25
|
47
120
|
|
48
121
|
* Adds an implementation of JWT header auth ([@tbetbetbe][])
|
49
122
|
|
50
|
-
|
51
|
-
|
52
|
-
### Changes
|
123
|
+
### 0.3.0 / 2015-03-23
|
53
124
|
|
54
125
|
* makes the scope parameter's optional in all APIs. ([@tbetbetbe][])
|
55
126
|
* changes the scope parameter's position in various constructors. ([@tbetbetbe][])
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project,
|
4
|
+
and in the interest of fostering an open and welcoming community,
|
5
|
+
we pledge to respect all people who contribute through reporting issues,
|
6
|
+
posting feature requests, updating documentation,
|
7
|
+
submitting pull requests or patches, and other activities.
|
8
|
+
|
9
|
+
We are committed to making participation in this project
|
10
|
+
a harassment-free experience for everyone,
|
11
|
+
regardless of level of experience, gender, gender identity and expression,
|
12
|
+
sexual orientation, disability, personal appearance,
|
13
|
+
body size, race, ethnicity, age, religion, or nationality.
|
14
|
+
|
15
|
+
Examples of unacceptable behavior by participants include:
|
16
|
+
|
17
|
+
* The use of sexualized language or imagery
|
18
|
+
* Personal attacks
|
19
|
+
* Trolling or insulting/derogatory comments
|
20
|
+
* Public or private harassment
|
21
|
+
* Publishing other's private information,
|
22
|
+
such as physical or electronic
|
23
|
+
addresses, without explicit permission
|
24
|
+
* Other unethical or unprofessional conduct.
|
25
|
+
|
26
|
+
Project maintainers have the right and responsibility to remove, edit, or reject
|
27
|
+
comments, commits, code, wiki edits, issues, and other contributions
|
28
|
+
that are not aligned to this Code of Conduct.
|
29
|
+
By adopting this Code of Conduct,
|
30
|
+
project maintainers commit themselves to fairly and consistently
|
31
|
+
applying these principles to every aspect of managing this project.
|
32
|
+
Project maintainers who do not follow or enforce the Code of Conduct
|
33
|
+
may be permanently removed from the project team.
|
34
|
+
|
35
|
+
This code of conduct applies both within project spaces and in public spaces
|
36
|
+
when an individual is representing the project or its community.
|
37
|
+
|
38
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior
|
39
|
+
may be reported by opening an issue
|
40
|
+
or contacting one or more of the project maintainers.
|
41
|
+
|
42
|
+
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.2.0,
|
43
|
+
available at [http://contributor-covenant.org/version/1/2/0/](http://contributor-covenant.org/version/1/2/0/)
|