auth0 5.14.1 → 5.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d567ac230e46cdb2b8ca43e044179b36d1f6980b0d605f762183e29e4d4f25be
4
- data.tar.gz: 87377f3ac5970fcad124b9e0a5923a7e6c753793f0a109efd53e37c9eab43d1e
3
+ metadata.gz: ceba936338486855137ba5c59358f8656aaba565e624865a6d0b5e4092e937e7
4
+ data.tar.gz: 5d2521a3c29afe50813d3b53b7f56d260f075c88116bcb04f14f8b93e0eeaebe
5
5
  SHA512:
6
- metadata.gz: 0bc4c08b46bb4e1d92ad32f4531b97f965bc9b1417458b24dba6ff77c05c9f7b409df62599b1068b5e527df92bb173ca359b7e122a071c6a24a5a1f8427a8943
7
- data.tar.gz: a331080bb7f29d8657544da567bb1f414c0688855d6dbf0f8adeead56d7db5c0b977be2b0232346de9540e67b5b6272cd7a165ac3a3211fc80b53514dd39248f
6
+ metadata.gz: b14982084c5e6a3439a5261b4b2afa8712e0bba674ce0cc8c48f408fef5a16320de484f550b80102fb4f2bb21e6af751214e5682489ea2eeb1b9bc77ebfd0bf9
7
+ data.tar.gz: 2702811340ebdd8748449bcec4f01e2366b02bd2f00aec66168a9f088af8755259a11f76268a22e7cfbb347ca5c02ebd4d6eb251070ee42fe19545dd6b73bc89
data/.bundle/config CHANGED
@@ -1,5 +1,4 @@
1
1
  ---
2
2
  BUNDLE_JOBS: "3"
3
3
  BUNDLE_BIN: "bin"
4
- BUNDLE_RETRY: "3"
5
- BUNDLE_PATH: "vendor/bundle"
4
+ BUNDLE_RETRY: "3"
data/.circleci/config.yml CHANGED
@@ -31,7 +31,6 @@ jobs:
31
31
  steps:
32
32
  - checkout
33
33
  - run: gem install bundler:2.3.22
34
- - run: rm Gemfile.lock
35
34
  - restore_cache:
36
35
  key: gems-v2-{{ checksum "Gemfile.lock" }}
37
36
  - run: bundle check --path=vendor/bundle || bundle install --path=vendor/bundle
@@ -0,0 +1,32 @@
1
+ name: Build package
2
+ description: Build the SDK package
3
+
4
+ inputs:
5
+ ruby:
6
+ description: The Ruby version to use
7
+ required: false
8
+ default: 3.2
9
+ bundle-path:
10
+ description: The path to the bundle cache
11
+ required: false
12
+ default: vendor/bundle
13
+ bundler-cache:
14
+ description: Whether to use the bundler cache
15
+ required: false
16
+ default: true
17
+
18
+ runs:
19
+ using: composite
20
+
21
+ steps:
22
+ - name: Configure Ruby
23
+ uses: ruby/setup-ruby@v1
24
+ with:
25
+ ruby-version: ${{ inputs.ruby }}
26
+ bundler-cache: ${{ inputs.bundle-cache }}
27
+
28
+ - name: Install dependencies
29
+ run: bundle check || bundle install
30
+ shell: bash
31
+ env:
32
+ BUNDLE_PATH: ${{ inputs.bundle-path }}
@@ -1,10 +1,13 @@
1
1
  version: 2
2
2
  updates:
3
-
4
- - package-ecosystem: "bundler"
5
- directory: "/"
3
+ - package-ecosystem: "bundler"
4
+ directory: "/"
6
5
  schedule:
7
6
  interval: "daily"
8
7
  ignore:
9
8
  - dependency-name: "*"
10
9
  update-types: ["version-update:semver-major"]
10
+ - package-ecosystem: 'github-actions'
11
+ directory: '/'
12
+ schedule:
13
+ interval: 'daily'
@@ -0,0 +1,53 @@
1
+ name: CodeQL
2
+
3
+ on:
4
+ merge_group:
5
+ pull_request:
6
+ types:
7
+ - opened
8
+ - synchronize
9
+ push:
10
+ branches:
11
+ - master
12
+ schedule:
13
+ - cron: "37 10 * * 2"
14
+
15
+ permissions:
16
+ actions: read
17
+ contents: read
18
+ security-events: write
19
+
20
+ concurrency:
21
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
22
+ cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
23
+
24
+ jobs:
25
+ analyze:
26
+ name: Check for Vulnerabilities
27
+ runs-on: ubuntu-latest
28
+
29
+ strategy:
30
+ fail-fast: false
31
+ matrix:
32
+ language: [ruby]
33
+
34
+ steps:
35
+ - if: github.actor == 'dependabot[bot]' || github.event_name == 'merge_group'
36
+ run: exit 0 # Skip unnecessary test runs for dependabot and merge queues. Artifically flag as successful, as this is a required check for branch protection.
37
+
38
+ - name: Checkout
39
+ uses: actions/checkout@v4
40
+
41
+ - name: Initialize CodeQL
42
+ uses: github/codeql-action/init@v2
43
+ with:
44
+ languages: ${{ matrix.language }}
45
+ queries: +security-and-quality
46
+
47
+ - name: Autobuild
48
+ uses: github/codeql-action/autobuild@v2
49
+
50
+ - name: Perform CodeQL Analysis
51
+ uses: github/codeql-action/analyze@v2
52
+ with:
53
+ category: "/language:${{ matrix.language }}"
@@ -0,0 +1,7 @@
1
+ {
2
+ "include": [
3
+ { "ruby": "3.0" },
4
+ { "ruby": "3.1" },
5
+ { "ruby": "3.2" }
6
+ ]
7
+ }
@@ -0,0 +1,37 @@
1
+ name: Publish Release
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ branch:
7
+ description: The branch to release from.
8
+ required: true
9
+ default: master
10
+
11
+ permissions:
12
+ contents: read
13
+
14
+ jobs:
15
+ publish:
16
+ name: Publish to RubyGems
17
+ runs-on: ubuntu-latest
18
+ environment: release
19
+
20
+ steps:
21
+ - name: Checkout code
22
+ uses: actions/checkout@v4
23
+ with:
24
+ fetch-depth: 0
25
+ ref: ${{ github.event.inputs.branch }}
26
+
27
+ - name: Configure Ruby
28
+ uses: ./.github/actions/setup
29
+ with:
30
+ ruby: 3.2
31
+
32
+ - name: Publish to RubyGems
33
+ run: |
34
+ gem build *.gemspec
35
+ gem push *.gem
36
+ env:
37
+ GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
@@ -1,28 +1,49 @@
1
1
  name: Semgrep
