omniauth-doximity-oauth2 0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +134 -0
- data/.github/CODEOWNERS +2 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +15 -0
- data/.gitignore +8 -0
- data/.rubocop.yml +17 -0
- data/CHANGELOG.md +18 -0
- data/CONTRIBUTING.md +31 -0
- data/CONTRIBUTORS.md +4 -0
- data/Gemfile +1 -3
- data/Gemfile.lock +112 -0
- data/LICENSE.txt +201 -0
- data/README.md +127 -13
- data/Rakefile +21 -2
- data/lib/omniauth/strategies/doximity_oauth2.rb +135 -0
- data/lib/omniauth-doximity-oauth2/errors.rb +28 -0
- data/lib/omniauth-doximity-oauth2/version.rb +7 -0
- data/lib/omniauth-doximity-oauth2.rb +4 -0
- data/omniauth-doximity-oauth2.gemspec +40 -0
- data/spec/omniauth/strategies/doximity_oauth2_spec.rb +130 -0
- data/spec/rubocop_spec.rb +9 -0
- data/spec/spec_helper.rb +4 -0
- data/tasks/ci.rake +16 -0
- data/vendor/cache/activesupport-6.1.5.1.gem +0 -0
- data/vendor/cache/ast-2.4.2.gem +0 -0
- data/vendor/cache/concurrent-ruby-1.1.10.gem +0 -0
- data/vendor/cache/diff-lcs-1.5.0.gem +0 -0
- data/vendor/cache/faraday-2.2.0.gem +0 -0
- data/vendor/cache/faraday-net_http-2.0.2.gem +0 -0
- data/vendor/cache/hashie-5.0.0.gem +0 -0
- data/vendor/cache/i18n-1.10.0.gem +0 -0
- data/vendor/cache/jwt-2.3.0.gem +0 -0
- data/vendor/cache/minitest-5.15.0.gem +0 -0
- data/vendor/cache/multi_json-1.15.0.gem +0 -0
- data/vendor/cache/multi_xml-0.6.0.gem +0 -0
- data/vendor/cache/oauth2-1.4.9.gem +0 -0
- data/vendor/cache/omniauth-2.1.0.gem +0 -0
- data/vendor/cache/omniauth-oauth2-1.7.2.gem +0 -0
- data/vendor/cache/openssl-3.0.0.gem +0 -0
- data/vendor/cache/parallel-1.22.1.gem +0 -0
- data/vendor/cache/parser-3.1.2.0.gem +0 -0
- data/vendor/cache/rack-2.2.3.gem +0 -0
- data/vendor/cache/rack-protection-2.2.0.gem +0 -0
- data/vendor/cache/rainbow-3.1.1.gem +0 -0
- data/vendor/cache/rake-13.0.6.gem +0 -0
- data/vendor/cache/rdoc-6.3.3.gem +0 -0
- data/vendor/cache/regexp_parser-2.3.1.gem +0 -0
- data/vendor/cache/rexml-3.2.5.gem +0 -0
- data/vendor/cache/rspec-3.11.0.gem +0 -0
- data/vendor/cache/rspec-core-3.11.0.gem +0 -0
- data/vendor/cache/rspec-expectations-3.11.0.gem +0 -0
- data/vendor/cache/rspec-mocks-3.11.0.gem +0 -0
- data/vendor/cache/rspec-support-3.11.0.gem +0 -0
- data/vendor/cache/rubocop-1.28.2.gem +0 -0
- data/vendor/cache/rubocop-ast-1.17.0.gem +0 -0
- data/vendor/cache/rubocop-rails-2.14.2.gem +0 -0
- data/vendor/cache/ruby-progressbar-1.11.0.gem +0 -0
- data/vendor/cache/ruby2_keywords-0.0.5.gem +0 -0
- data/vendor/cache/sdoc-2.3.1.gem +0 -0
- data/vendor/cache/tzinfo-2.0.4.gem +0 -0
- data/vendor/cache/unicode-display_width-2.1.0.gem +0 -0
- data/vendor/cache/zeitwerk-2.5.4.gem +0 -0
- metadata +249 -21
- data/lib/omniauth/doximity/oauth2/version.rb +0 -9
- data/lib/omniauth/doximity/oauth2.rb +0 -12
- data/sig/omniauth/doximity/oauth2.rbs +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f4f596bfdb48f1bdf6ae160dc0297a15182a24257857308a1b5180e70040275
|
4
|
+
data.tar.gz: 60bce2624b9fe8acdc7c9b8dfe2fc8889906993fc2a20aae9fdf92631d73b85d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12e5e02958b71ed1d541b83194127b63a62b22b144cd34a968cd7bece8f55246d8365412f6cbe6574c1237dcfa92639a6269d98f109a64538cc98cf0143cd24e
|
7
|
+
data.tar.gz: 839a8ccdbfac1ceceb754398f42274220a2a171aca2bc611d11492931a492a43fb6dbc4353e796f343806597e7ada24295418a6013f47333137e72e7880e321a
|
@@ -0,0 +1,134 @@
|
|
1
|
+
version: 2.1
|
2
|
+
|
3
|
+
orbs:
|
4
|
+
gem: doximity/gem-publisher@0
|
5
|
+
|
6
|
+
executors:
|
7
|
+
ruby-2-6:
|
8
|
+
resource_class: small
|
9
|
+
docker:
|
10
|
+
- image: cimg/ruby:2.6
|
11
|
+
environment:
|
12
|
+
BUNDLE_VERSION: "2.3.12"
|
13
|
+
|
14
|
+
# yaml anchor filters
|
15
|
+
master_only: &master_only
|
16
|
+
filters:
|
17
|
+
branches:
|
18
|
+
only: master
|
19
|
+
tags:
|
20
|
+
ignore: /.*/
|
21
|
+
|
22
|
+
pr_only: &pr_only
|
23
|
+
filters:
|
24
|
+
branches:
|
25
|
+
ignore: master
|
26
|
+
tags:
|
27
|
+
ignore: /.*/
|
28
|
+
|
29
|
+
version_tags_only: &version_tags_only
|
30
|
+
filters:
|
31
|
+
branches:
|
32
|
+
ignore: /.*/
|
33
|
+
tags:
|
34
|
+
only: /^v.*/
|
35
|
+
|
36
|
+
jobs:
|
37
|
+
build:
|
38
|
+
executor: ruby-2-6
|
39
|
+
steps:
|
40
|
+
- checkout
|
41
|
+
- run:
|
42
|
+
name: Install Bundler specific version
|
43
|
+
command: |
|
44
|
+
gem install bundler --version "${BUNDLE_VERSION}" --force
|
45
|
+
bundle config set --local path 'vendor/bundle'
|
46
|
+
bundle config set --local frozen 'true'
|
47
|
+
bundle config set --local jobs '4'
|
48
|
+
bundle config set --local retry '3'
|
49
|
+
- restore_cache:
|
50
|
+
keys:
|
51
|
+
- v1-bundle-{{ checksum "Gemfile.lock" }}-
|
52
|
+
- run:
|
53
|
+
name: Install Ruby Dependencies
|
54
|
+
command: bundle install --local
|
55
|
+
- save_cache:
|
56
|
+
key: v1-bundle-{{ checksum "Gemfile.lock" }}-
|
57
|
+
paths:
|
58
|
+
- vendor/bundle
|
59
|
+
- run:
|
60
|
+
name: Run Rubocop
|
61
|
+
command: bundle exec rake ci:rubocop
|
62
|
+
- run:
|
63
|
+
name: Run Tests
|
64
|
+
command: bundle exec rake ci:specs
|
65
|
+
- store_test_results:
|
66
|
+
name: Store test results
|
67
|
+
path: tmp/test-results
|
68
|
+
- run:
|
69
|
+
name: Build documentation
|
70
|
+
command: bundle exec rake ci:doc
|
71
|
+
- store_artifacts:
|
72
|
+
name: Saves documentation
|
73
|
+
path: doc
|
74
|
+
- persist_to_workspace:
|
75
|
+
root: .
|
76
|
+
paths:
|
77
|
+
- vendor/bundle
|
78
|
+
|
79
|
+
workflows:
|
80
|
+
version: 2
|
81
|
+
|
82
|
+
trunk:
|
83
|
+
jobs:
|
84
|
+
- build:
|
85
|
+
<<: *master_only
|
86
|
+
- gem/build:
|
87
|
+
<<: *master_only
|
88
|
+
executor: ruby-2-6
|
89
|
+
name: gem-build
|
90
|
+
requires:
|
91
|
+
- build
|
92
|
+
|
93
|
+
pull-requests:
|
94
|
+
jobs:
|
95
|
+
- build:
|
96
|
+
<<: *pr_only
|
97
|
+
- gem/build:
|
98
|
+
<<: *pr_only
|
99
|
+
executor: ruby-2-6
|
100
|
+
name: gem-build
|
101
|
+
requires:
|
102
|
+
- build
|
103
|
+
- pre-release-approval:
|
104
|
+
<<: *pr_only
|
105
|
+
type: approval
|
106
|
+
requires:
|
107
|
+
- gem-build
|
108
|
+
- gem/publish:
|
109
|
+
<<: *pr_only
|
110
|
+
name: gem-publish
|
111
|
+
to_rubygems: true
|
112
|
+
pre_release: true
|
113
|
+
requires:
|
114
|
+
- pre-release-approval
|
115
|
+
context: artifact_publishing
|
116
|
+
|
117
|
+
final-release:
|
118
|
+
jobs:
|
119
|
+
- build:
|
120
|
+
<<: *version_tags_only
|
121
|
+
- gem/build:
|
122
|
+
<<: *version_tags_only
|
123
|
+
executor: ruby-2-6
|
124
|
+
name: gem-build
|
125
|
+
requires:
|
126
|
+
- build
|
127
|
+
- gem/publish:
|
128
|
+
<<: *version_tags_only
|
129
|
+
name: gem-publish
|
130
|
+
to_rubygems: true
|
131
|
+
pre_release: false
|
132
|
+
requires:
|
133
|
+
- gem-build
|
134
|
+
context: artifact_publishing
|
data/.github/CODEOWNERS
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
Overview
|
2
|
+
--------
|
3
|
+
|
4
|
+
<!-- High-level description of what is being changed and why. -->
|
5
|
+
|
6
|
+
Technical Details
|
7
|
+
-----------------
|
8
|
+
|
9
|
+
<!-- Explain non-obvious technical changes, the reasoning behind them, any compromises involved, etc.
|
10
|
+
(Remove this section if you have nothing to add here.) -->
|
11
|
+
|
12
|
+
Testing Instructions
|
13
|
+
---------------
|
14
|
+
|
15
|
+
<!-- Please replace this with testing instructions. -->
|
data/.gitignore
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
require:
|
2
|
+
- rubocop-rails
|
3
|
+
|
4
|
+
Style/StringLiterals:
|
5
|
+
Enabled: false
|
6
|
+
|
7
|
+
Metrics/BlockLength:
|
8
|
+
Enabled: false
|
9
|
+
|
10
|
+
Naming/FileName:
|
11
|
+
Enabled: false
|
12
|
+
|
13
|
+
Naming/MethodParameterName:
|
14
|
+
Enabled: false
|
15
|
+
|
16
|
+
Rails/RakeEnvironment:
|
17
|
+
Enabled: false
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
Changelog
|
2
|
+
=========
|
3
|
+
|
4
|
+
## 1.0.0 - 05/02/2022
|
5
|
+
* Gem now publishes to RubyGems
|
6
|
+
|
7
|
+
## 0.2.0 - 04/27/2022
|
8
|
+
* Change gem name
|
9
|
+
|
10
|
+
## 0.1.1 - 04/18/2022
|
11
|
+
* Use Faraday and MultiJson
|
12
|
+
* Update [README.md]("./README.md")
|
13
|
+
|
14
|
+
## 0.1.0 - 04/14/2022
|
15
|
+
* Unlock omniauth-oauth2 dependency
|
16
|
+
|
17
|
+
## 0.0.1 - 03/31/2022
|
18
|
+
* Initialize gem
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# Contributing
|
2
|
+
|
3
|
+
We welcome contributions to this repository. Feel free to submit issues for bugs you encounter and pull requests for code and documentation contributions.
|
4
|
+
|
5
|
+
In order to prevent licensing issues, we require all contributors to sign an individual contributor license agreement, which is reproduced below:
|
6
|
+
|
7
|
+
## Individual Contributor License Agreement
|
8
|
+
|
9
|
+
In order to clarify the intellectual property license granted with Contributions from any person or entity, Doximity Inc. ("Doximity") must have a Contributor License Agreement ("CLA") on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of Doximity; it does not change your rights to use your own Contributions for any other purpose.
|
10
|
+
|
11
|
+
You accept and agree to the following terms and conditions for Your present and future Contributions submitted to Doximity. Except for the license granted herein to Doximity and recipients of software distributed by Doximity, You reserve all right, title, and interest in and to Your Contributions.
|
12
|
+
|
13
|
+
### Definitions
|
14
|
+
|
15
|
+
"You" (or "Your") shall mean the copyright owner or legal entity authorized by the copyright owner that is making this Agreement with Doximity. For legal entities, the entity making a Contribution and all other entities that control, are controlled by, or are under common control with that entity are considered to be a single Contributor. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
16
|
+
|
17
|
+
1. "Contribution" shall mean any original work of authorship, including any modifications or additions to an existing work, that is intentionally submitted by You to Doximity for inclusion in, or documentation of, any of the products owned or managed by Doximity (the "Work"). For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to Doximity or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, Doximity for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by You as "Not a Contribution."
|
18
|
+
|
19
|
+
2. Grant of Copyright License. Subject to the terms and conditions of this Agreement, You hereby grant to Doximity and to recipients of software distributed by Doximity a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Your Contributions and such derivative works.
|
20
|
+
|
21
|
+
3. Grant of Patent License. Subject to the terms and conditions of this Agreement, You hereby grant to Doximity and to recipients of software distributed by Doximity a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by You that are necessarily infringed by Your Contribution(s) alone or by combination of Your Contribution(s) with the Work to which such Contribution(s) was submitted. If any entity institutes patent litigation against You or any other entity (including a cross-claim or counterclaim in a lawsuit) alleging that your Contribution, or the Work to which you have contributed, constitutes direct or contributory patent infringement, then any patent licenses granted to that entity under this Agreement for that Contribution or Work shall terminate as of the date such litigation is filed.
|
22
|
+
|
23
|
+
4. You represent that you are legally entitled to grant the above license. If your employer(s) has rights to intellectual property that you create that includes your Contributions, you represent that you have received permission to make Contributions on behalf of that employer, that your employer has waived such rights for your Contributions to Doximity, or that your employer has executed a separate Corporate CLA with Doximity.
|
24
|
+
|
25
|
+
5. You represent that each of Your Contributions is Your original creation (see section 7 for submissions on behalf of others). You represent that Your Contribution submissions include complete details of any third-party license or other restriction (including, but not limited to, related patents and trademarks) of which you are personally aware and which are associated with any part of Your Contributions.
|
26
|
+
|
27
|
+
6. You are not expected to provide support for Your Contributions, except to the extent You desire to provide support. You may provide support for free, for a fee, or not at all. Unless required by applicable law or agreed to in writing, You provide Your Contributions on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON- INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE.
|
28
|
+
|
29
|
+
7. Should You wish to submit work that is not Your original creation, You may submit it to Doximity separately from any Contribution, identifying the complete details of its source and of any license or other restriction (including, but not limited to, related patents, trademarks, and license agreements) of which you are personally aware, and conspicuously marking the work as "Submitted on behalf of a third-party: [[]named here]".
|
30
|
+
|
31
|
+
8. You agree to notify Doximity of any facts or circumstances of which you become aware that would make these representations inaccurate in any respect.
|
data/CONTRIBUTORS.md
ADDED
data/Gemfile
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,112 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
omniauth-doximity-oauth2 (1.0.0)
|
5
|
+
activesupport
|
6
|
+
faraday
|
7
|
+
jwt
|
8
|
+
multi_json
|
9
|
+
omniauth-oauth2
|
10
|
+
openssl
|
11
|
+
|
12
|
+
GEM
|
13
|
+
remote: https://rubygems.org/
|
14
|
+
specs:
|
15
|
+
activesupport (6.1.5.1)
|
16
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
17
|
+
i18n (>= 1.6, < 2)
|
18
|
+
minitest (>= 5.1)
|
19
|
+
tzinfo (~> 2.0)
|
20
|
+
zeitwerk (~> 2.3)
|
21
|
+
ast (2.4.2)
|
22
|
+
concurrent-ruby (1.1.10)
|
23
|
+
diff-lcs (1.5.0)
|
24
|
+
faraday (2.2.0)
|
25
|
+
faraday-net_http (~> 2.0)
|
26
|
+
ruby2_keywords (>= 0.0.4)
|
27
|
+
faraday-net_http (2.0.2)
|
28
|
+
hashie (5.0.0)
|
29
|
+
i18n (1.10.0)
|
30
|
+
concurrent-ruby (~> 1.0)
|
31
|
+
jwt (2.3.0)
|
32
|
+
minitest (5.15.0)
|
33
|
+
multi_json (1.15.0)
|
34
|
+
multi_xml (0.6.0)
|
35
|
+
oauth2 (1.4.9)
|
36
|
+
faraday (>= 0.17.3, < 3.0)
|
37
|
+
jwt (>= 1.0, < 3.0)
|
38
|
+
multi_json (~> 1.3)
|
39
|
+
multi_xml (~> 0.5)
|
40
|
+
rack (>= 1.2, < 3)
|
41
|
+
omniauth (2.1.0)
|
42
|
+
hashie (>= 3.4.6)
|
43
|
+
rack (>= 2.2.3)
|
44
|
+
rack-protection
|
45
|
+
omniauth-oauth2 (1.7.2)
|
46
|
+
oauth2 (~> 1.4)
|
47
|
+
omniauth (>= 1.9, < 3)
|
48
|
+
openssl (3.0.0)
|
49
|
+
parallel (1.22.1)
|
50
|
+
parser (3.1.2.0)
|
51
|
+
ast (~> 2.4.1)
|
52
|
+
rack (2.2.3)
|
53
|
+
rack-protection (2.2.0)
|
54
|
+
rack
|
55
|
+
rainbow (3.1.1)
|
56
|
+
rake (13.0.6)
|
57
|
+
rdoc (6.3.3)
|
58
|
+
regexp_parser (2.3.1)
|
59
|
+
rexml (3.2.5)
|
60
|
+
rspec (3.11.0)
|
61
|
+
rspec-core (~> 3.11.0)
|
62
|
+
rspec-expectations (~> 3.11.0)
|
63
|
+
rspec-mocks (~> 3.11.0)
|
64
|
+
rspec-core (3.11.0)
|
65
|
+
rspec-support (~> 3.11.0)
|
66
|
+
rspec-expectations (3.11.0)
|
67
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
68
|
+
rspec-support (~> 3.11.0)
|
69
|
+
rspec-mocks (3.11.0)
|
70
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
71
|
+
rspec-support (~> 3.11.0)
|
72
|
+
rspec-support (3.11.0)
|
73
|
+
rubocop (1.28.2)
|
74
|
+
parallel (~> 1.10)
|
75
|
+
parser (>= 3.1.0.0)
|
76
|
+
rainbow (>= 2.2.2, < 4.0)
|
77
|
+
regexp_parser (>= 1.8, < 3.0)
|
78
|
+
rexml
|
79
|
+
rubocop-ast (>= 1.17.0, < 2.0)
|
80
|
+
ruby-progressbar (~> 1.7)
|
81
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
82
|
+
rubocop-ast (1.17.0)
|
83
|
+
parser (>= 3.1.1.0)
|
84
|
+
rubocop-rails (2.14.2)
|
85
|
+
activesupport (>= 4.2.0)
|
86
|
+
rack (>= 1.1)
|
87
|
+
rubocop (>= 1.7.0, < 2.0)
|
88
|
+
ruby-progressbar (1.11.0)
|
89
|
+
ruby2_keywords (0.0.5)
|
90
|
+
sdoc (2.3.1)
|
91
|
+
rdoc (>= 5.0, < 6.4.0)
|
92
|
+
tzinfo (2.0.4)
|
93
|
+
concurrent-ruby (~> 1.0)
|
94
|
+
unicode-display_width (2.1.0)
|
95
|
+
zeitwerk (2.5.4)
|
96
|
+
|
97
|
+
PLATFORMS
|
98
|
+
ruby
|
99
|
+
x86_64-darwin-18
|
100
|
+
x86_64-linux
|
101
|
+
|
102
|
+
DEPENDENCIES
|
103
|
+
bundler (~> 2.3.12)
|
104
|
+
omniauth-doximity-oauth2!
|
105
|
+
rake
|
106
|
+
rspec
|
107
|
+
rubocop
|
108
|
+
rubocop-rails
|
109
|
+
sdoc
|
110
|
+
|
111
|
+
BUNDLED WITH
|
112
|
+
2.3.12
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,201 @@
|
|
1
|
+
Apache License
|
2
|
+
Version 2.0, January 2004
|
3
|
+
http://www.apache.org/licenses/
|
4
|
+
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6
|
+
|
7
|
+
1. Definitions.
|
8
|
+
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
11
|
+
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
13
|
+
the copyright owner that is granting the License.
|
14
|
+
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
16
|
+
other entities that control, are controlled by, or are under common
|
17
|
+
control with that entity. For the purposes of this definition,
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
19
|
+
direction or management of such entity, whether by contract or
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
22
|
+
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
24
|
+
exercising permissions granted by this License.
|
25
|
+
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
27
|
+
including but not limited to software source code, documentation
|
28
|
+
source, and configuration files.
|
29
|
+
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
31
|
+
transformation or translation of a Source form, including but
|
32
|
+
not limited to compiled object code, generated documentation,
|
33
|
+
and conversions to other media types.
|
34
|
+
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
36
|
+
Object form, made available under the License, as indicated by a
|
37
|
+
copyright notice that is included in or attached to the work
|
38
|
+
(an example is provided in the Appendix below).
|
39
|
+
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
46
|
+
the Work and Derivative Works thereof.
|
47
|
+
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
49
|
+
the original version of the Work and any modifications or additions
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
61
|
+
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
64
|
+
subsequently incorporated within the Work.
|
65
|
+
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
72
|
+
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78
|
+
where such license applies only to those patent claims licensable
|
79
|
+
by such Contributor that are necessarily infringed by their
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
82
|
+
institute patent litigation against any entity (including a
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
85
|
+
or contributory patent infringement, then any patent licenses
|
86
|
+
granted to You under this License for that Work shall terminate
|
87
|
+
as of the date such litigation is filed.
|
88
|
+
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
91
|
+
modifications, and in Source or Object form, provided that You
|
92
|
+
meet the following conditions:
|
93
|
+
|
94
|
+
(a) You must give any other recipients of the Work or
|
95
|
+
Derivative Works a copy of this License; and
|
96
|
+
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
98
|
+
stating that You changed the files; and
|
99
|
+
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
102
|
+
attribution notices from the Source form of the Work,
|
103
|
+
excluding those notices that do not pertain to any part of
|
104
|
+
the Derivative Works; and
|
105
|
+
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
108
|
+
include a readable copy of the attribution notices contained
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
111
|
+
of the following places: within a NOTICE text file distributed
|
112
|
+
as part of the Derivative Works; within the Source form or
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
114
|
+
within a display generated by the Derivative Works, if and
|
115
|
+
wherever such third-party notices normally appear. The contents
|
116
|
+
of the NOTICE file are for informational purposes only and
|
117
|
+
do not modify the License. You may add Your own attribution
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
120
|
+
that such additional attribution notices cannot be construed
|
121
|
+
as modifying the License.
|
122
|
+
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
124
|
+
may provide additional or different license terms and conditions
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
128
|
+
the conditions stated in this License.
|
129
|
+
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
133
|
+
this License, without any additional terms or conditions.
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
135
|
+
the terms of any separate license agreement you may have executed
|
136
|
+
with Licensor regarding such Contributions.
|
137
|
+
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
140
|
+
except as required for reasonable and customary use in describing the
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
142
|
+
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
152
|
+
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
158
|
+
incidental, or consequential damages of any character arising as a
|
159
|
+
result of this License or out of the use or inability to use the
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
162
|
+
other commercial damages or losses), even if such Contributor
|
163
|
+
has been advised of the possibility of such damages.
|
164
|
+
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
168
|
+
or other liability obligations and/or rights consistent with this
|
169
|
+
License. However, in accepting such obligations, You may act only
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
174
|
+
of your accepting any such warranty or additional liability.
|
175
|
+
|
176
|
+
END OF TERMS AND CONDITIONS
|
177
|
+
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
179
|
+
|
180
|
+
To apply the Apache License to your work, attach the following
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
182
|
+
replaced with your own identifying information. (Don't include
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
184
|
+
comment syntax for the file format. We also recommend that a
|
185
|
+
file or class name and description of purpose be included on the
|
186
|
+
same "printed page" as the copyright notice for easier
|
187
|
+
identification within third-party archives.
|
188
|
+
|
189
|
+
Copyright 2022 Doximity
|
190
|
+
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
192
|
+
you may not use this file except in compliance with the License.
|
193
|
+
You may obtain a copy of the License at
|
194
|
+
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
196
|
+
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
200
|
+
See the License for the specific language governing permissions and
|
201
|
+
limitations under the License.
|