Skip to content

Commit 2e4c8d0

Browse files
committed
Fix for oauth connection from OpenProject to nextcloud
Signed-off-by: Sagar <sagargurung1001@gmail.com>
1 parent ea027f7 commit 2e4c8d0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ async def proxy_request_to_server(request: Request, path: str):
136136
response.status_code = 200
137137
elif "oauth/authorize" in url:
138138
response.headers["location"] = response.headers["location"]
139+
elif "apps/oauth2/authorize" in response.headers["location"]:
140+
response.status_code = 200
141+
response.headers["location"] = response.headers["location"]
139142
else:
140143
headers["content-length"] = "0"
141144
response = await handle_redirects(

0 commit comments

Comments
 (0)