2
2
 
3
3
  on:
4
- pull_request: {}
5
-
4
+ merge_group:
5
+ pull_request_target:
6
+ types:
7
+ - opened
8
+ - synchronize
6
9
  push:
7
10
  branches:
8
11
  - master
9
- - main
10
-
11
12
  schedule:
12
- - cron: '0 * * * *'
13
+ - cron: '30 0 1,15 * *'
14
+
15
+ permissions:
16
+ contents: read
17
+
18
+ concurrency:
19
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
20
+ cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
13
21
 
14
22
  jobs:
15
- semgrep:
16
- name: Scan
23
+ authorize:
24
+ name: Authorize
25
+ environment: ${{ github.actor != 'dependabot[bot]' && github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && 'external' || 'internal' }}
17
26
  runs-on: ubuntu-latest
27
+ steps:
28
+ - run: true
29
+
30
+ run:
31
+ needs: authorize # Require approval before running on forked pull requests
32
+
33
+ name: Check for Vulnerabilities
34
+ runs-on: ubuntu-latest
35
+
18
36
  container:
19
37
  image: returntocorp/semgrep
20
- if: (github.repository_owner == 'auth0')
21
-
38
+
22
39
  steps:
23
- - uses: actions/checkout@v3
40
+ - if: github.actor == 'dependabot[bot]' || github.event_name == 'merge_group'
41
+ run: exit 0 # Skip unnecessary test runs for dependabot and merge queues. Artifically flag as successful, as this is a required check for branch protection.
42
+
43
+ - uses: actions/checkout@v4
44
+ with:
45
+ ref: ${{ github.event.pull_request.head.sha || github.ref }}
24
46
 
25
- - if: github.event.pull_request.draft == false && github.actor != 'dependabot[bot]'
26
- run: semgrep ci
47
+ - run: semgrep ci
27
48
  env:
28
49
  SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
@@ -0,0 +1,47 @@
1
+ name: Snyk
2
+
3
+ on:
4
+ merge_group:
5
+ workflow_dispatch:
6
+ pull_request_target:
7
+ types:
8
+ - opened
9
+ - synchronize
10
+ push:
11
+ branches:
12
+ - master
13
+ schedule:
14
+ - cron: '30 0 1,15 * *'
15
+
16
+ permissions:
17
+ contents: read
18
+
19
+ concurrency:
20
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
21
+ cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
22
+
23
+ jobs:
24
+ authorize:
25
+ name: Authorize
26
+ environment: ${{ github.actor != 'dependabot[bot]' && github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && 'external' || 'internal' }}
27
+ runs-on: ubuntu-latest
28
+ steps:
29
+ - run: true
30
+
31
+ check:
32
+ needs: authorize
33
+
34
+ name: Check for Vulnerabilities
35
+ runs-on: ubuntu-latest
36
+
37
+ steps:
38
+ - if: github.actor == 'dependabot[bot]' || github.event_name == 'merge_group'
39
+ run: exit 0 # Skip unnecessary test runs for dependabot and merge queues. Artifically flag as successful, as this is a required check for branch protection.
40
+
41
+ - uses: actions/checkout@v4
42
+ with:
43
+ ref: ${{ github.event.pull_request.head.sha || github.ref }}
44
+
45
+ - uses: snyk/actions/php@b98d498629f1c368650224d6d212bf7dfa89e4bf # pin@0.4.0
46
+ env:
47
+ SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
@@ -0,0 +1,69 @@
1
+ name: Build and Test
2
+
3
+ on:
4
+ merge_group:
5
+ workflow_dispatch:
6
+ pull_request:
7
+ branches:
8
+ - master
9
+ push:
10
+ branches:
11
+ - master
12
+
13
+ permissions:
14
+ contents: read
15
+
16
+ concurrency:
17
+ group: ${{ github.workflow }}-${{ github.ref }}
18
+ cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
19
+
20
+ env:
21
+ CACHE_KEY: "${{ github.ref }}-${{ github.run_id }}-${{ github.run_attempt }}"
22
+
23
+ jobs:
24
+ configure:
25
+ name: Configure Build Matrix
26
+ runs-on: ubuntu-latest
27
+
28
+ outputs:
29
+ matrix: ${{ steps.set-matrix.outputs.matrix }}
30
+
31
+ steps:
32
+ - uses: actions/checkout@v4
33
+ with:
34
+ ref: ${{ github.event.pull_request.head.sha || github.ref }}
35
+
36
+ - id: set-matrix
37
+ run: echo "matrix=$(jq -c . < ./.github/workflows/matrix.json)" >> $GITHUB_OUTPUT
38
+
39
+ unit:
40
+ needs: configure
41
+
42
+ name: Run Unit Tests
43
+ runs-on: ubuntu-latest
44
+
45
+ strategy:
46
+ matrix: ${{ fromJson(needs.configure.outputs.matrix) }}
47
+
48
+ env:
49
+ DOMAIN: example.auth0.dev
50
+ CLIENT_ID: example-client
51
+ CLIENT_SECRET: example-secret
52
+ MASTER_JWT: example-jwt
53
+ BUNDLE_PATH: vendor/bundle
54
+
55
+ steps:
56
+ - name: Checkout code
57
+ uses: actions/checkout@v4
58
+
59
+ - name: Configure Ruby
60
+ uses: ./.github/actions/setup
61
+ with:
62
+ ruby: ${{ matrix.ruby }}
63
+
64
+ - name: Run tests
65
+ run: bundle exec rake test
66
+
67
+ - name: Upload coverage
68
+ if: matrix.ruby == '3.2'
69
+ uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # pin@3.1.4
data/.snyk ADDED
@@ -0,0 +1,11 @@
1
+ ignore:
2
+ SNYK-RUBY-RACK-1061917:
3
+ - rubocop-rails > rack:
4
+ reason: No direct upgrade available
5
+ expires: "2023-11-02T12:00:00.000Z"
6
+ - dotenv-rails > railties > actionpack > rack:
7
+ reason: No direct upgrade available
8
+ expires: "2023-11-02T12:00:00.000Z"
9
+ - dotenv-rails > railties > actionpack > rack-test:
10
+ reason: No direct upgrade available
11
+ expires: "2023-11-02T12:00:00.000Z"
data/CHANGELOG.md CHANGED
@@ -1,67 +1,101 @@
1
1
  # Change Log
