Fix OAuth consumer mode #668

Merged
floatingghost merged 4 commits from :develop into develop 2024-02-02 10:05:42 +00:00
Contributor

The previous code passed a state parameter to ueberauth with info about where to go after the user logged in, etc.
Since ueberauth 0.7, this parameter is ignored and oauth state is used for CSRF prevention, see here.

We now set a cookie with the state we need to keep track of, and read it once the callback happens.

Fixes #646

The previous code passed a state parameter to ueberauth with info about where to go after the user logged in, etc. Since ueberauth 0.7, this parameter is ignored and oauth state is used for CSRF prevention, see [here](https://github.com/ueberauth/ueberauth/pull/136). We now set a cookie with the state we need to keep track of, and read it once the callback happens. Fixes #646
tcmal added 3 commits 2023-12-17 19:39:36 +00:00
eb0dbf6b79 fix oauth consumer mode
the previous code passed a state parameter to ueberauth with info
about where to go after the user logged in, etc.
since ueberauth 0.7, this parameter is ignored and oauth state is used
for actual CSRF reasons.

we now set a cookie with the state we need to keep track of, and read
it once the callback happens.
tcmal added 1 commit 2023-12-17 21:48:46 +00:00
ci/woodpecker/pr/lint Pipeline was successful Details
ci/woodpecker/pr/test Pipeline was successful Details
ci/woodpecker/pr/build-arm64 unknown status Details
ci/woodpecker/pr/build-amd64 unknown status Details
ci/woodpecker/pr/docs unknown status Details
77000b8ffd
update tests for oauth consumer
tcmal changed title from WIP: Fix OAuth consumer mode to Fix OAuth consumer mode 2023-12-17 21:48:50 +00:00

thanks! this passes all tests, lemme like spin up a way to actually test this and i'll make sure everything looks ok

(i'll be honest this auth mode has been neglected since way before this fork existed)

thanks! this passes all tests, lemme like spin up a way to actually test this and i'll make sure everything looks ok (i'll be honest this auth mode has been neglected since way before this fork existed)
floatingghost merged commit b4ccddab39 into develop 2024-02-02 10:05:42 +00:00
Sign in to join this conversation.
No description provided.