Commit b0c753d
authored
fix(auth): set AuthStyleInParams for OAuth2 (#11)
<!-- mesa-description-start -->
## TL;DR
Fixes the OAuth2 authentication flow by sending client credentials in
the request body, as required by the provider.
## Why we made these changes
The upstream OAuth2 provider expects the `client_id` and `client_secret`
to be in the request parameters during the token exchange. The previous
configuration sent them in the `Authorization` header, causing
authentication to fail.
## What changed?
- Set `AuthStyle: oauth2.AuthStyleInParams` in the `oauth2.Config`. This
forces the credentials into the request body, allowing the token
exchange to succeed.
<sup>_Description generated by Mesa. [Update
settings](https://app.mesa.dev/onkernel/settings/pull-requests)_</sup>
<!-- mesa-description-end -->1 parent 191c318 commit b0c753d
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
| |||
0 commit comments