2
2
 
3
+ ## [v5.15.0](https://github.com/auth0/ruby-auth0/tree/v5.15.0) (2023-10-30)
4
+ [Full Changelog](https://github.com/auth0/ruby-auth0/compare/v5.14.2...v5.15.0)
5
+
6
+ **Added**
7
+ - [SDK-4659] Add fields to get_organizations_members [\#532](https://github.com/auth0/ruby-auth0/pull/532) ([adamjmcgrath](https://github.com/adamjmcgrath))
8
+
9
+ ## [v5.14.2](https://github.com/auth0/ruby-auth0/tree/v5.14.2) (2023-10-03)
10
+
11
+ [Full Changelog](https://github.com/auth0/ruby-auth0/compare/v5.14.1...v5.14.2)
12
+
13
+ **Fixed**
14
+
15
+ - [API] `trigger_id` and `action_name` parameters for `create_action` endpoint are now optional [\#478](https://github.com/auth0/ruby-auth0/pull/478) [rapito](https://github.com/rapito)
16
+
3
17
  ## [v5.14.1](https://github.com/auth0/ruby-auth0/tree/v5.14.1) (2023-07-19)
18
+
4
19
  [Full Changelog](https://github.com/auth0/ruby-auth0/compare/v5.14.0...v5.14.1)
5
20
 
6
21
  **Fixed**
22
+
7
23
  - chore: should not lowercase org_name claim [\#499](https://github.com/auth0/ruby-auth0/pull/499) ([stevehobbsdev](https://github.com/stevehobbsdev))
8
24
 
9
25
  ## [v5.14.0](https://github.com/auth0/ruby-auth0/tree/v5.14.0) (2023-07-13)
26
+
10
27
  [Full Changelog](https://github.com/auth0/ruby-auth0/compare/v5.13.0...v5.14.0)
11
28
 
12
29
  **Added**
30
+
13
31
  - [SDK-4386] Support Organization Name in Authorize [\#495](https://github.com/auth0/ruby-auth0/pull/495) ([stevehobbsdev](https://github.com/stevehobbsdev))
14
32
 
15
33
  ## [v5.13.0](https://github.com/auth0/ruby-auth0/tree/v5.13.0) (2023-04-24)
34
+
16
35
  [Full Changelog](https://github.com/auth0/ruby-auth0/compare/v5.12.0...v5.13.0)
17
36
 
18
37
  **Added**
38
+
19
39
  - [SDK-4142] Add support for /oauth/par [\#470](https://github.com/auth0/ruby-auth0/pull/470) ([stevehobbsdev](https://github.com/stevehobbsdev))
20
40
 
21
41
  **Deprecated**
42
+
22
43
  - Drop support for 2.7 in CI build [\#467](https://github.com/auth0/ruby-auth0/pull/467) ([stevehobbsdev](https://github.com/stevehobbsdev))
23
44
 
24
45
  ## [v5.12.0](https://github.com/auth0/ruby-auth0/tree/v5.12.0) (2023-03-13)
46
+
25
47
  [Full Changelog](https://github.com/auth0/ruby-auth0/compare/v5.11.0...v5.12.0)
26
48
 
27
49
  **Added**
50
+
28
51
  - [SDK-4014] User Authentication Method management API support [\#450](https://github.com/auth0/ruby-auth0/pull/450) ([stevehobbsdev](https://github.com/stevehobbsdev))
29
52
 
30
53
  **Fixed**
54
+
31
55
  - Remove broken FAQ link from README [\#441](https://github.com/auth0/ruby-auth0/pull/441) ([joxxoxo](https://github.com/joxxoxo))
32
56
 
33
57
  ## [v5.11.0](https://github.com/auth0/ruby-auth0/tree/v5.11.0) (2023-01-27)
58
+
34
59
  [Full Changelog](https://github.com/auth0/ruby-auth0/compare/v5.10.0...v5.11.0)
35
60
 
36
61
  **Added**
62
+
37
63
  - feat: support exchanging OTP codes for tokens [\#438](https://github.com/auth0/ruby-auth0/pull/438) ([stevehobbsdev](https://github.com/stevehobbsdev))
38
64
  - [SDK-3869] Support client credentials in management client [\#437](https://github.com/auth0/ruby-auth0/pull/437) ([stevehobbsdev](https://github.com/stevehobbsdev))
39
65
  - [SDK-3863] Add support for Client Assertion in authentication endpoints [\#434](https://github.com/auth0/ruby-auth0/pull/434) ([stevehobbsdev](https://github.com/stevehobbsdev))
40
66
 
41
67
  **Changed**
68
+
42
69
  - ci: include Ruby 3.2 in test matrix [\#436](https://github.com/auth0/ruby-auth0/pull/436) ([stevehobbsdev](https://github.com/stevehobbsdev))
43
70
 
44
71
  ## [v5.10.0](https://github.com/auth0/ruby-auth0/tree/v5.10.0) (2022-10-10)
72
+
45
73
  [Full Changelog](https://github.com/auth0/ruby-auth0/compare/v5.9.0...v5.10.0)
46
74
 
47
75
  **Changed**
76
+
48
77
  - Update jwt ~2.5 [\#384](https://github.com/auth0/ruby-auth0/pull/384) ([stevehobbsdev](https://github.com/stevehobbsdev))
49
78
 
50
79
  **Fixed**
80
+
51
81
  - Stop :get, :delete parameters from bleeding into subsequent requests [\#388](https://github.com/auth0/ruby-auth0/pull/388) ([stevehobbsdev](https://github.com/stevehobbsdev))
52
82
  - Support complex field names in export_users [\#387](https://github.com/auth0/ruby-auth0/pull/387) ([stevehobbsdev](https://github.com/stevehobbsdev))
53
83
  - Reconfigure rate limiting exponential backoff [\#386](https://github.com/auth0/ruby-auth0/pull/386) ([stevehobbsdev](https://github.com/stevehobbsdev))
54
84
 
55
85
  ## [v5.9.0](https://github.com/auth0/ruby-auth0/tree/v5.9.0) (2022-08-24)
86
+
56
87
  [Full Changelog](https://github.com/auth0/ruby-auth0/compare/v5.8.1...v5.9.0)
57
88
 
58
89
  **Added**
90
+
59
91
  - Add Delete All Authenticators API for Users [\#375](https://github.com/auth0/ruby-auth0/pull/375) ([phongnh](https://github.com/phongnh))
60
92
 
61
93
  **Changed**
94
+
62
95
  - Add include_totals to get connections options [\#357](https://github.com/auth0/ruby-auth0/pull/357) ([stevehobbsdev](https://github.com/stevehobbsdev))
63
96
 
64
97
  **Fixed**
98
+
65
99
  - Fix typo and remove param that is not used [\#365](https://github.com/auth0/ruby-auth0/pull/365) ([MatthewRDodds](https://github.com/MatthewRDodds))
66
100
  - correct remove_user_roles doc: roles param is ids, not names [\#359](https://github.com/auth0/ruby-auth0/pull/359) ([gbirchmeier](https://github.com/gbirchmeier))
67
101
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- auth0 (5.14.1)
4
+ auth0 (5.15.0)
5
5
  addressable (~> 2.8)
6
6
  jwt (~> 2.7)
7
7
  rest-client (~> 2.1)
@@ -11,29 +11,40 @@ PATH
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- actionpack (7.0.6)
15
- actionview (= 7.0.6)
16
- activesupport (= 7.0.6)
17
- rack (~> 2.0, >= 2.2.4)
14
+ actionpack (7.1.1)
15
+ actionview (= 7.1.1)
16
+ activesupport (= 7.1.1)
17
+ nokogiri (>= 1.8.5)
18
+ rack (>= 2.2.4)
19
+ rack-session (>= 1.0.1)
18
20
  rack-test (>= 0.6.3)
19
- rails-dom-testing (~> 2.0)
20
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
21
- actionview (7.0.6)
22
- activesupport (= 7.0.6)
21
+ rails-dom-testing (~> 2.2)
22
+ rails-html-sanitizer (~> 1.6)
23
+ actionview (7.1.1)
24
+ activesupport (= 7.1.1)
23
25
  builder (~> 3.1)
24
- erubi (~> 1.4)
25
- rails-dom-testing (~> 2.0)
26
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
27
- activesupport (7.0.6)
26
+ erubi (~> 1.11)
27
+ rails-dom-testing (~> 2.2)
28
+ rails-html-sanitizer (~> 1.6)
29
+ activesupport (7.1.1)
30
+ base64
31
+ bigdecimal
28
32
  concurrent-ruby (~> 1.0, >= 1.0.2)
33
+ connection_pool (>= 2.2.5)
34
+ drb
29
35
  i18n (>= 1.6, < 2)
30
36
  minitest (>= 5.1)
37
+ mutex_m
31
38
  tzinfo (~> 2.0)
32
- addressable (2.8.4)
39
+ addressable (2.8.5)
33
40
  public_suffix (>= 2.0.2, < 6.0)
34
41
  ast (2.4.2)
42
+ base64 (0.1.1)
43
+ bigdecimal (3.1.4)
35
44
  builder (3.2.4)
45
+ coderay (1.1.3)
36
46
  concurrent-ruby (1.2.2)
47
+ connection_pool (2.4.1)
37
48
  coveralls (0.7.1)
38
49
  multi_json (~> 1.3)
39
50
  rest-client
@@ -51,13 +62,30 @@ GEM
51
62
  dotenv-rails (2.8.1)
52
63
  dotenv (= 2.8.1)
53
64
  railties (>= 3.2)
65
+ drb (2.1.1)
66
+ ruby2_keywords
54
67
  erubi (1.12.0)
55
68
  faker (2.23.0)
56
69
  i18n (>= 1.8.11, < 2)
70
+ ffi (1.16.3)
71
+ formatador (1.1.0)
57
72
  fuubar (2.5.1)
58
73
  rspec-core (~> 3.0)
59
74
  ruby-progressbar (~> 1.4)
60
- gem-release (0.7.4)
75
+ guard (2.18.1)
76
+ formatador (>= 0.2.4)
77
+ listen (>= 2.7, < 4.0)
78
+ lumberjack (>= 1.0.12, < 2.0)
79
+ nenv (~> 0.1)
80
+ notiffany (~> 0.0)
81
+ pry (>= 0.13.0)
82
+ shellany (~> 0.0)
83
+ thor (>= 0.18.1)
84
+ guard-compat (1.2.1)
85
+ guard-rspec (4.7.3)
86
+ guard (~> 2.1)
87
+ guard-compat (~> 1.1)
88
+ rspec (>= 2.99.0, < 4.0)
61
89
  hashdiff (1.0.1)
62
90
  http-accept (1.7.0)
63
91
  http-cookie (1.0.5)
@@ -65,53 +93,85 @@ GEM
65
93
  i18n (1.14.1)
66
94
  concurrent-ruby (~> 1.0)
67
95
  io-console (0.6.0)
68
- irb (1.7.4)
69
- reline (>= 0.3.6)
96
+ irb (1.8.3)
97
+ rdoc
98
+ reline (>= 0.3.8)
70
99
  json (2.6.3)
71
100
  jwt (2.7.1)
72
101
  language_server-protocol (3.17.0.3)
73
- loofah (2.21.3)
102
+ listen (3.8.0)
103
+ rb-fsevent (~> 0.10, >= 0.10.3)
104
+ rb-inotify (~> 0.9, >= 0.9.10)
105
+ loofah (2.21.4)
74
106
  crass (~> 1.0.2)
75
107
  nokogiri (>= 1.12.0)
108
+ lumberjack (1.2.9)
76
109
  method_source (1.0.0)
77
- mime-types (3.4.1)
110
+ mime-types (3.5.1)
78
111
  mime-types-data (~> 3.2015)
79
- mime-types-data (3.2023.0218.1)
80
- minitest (5.18.1)
112
+ mime-types-data (3.2023.1003)
113
+ minitest (5.20.0)
81
114
  multi_json (1.15.0)
115
+ mutex_m (0.1.2)
116
+ nenv (0.3.0)
82
117
  netrc (0.11.0)
83
- nokogiri (1.15.3-x86_64-linux)
118
+ nokogiri (1.15.4-aarch64-linux)
84
119
  racc (~> 1.4)
120
+ nokogiri (1.15.4-arm64-darwin)
121
+ racc (~> 1.4)
122
+ nokogiri (1.15.4-x86_64-darwin)
123
+ racc (~> 1.4)
124
+ nokogiri (1.15.4-x86_64-linux)
125
+ racc (~> 1.4)
126
+ notiffany (0.1.3)
127
+ nenv (~> 0.1)
128
+ shellany (~> 0.0)
85
129
  parallel (1.23.0)
86
- parser (3.2.2.3)
130
+ parser (3.2.2.4)
87
131
  ast (~> 2.4.1)
88
132
  racc
89
133
  pp (0.4.0)
90
134
  prettyprint
91
135
  prettyprint (0.1.1)
136
+ pry (0.14.2)
137
+ coderay (~> 1.1)
138
+ method_source (~> 1.0)
139
+ psych (5.1.1.1)
140
+ stringio
92
141
  public_suffix (5.0.3)
93
142
  racc (1.7.1)
94
- rack (2.2.7)
95
- rack-test (0.8.3)
96
- rack (>= 1.0, < 3)
97
- rails-dom-testing (2.1.1)
143
+ rack (3.0.8)
144
+ rack-session (2.0.0)
145
+ rack (>= 3.0.0)
146
+ rack-test (2.1.0)
147
+ rack (>= 1.3)
148
+ rackup (2.1.0)
149
+ rack (>= 3)
150
+ webrick (~> 1.8)
151
+ rails-dom-testing (2.2.0)
98
152
  activesupport (>= 5.0.0)
99
153
  minitest
100
154
  nokogiri (>= 1.6)
101
155
  rails-html-sanitizer (1.6.0)
102
156
  loofah (~> 2.21)
103
157
  nokogiri (~> 1.14)
104
- railties (7.0.6)
105
- actionpack (= 7.0.6)
106
- activesupport (= 7.0.6)
107
- method_source
158
+ railties (7.1.1)
159
+ actionpack (= 7.1.1)
160
+ activesupport (= 7.1.1)
161
+ irb
162
+ rackup (>= 1.0.0)
108
163
  rake (>= 12.2)
109
- thor (~> 1.0)
110
- zeitwerk (~> 2.5)
164
+ thor (~> 1.0, >= 1.2.2)
165
+ zeitwerk (~> 2.6)
111
166
  rainbow (3.1.1)
112
- rake (13.0.6)
113
- regexp_parser (2.8.1)
114
- reline (0.3.6)
167
+ rake (13.1.0)
168
+ rb-fsevent (0.11.2)
169
+ rb-inotify (0.10.1)
170
+ ffi (~> 1.0)
171
+ rdoc (6.5.0)
172
+ psych (>= 4.0.0)
173
+ regexp_parser (2.8.2)
174
+ reline (0.3.9)
115
175
  io-console (~> 0.5)
116
176
  rest-client (2.1.0)
117
177
  http-accept (>= 1.7.0, < 2.0)
@@ -119,7 +179,7 @@ GEM
119
179
  mime-types (>= 1.16, < 4.0)
120
180
  netrc (~> 0.8)
121
181
  retryable (3.0.5)
122
- rexml (3.2.5)
182
+ rexml (3.2.6)
123
183
  rspec (3.12.0)
124
184
  rspec-core (~> 3.12.0)
125
185
  rspec-expectations (~> 3.12.0)
@@ -133,24 +193,26 @@ GEM
133
193
  diff-lcs (>= 1.2.0, < 2.0)
134
194
  rspec-support (~> 3.12.0)
135
195
  rspec-support (3.12.1)
136
- rubocop (1.54.2)
196
+ rubocop (1.57.2)
137
197
  json (~> 2.3)
138
198
  language_server-protocol (>= 3.17.0)
139
199
  parallel (~> 1.10)
140
- parser (>= 3.2.2.3)
200
+ parser (>= 3.2.2.4)
141
201
  rainbow (>= 2.2.2, < 4.0)
142
202
  regexp_parser (>= 1.8, < 3.0)
143
203
  rexml (>= 3.2.5, < 4.0)
144
- rubocop-ast (>= 1.28.0, < 2.0)
204
+ rubocop-ast (>= 1.28.1, < 2.0)
145
205
  ruby-progressbar (~> 1.7)
146
206
  unicode-display_width (>= 2.4.0, < 3.0)
147
- rubocop-ast (1.29.0)
207
+ rubocop-ast (1.30.0)
148
208
  parser (>= 3.2.1.0)
149
- rubocop-rails (2.20.2)
209
+ rubocop-rails (2.22.1)
150
210
  activesupport (>= 4.2.0)
151
211
  rack (>= 1.1)
152
212
  rubocop (>= 1.33.0, < 2.0)
153
213
  ruby-progressbar (1.13.0)
214
+ ruby2_keywords (0.0.5)
215
+ shellany (0.0.1)
154
216
  simplecov (0.22.0)
155
217
  docile (~> 1.1)
156
218
  simplecov-html (~> 0.11)
@@ -160,11 +222,13 @@ GEM
160
222
  simplecov (~> 0.19)
161
223
  simplecov-html (0.12.3)
162
224
  simplecov_json_formatter (0.1.4)
225
+ stringio (3.0.8)
163
226
  sync (0.5.0)
164
227
  term-ansicolor (1.7.1)
165
228
  tins (~> 1.0)
166
- thor (1.2.2)
167
- timecop (0.9.6)
229
+ terminal-notifier-guard (1.7.0)
230
+ thor (1.3.0)
231
+ timecop (0.9.8)
168
232
  tins (1.32.1)
169
233
  sync
170
234
  tzinfo (2.0.6)
@@ -172,16 +236,21 @@ GEM
172
236
  unf (0.1.4)
173
237
  unf_ext
174
238
  unf_ext (0.0.8.2)
175
- unicode-display_width (2.4.2)
239
+ unicode-display_width (2.5.0)
176
240
  vcr (6.2.0)
177
- webmock (3.18.1)
241
+ webmock (3.19.1)
178
242
  addressable (>= 2.8.0)
179
243
  crack (>= 0.3.2)
180
244
  hashdiff (>= 0.4.0, < 2.0.0)
181
- zache (0.13.0)
182
- zeitwerk (2.6.8)
245
+ webrick (1.8.1)
246
+ zache (0.13.1)
247
+ zeitwerk (2.6.12)
183
248
 
184
249
  PLATFORMS
250
+ aarch64-linux
251
+ arm64-darwin-21
252
+ arm64-darwin-22
253
+ x86_64-darwin-21
185
254
  x86_64-linux
186
255
 
187
256
  DEPENDENCIES
@@ -191,20 +260,19 @@ DEPENDENCIES
191
260
  dotenv-rails (~> 2.0)
192
261
  faker (~> 2.0)
193
262
  fuubar (~> 2.0)
194
- gem-release (~> 0.7)
263
+ guard-rspec (~> 4.5)
195
264
  irb
196
265
  pp
197
- rack (~> 2.1)
198
- rack-test (~> 0.6)
199
266
  rake (~> 13.0)
200
267
  rspec (~> 3.11)
201
268
  rubocop
202
269
  rubocop-rails
203
270
  simplecov (~> 0.9)
204
271
  simplecov-cobertura
272
+ terminal-notifier-guard
205
273
  timecop
206
274
  vcr
207
275
  webmock
208
276
 
209
277
  BUNDLED WITH
210
- 2.4.10
278
+ 2.3.7
data/auth0.gemspec CHANGED
@@ -28,10 +28,7 @@ Gem::Specification.new do |s|
28
28
  s.add_development_dependency 'guard-rspec', '~> 4.5' unless ENV['CIRCLECI']
29
29
  s.add_development_dependency 'dotenv-rails', '~> 2.0'
30
30
  s.add_development_dependency 'rspec', '~> 3.11'
31
- s.add_development_dependency 'rack-test', '~> 0.6'
32
- s.add_development_dependency 'rack', '~> 2.1'
33
31
  s.add_development_dependency 'simplecov', '~> 0.9'
34
32
  s.add_development_dependency 'faker', '~> 2.0'
35
- s.add_development_dependency 'gem-release', '~> 0.7'
36
33
  s.license = 'MIT'
37
34
  end
@@ -5,8 +5,8 @@ GEM
5
5
  jwt (2.5.0)
6
6
  mustermann (2.0.2)
7
7
  ruby2_keywords (~> 0.0.1)
8
- nio4r (2.5.8)
9
- puma (5.6.5)
8
+ nio4r (2.5.9)
9
+ puma (5.6.7)
10
10
  nio4r (~> 2.0)
11
11
  rack (2.2.6.4)
12
12
  rack-protection (2.2.3)
@@ -16,18 +16,16 @@ module Auth0
16
16
  # @param page [integer] The page number. Zero based.
17
17
  # @param installed [boolean] When true, return only installed actions. When false, return only custom actions. Returns all actions by default.
18
18
  # @return [json] Actions and pagination info
19
- def actions(trigger_id, action_name, deployed: nil, per_page: nil, page: nil, installed: nil)
20
- raise Auth0::MissingTriggerId, 'Must supply a valid trigger_id' if trigger_id.to_s.empty?
21
- raise Auth0::MissingActionName, 'Must supply a valid action_name' if action_name.to_s.empty?
22
-
19
+ def actions(trigger_id = nil, action_name = nil, deployed: nil, per_page: nil, page: nil, installed: nil)
23
20
  request_params = {
24
- trigger_id: trigger_id,
25
- action_name: action_name,
21
+ triggerId: trigger_id,
22
+ actionName: action_name,
26
23
  deployed: deployed,
27
24
  per_page: per_page,
28
25
  page: page,
29
26
  installed: installed
30
27
  }
28
+
31
29
  path = "#{actions_path}/actions"
32
30
  get(path, request_params)
33
31
  end
@@ -38,7 +36,8 @@ module Auth0
38
36
  # @param body [hash] See https://auth0.com/docs/api/management/v2/#!/actions/post_action for available options
39
37
  # @return [json] Returns the created action.
40
38
  def create_action(body = {})
41
- post(actions_path, body)
39
+ path = "#{actions_path}/actions"
40
+ post(path, body)
42
41
  end
43
42
 
44
43
  # Retrieve the set of triggers currently available within actions. A trigger is an extensibility point to which actions can be bound.
@@ -214,6 +214,8 @@ module Auth0
214
214
  ### Organization Member
215
215
 
216
216
  # Get Members in a Organization
217
+ # Member roles are not sent by default. Use `fields=roles` to retrieve the roles assigned to each listed member.
218
+ # To use this parameter, you must include the `read:organization_member_roles scope` in the token.
217
219
  # @see https://auth0.com/docs/api/management/v2/#!/Organizations/get_members
218
220
  # @param organization_id [string] The Organization ID
219
221
  # @param options [hash] The Hash options used to define the paging of rersults
@@ -222,6 +224,8 @@ module Auth0
222
224
  # * :from [string] For checkpoint pagination, the ID from which to start selection from.
223
225
  # * :take [integer] For checkpoint pagination, the number of entries to retrieve. Default is 50.
224
226
  # * :include_totals [boolean] True to include query summary in the result, false or nil otherwise.
227
+ # * :fields [string] A comma separated list of fields to include or exclude from the result. If fields is left blank, all fields (except roles) are returned.
228
+ # * :include_fields [boolean] True if the fields specified are to be included in the result, false otherwise.
225
229
  #
226
230
  # @return [json] Returns the members for the given organization
227
231
  def get_organizations_members(organization_id, options = {})
@@ -231,7 +235,9 @@ module Auth0
231
235
  page: options.fetch(:page, nil),
232
236
  from: options.fetch(:from, nil),
233
237
  take: options.fetch(:take, nil),
234
- include_totals: options.fetch(:include_totals, nil)
238
+ include_totals: options.fetch(:include_totals, nil),
239
+ fields: options.fetch(:fields, nil),
240
+ include_fields: options.fetch(:include_fields, nil)
235
241
  }
236
242
  path = "#{organizations_members_path(organization_id)}"
237
243
  get(path, request_params)
data/lib/auth0/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # current version of gem
2
2
  module Auth0
3
- VERSION = '5.14.1'.freeze
3
+ VERSION = '5.15.0'.freeze
4
4
  end
@@ -15,11 +15,28 @@ describe Auth0::Api::V2::Actions do
15
15
  expect(@instance).to respond_to(:get_actions)
16
16
  end
17
17
 
18
+ it 'is expected to support all optional arguments' do
19
+ expect(@instance).to receive(:get).with(
20
+ '/api/v2/actions/actions', {
21
+ triggerId: nil,
22
+ actionName: nil,
23
+ deployed: nil,
24
+ per_page: nil,
25
+ page: nil,
26
+ installed: nil
27
+ }
28
+ )
29
+
30
+ expect do
31
+ @instance.actions()
32
+ end.not_to raise_error
33
+ end
34
+
18
35
  it 'is expected to get /api/v2/actions with custom parameters' do
19
36
  expect(@instance).to receive(:get).with(
20
37
  '/api/v2/actions/actions', {
21
- trigger_id: 'post-login',
22
- action_name: 'loginHandler',
38
+ triggerId: 'post-login',
39
+ actionName: 'loginHandler',
23
40
  deployed: true,
24
41
  per_page: 10,
25
42
  page: 1,
@@ -37,13 +54,6 @@ describe Auth0::Api::V2::Actions do
37
54
  end.not_to raise_error
38
55
  end
39
56
 
40
- it 'is expected to raise an exception when the trigger id is empty' do
41
- expect { @instance.actions(nil, nil) }.to raise_exception(Auth0::MissingTriggerId)
42
- end
43
-
44
- it 'is expected to raise an exception when the action name is empty' do
45
- expect { @instance.actions(1, nil) }.to raise_exception(Auth0::MissingActionName)
46
- end
47
57
  end
48
58
 
49
59
  context '.action' do
@@ -71,7 +81,7 @@ describe Auth0::Api::V2::Actions do
71
81
 
72
82
  it 'is expected to post to /api/v2/actions' do
73
83
  expect(@instance).to receive(:post).with(
74
- '/api/v2/actions', {
84
+ '/api/v2/actions/actions', {
75
85
  name: 'test_org'
76
86
  })
77
87
  expect do
@@ -451,7 +451,9 @@ describe Auth0::Api::V2::Organizations do
451
451
  page: nil,
452
452
  from: nil,
453
453
  take: nil,
454
- include_totals: nil
454
+ include_totals: nil,
455
+ fields: nil,
456
+ include_fields: nil
455
457
  })
456
458
  expect do
457
459
  @instance.get_organizations_members('org_id')
@@ -465,7 +467,9 @@ describe Auth0::Api::V2::Organizations do
465
467
  page: 1,
466
468
  from: 'org_id',
467
469
  take: 50,
468
- include_totals: true
470
+ include_totals: true,
471
+ fields: nil,
472
+ include_fields: nil
469
473
  })
470
474
  expect do
471
475
  @instance.get_organizations_members(
@@ -478,6 +482,26 @@ describe Auth0::Api::V2::Organizations do
478
482
  )
479
483
  end.not_to raise_error
480
484
  end
485
+
486
+ it 'is expected to get /api/v2/organizations with custom fields' do
487
+ expect(@instance).to receive(:get).with(
488
+ '/api/v2/organizations/org_id/members', {
489
+ per_page: nil,
490
+ page: nil,
491
+ from: nil,
492
+ take: nil,
493
+ include_totals: nil,
494
+ fields: 'foo,bar',
495
+ include_fields: false
496
+ })
497
+ expect do
498
+ @instance.get_organizations_members(
499
+ 'org_id',
500
+ fields: 'foo,bar',
501
+ include_fields: false
502
+ )
503
+ end.not_to raise_error
504
+ end
481
505
  end
482
506
 
483
507
  context '.create_organizations_members' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auth0
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.14.1
4
+ version: 5.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Auth0
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2023-07-19 00:00:00.000000000 Z
14
+ date: 2023-10-30 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rest-client
@@ -126,61 +126,47 @@ dependencies:
126
126
  - !ruby/object:Gem::Version
127
127
  version: '2.0'
128
128
  - !ruby/object:Gem::Dependency
129
- name: dotenv-rails
130
- requirement: !ruby/object:Gem::Requirement
131
- requirements:
132
- - - "~>"
133
- - !ruby/object:Gem::Version
134
- version: '2.0'
135
- type: :development
136
- prerelease: false
137
- version_requirements: !ruby/object:Gem::Requirement
138
- requirements:
139
- - - "~>"
140
- - !ruby/object:Gem::Version
141
- version: '2.0'
142
- - !ruby/object:Gem::Dependency
143
- name: rspec
129
+ name: guard-rspec
144
130
  requirement: !ruby/object:Gem::Requirement
145
131
  requirements:
146
132
  - - "~>"
147
133
  - !ruby/object:Gem::Version
148
- version: '3.11'
134
+ version: '4.5'
149
135
  type: :development
150
136
  prerelease: false
151
137
  version_requirements: !ruby/object:Gem::Requirement
152
138
  requirements:
153
139
  - - "~>"
154
140
  - !ruby/object:Gem::Version
155
- version: '3.11'
141
+ version: '4.5'
156
142
  - !ruby/object:Gem::Dependency
157
- name: rack-test
143
+ name: dotenv-rails
158
144
  requirement: !ruby/object:Gem::Requirement
159
145
  requirements:
160
146
  - - "~>"
161
147
  - !ruby/object:Gem::Version
162
- version: '0.6'
148
+ version: '2.0'
163
149
  type: :development
164
150
  prerelease: false
165
151
  version_requirements: !ruby/object:Gem::Requirement
166
152
  requirements:
167
153
  - - "~>"
168
154
  - !ruby/object:Gem::Version
169
- version: '0.6'
155
+ version: '2.0'
170
156
  - !ruby/object:Gem::Dependency
171
- name: rack
157
+ name: rspec
172
158
  requirement: !ruby/object:Gem::Requirement
173
159
  requirements:
174
160
  - - "~>"
175
161
  - !ruby/object:Gem::Version
176
- version: '2.1'
162
+ version: '3.11'
177
163
  type: :development
178
164
  prerelease: false
179
165
  version_requirements: !ruby/object:Gem::Requirement
180
166
  requirements:
181
167
  - - "~>"
182
168
  - !ruby/object:Gem::Version
183
- version: '2.1'
169
+ version: '3.11'
184
170
  - !ruby/object:Gem::Dependency
185
171
  name: simplecov
186
172
  requirement: !ruby/object:Gem::Requirement
@@ -209,20 +195,6 @@ dependencies:
209
195
  - - "~>"
210
196
  - !ruby/object:Gem::Version
211
197
  version: '2.0'
212
- - !ruby/object:Gem::Dependency
213
- name: gem-release
214
- requirement: !ruby/object:Gem::Requirement
215
- requirements:
216
- - - "~>"
217
- - !ruby/object:Gem::Version
218
- version: '0.7'
219
- type: :development
220
- prerelease: false
221
- version_requirements: !ruby/object:Gem::Requirement
222
- requirements:
223
- - - "~>"
224
- - !ruby/object:Gem::Version
225
- version: '0.7'
226
198
  description: Ruby toolkit for Auth0 API https://auth0.com.
227
199
  email:
228
200
  - support@auth0.com
@@ -235,21 +207,27 @@ files:
235
207
  - ".devcontainer/Dockerfile"
236
208
  - ".devcontainer/devcontainer.json"
237
209
  - ".env.example"
238
- - ".gemrelease"
239
210
  - ".github/CODEOWNERS"
240
211
  - ".github/ISSUE_TEMPLATE/Bug Report.yml"
241
212
  - ".github/ISSUE_TEMPLATE/Feature Request.yml"
242
213
  - ".github/ISSUE_TEMPLATE/config.yml"
243
214
  - ".github/PULL_REQUEST_TEMPLATE.md"
215
+ - ".github/actions/setup/action.yml"
244
216
  - ".github/dependabot.yml"
245
217
  - ".github/stale.yml"
218
+ - ".github/workflows/codeql.yml"
219
+ - ".github/workflows/matrix.json"
220
+ - ".github/workflows/publish.yml"
246
221
  - ".github/workflows/semgrep.yml"
222
+ - ".github/workflows/snyk.yml"
223
+ - ".github/workflows/test.yml"
247
224
  - ".gitignore"
248
225
  - ".rspec"
249
226
  - ".rubocop.yml"
250
227
  - ".rubocop_todo.yml"
251
228
  - ".semgrepignore"
252
229
  - ".shiprc"
230
+ - ".snyk"
253
231
  - CHANGELOG.md
254
232
  - CODE_OF_CONDUCT.md
255
233
  - DEPLOYMENT.md
data/.gemrelease DELETED
@@ -1,2 +0,0 @@
1
- bump:
2
- tag: true