Commit f06515c
Fixed the AzureTenantId in oauth.go (#210)
AzureTenantId was hardcoded as a constant which was linked to
".staging.azuredatabricks.net". Therefore, if the host URL was for
example from ".azuredatabricks.net", it failed to detect ClientId. I
replaced the const value with a map to find the AzureTenantId based on
the DSN host.
---------
Signed-off-by: Erfan Mahmoodnejad <erfan.mahmoodnejad@gmail.com>
Co-authored-by: Erfan Mahmoodnejad <erfan.mahmoodnejad@gmail.com>1 parent aeb5e5d commit f06515c
1 file changed
+17
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
| |||
52 | 56 | | |
53 | 57 | | |
54 | 58 | | |
55 | | - | |
| 59 | + | |
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
| |||
133 | 137 | | |
134 | 138 | | |
135 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
0 commit comments