Commit b05b561
feat: add retry support, FedCM login types, and error schemas (#841)
### Changes
- Added configurable `max_retries` parameter to `Auth0` and `AsyncAuth0`
clients (defaults to 2 with exponential backoff)
- New error types: `BadRequestSchema`, `ForbiddenSchema`,
`UnauthorizedSchema`, `TooManyRequestsSchema`
- New types: `FedCmLogin`, `FedCmLoginGoogle`,
`CredentialDeviceTypeEnum`
- Extended `user_authentication_method` and `resource_server` response
types with additional fields
- Updated connection types with additional validation fields
- Expanded `clients`, `refresh_tokens`, `resource_servers`, `tickets`,
and `users/authentication_methods` endpoint parameters
### Testing
- Wire tests cover new and updated endpoints
- CI matrix runs on Python 3.10, 3.11, 3.12, 3.13
- [ ] This change adds unit test coverage
- [x] This change has been tested on the latest version of the
platform/language or why not
### Checklist
- [x] I have read the [Auth0 general contribution
guidelines](https://github.com/auth0/open-source-template/blob/master/GENERAL-CONTRIBUTING.md)
- [x] I have read the [Auth0 Code of
Conduct](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md)
- [x] All existing and new tests complete without errors
---------
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
Co-authored-by: Fern Support <126544928+fern-support@users.noreply.github.com>
Co-authored-by: Tanmay Singh <tstanmay13@gmail.com>
Co-authored-by: Kunal Dawar <35455566+developerkunal@users.noreply.github.com>
Co-authored-by: Kunal Dawar <kunal.dawar@okta.com>1 parent 18f283e commit b05b561
74 files changed
Lines changed: 1962 additions & 212 deletions
File tree
- .fern
- src/auth0/management
- clients
- core
- refresh_tokens
- resource_servers
- tickets
- types
- users
- authentication_methods
- roles
- wiremock
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 23 | | |
27 | 24 | | |
28 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1902 | 1902 | | |
1903 | 1903 | | |
1904 | 1904 | | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
1905 | 1913 | | |
1906 | 1914 | | |
1907 | 1915 | | |
| |||
2167 | 2175 | | |
2168 | 2176 | | |
2169 | 2177 | | |
| 2178 | + | |
| 2179 | + | |
| 2180 | + | |
| 2181 | + | |
| 2182 | + | |
2170 | 2183 | | |
2171 | | - | |
2172 | | - | |
2173 | | - | |
| 2184 | + | |
| 2185 | + | |
| 2186 | + | |
| 2187 | + | |
| 2188 | + | |
| 2189 | + | |
| 2190 | + | |
2174 | 2191 | | |
2175 | 2192 | | |
2176 | 2193 | | |
| |||
2774 | 2791 | | |
2775 | 2792 | | |
2776 | 2793 | | |
| 2794 | + | |
| 2795 | + | |
| 2796 | + | |
| 2797 | + | |
| 2798 | + | |
| 2799 | + | |
| 2800 | + | |
| 2801 | + | |
2777 | 2802 | | |
2778 | 2803 | | |
2779 | 2804 | | |
| |||
10953 | 10978 | | |
10954 | 10979 | | |
10955 | 10980 | | |
| 10981 | + | |
| 10982 | + | |
| 10983 | + | |
| 10984 | + | |
| 10985 | + | |
| 10986 | + | |
| 10987 | + | |
| 10988 | + | |
10956 | 10989 | | |
10957 | 10990 | | |
10958 | 10991 | | |
| |||
11413 | 11446 | | |
11414 | 11447 | | |
11415 | 11448 | | |
| 11449 | + | |
| 11450 | + | |
| 11451 | + | |
| 11452 | + | |
| 11453 | + | |
| 11454 | + | |
| 11455 | + | |
| 11456 | + | |
11416 | 11457 | | |
11417 | 11458 | | |
11418 | 11459 | | |
| |||
11777 | 11818 | | |
11778 | 11819 | | |
11779 | 11820 | | |
| 11821 | + | |
| 11822 | + | |
| 11823 | + | |
| 11824 | + | |
| 11825 | + | |
| 11826 | + | |
| 11827 | + | |
| 11828 | + | |
11780 | 11829 | | |
11781 | 11830 | | |
11782 | 11831 | | |
| |||
14222 | 14271 | | |
14223 | 14272 | | |
14224 | 14273 | | |
14225 | | - | |
| 14274 | + | |
14226 | 14275 | | |
14227 | 14276 | | |
14228 | 14277 | | |
| |||
34782 | 34831 | | |
34783 | 34832 | | |
34784 | 34833 | | |
34785 | | - | |
| 34834 | + | |
| 34835 | + | |
| 34836 | + | |
| 34837 | + | |
| 34838 | + | |
| 34839 | + | |
| 34840 | + | |
| 34841 | + | |
| 34842 | + | |
34786 | 34843 | | |
34787 | 34844 | | |
34788 | 34845 | | |
34789 | 34846 | | |
34790 | 34847 | | |
34791 | 34848 | | |
34792 | 34849 | | |
34793 | | - | |
| 34850 | + | |
34794 | 34851 | | |
34795 | 34852 | | |
34796 | 34853 | | |
| |||
34806 | 34863 | | |
34807 | 34864 | | |
34808 | 34865 | | |
| 34866 | + | |
| 34867 | + | |
| 34868 | + | |
| 34869 | + | |
| 34870 | + | |
| 34871 | + | |
| 34872 | + | |
| 34873 | + | |
| 34874 | + | |
| 34875 | + | |
| 34876 | + | |
| 34877 | + | |
| 34878 | + | |
| 34879 | + | |
| 34880 | + | |
| 34881 | + | |
| 34882 | + | |
| 34883 | + | |
| 34884 | + | |
| 34885 | + | |
| 34886 | + | |
| 34887 | + | |
| 34888 | + | |
| 34889 | + | |
| 34890 | + | |
| 34891 | + | |
| 34892 | + | |
| 34893 | + | |
| 34894 | + | |
| 34895 | + | |
| 34896 | + | |
| 34897 | + | |
| 34898 | + | |
| 34899 | + | |
| 34900 | + | |
| 34901 | + | |
| 34902 | + | |
| 34903 | + | |
| 34904 | + | |
| 34905 | + | |
| 34906 | + | |
| 34907 | + | |
| 34908 | + | |
| 34909 | + | |
| 34910 | + | |
| 34911 | + | |
| 34912 | + | |
| 34913 | + | |
34809 | 34914 | | |
34810 | 34915 | | |
34811 | 34916 | | |
| |||
0 commit comments