Brokemia
Brokemia
CC#
Created by Brokemia on 6/13/2024 in #help
OAuth reporting bad redirect uri but only after redirect
I didn't have it at all before, so I had no idea I needed it until I found some docs that mentioned it
90 replies
CC#
Created by Brokemia on 6/13/2024 in #help
OAuth reporting bad redirect uri but only after redirect
Apparently, I can add app.UseAuthentication(); to choose where the authentication middleware runs. I put it right after the header forwarding and it works now
90 replies
CC#
Created by Brokemia on 6/13/2024 in #help
OAuth reporting bad redirect uri but only after redirect
Figured it out!
90 replies
CC#
Created by Brokemia on 6/13/2024 in #help
OAuth reporting bad redirect uri but only after redirect
I think the oauth library is putting its handling of that endpoint before any of the middleware I can add myself
90 replies
CC#
Created by Brokemia on 6/13/2024 in #help
OAuth reporting bad redirect uri but only after redirect
It seems like for the signin-google endpoint, the app.Use logs are never actually happening, and presumably neither is the header forwarding
90 replies
CC#
Created by Brokemia on 6/13/2024 in #help
OAuth reporting bad redirect uri but only after redirect
No description
90 replies
CC#
Created by Brokemia on 6/13/2024 in #help
OAuth reporting bad redirect uri but only after redirect
No description
90 replies
CC#
Created by Brokemia on 6/13/2024 in #help
OAuth reporting bad redirect uri but only after redirect
Doesn't seem to have worked. One thing I noticed, is that with some of the requests blazor is using, the "Request starting" message has http and the "Request finished" message has https
90 replies
CC#
Created by Brokemia on 6/13/2024 in #help
OAuth reporting bad redirect uri but only after redirect
No description
90 replies
CC#
Created by Brokemia on 6/13/2024 in #help
OAuth reporting bad redirect uri but only after redirect
This has been at least somewhat helpful in figuring out what part of this actually is having the issue
90 replies
CC#
Created by Brokemia on 6/13/2024 in #help
OAuth reporting bad redirect uri but only after redirect
I can uncomment everything and retry if it matters
90 replies
CC#
Created by Brokemia on 6/13/2024 in #help
OAuth reporting bad redirect uri but only after redirect
No description
90 replies
CC#
Created by Brokemia on 6/13/2024 in #help
OAuth reporting bad redirect uri but only after redirect
GET /Account/Login HTTP/1.0
Host: brokemia.dev
X-Forwarded-Proto: https
Connection: close
Cache-Control: max-age=0
sec-ch-ua: "Microsoft Edge";v="125", "Chromium";v="125", "Not.A/Brand";v="24"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Windows"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 Edg/125.0.0.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Accept-Encoding: gzip, deflate, br, zstd
Accept-Language: en-US,en;q=0.9
Cookie: <idk if this is sensitive>
GET /Account/Login HTTP/1.0
Host: brokemia.dev
X-Forwarded-Proto: https
Connection: close
Cache-Control: max-age=0
sec-ch-ua: "Microsoft Edge";v="125", "Chromium";v="125", "Not.A/Brand";v="24"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Windows"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 Edg/125.0.0.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Accept-Encoding: gzip, deflate, br, zstd
Accept-Language: en-US,en;q=0.9
Cookie: <idk if this is sensitive>
90 replies
CC#
Created by Brokemia on 6/13/2024 in #help
OAuth reporting bad redirect uri but only after redirect
But no containers that I'm managing or anything
90 replies
CC#
Created by Brokemia on 6/13/2024 in #help
OAuth reporting bad redirect uri but only after redirect
Well, it's a VPS if that affects things
90 replies
CC#
Created by Brokemia on 6/13/2024 in #help
OAuth reporting bad redirect uri but only after redirect
Nope
90 replies
CC#
Created by Brokemia on 6/13/2024 in #help
OAuth reporting bad redirect uri but only after redirect
Both on the same host
90 replies
CC#
Created by Brokemia on 6/13/2024 in #help
OAuth reporting bad redirect uri but only after redirect
I made sure to restart both nginx and my app after changing that
90 replies
CC#
Created by Brokemia on 6/13/2024 in #help
OAuth reporting bad redirect uri but only after redirect
Doesn't seem to have changed anything
90 replies
CC#
Created by Brokemia on 6/13/2024 in #help
OAuth reporting bad redirect uri but only after redirect
No description
90 replies