feat: Enhance OAuth2 flow with temporary code exchange and update cookie handling
This commit is contained in:
@@ -70,7 +70,7 @@ class OAuthProvider(ABC):
|
||||
"""Generate authorization URL with state parameter."""
|
||||
# Construct provider-specific redirect URI
|
||||
redirect_uri = (
|
||||
f"http://localhost:8000/api/v1/oauth/{self.provider_name}/callback"
|
||||
f"http://localhost:8000/api/v1/auth/{self.provider_name}/callback"
|
||||
)
|
||||
|
||||
params = {
|
||||
@@ -86,7 +86,7 @@ class OAuthProvider(ABC):
|
||||
"""Exchange authorization code for access token."""
|
||||
# Construct provider-specific redirect URI (must match authorization request)
|
||||
redirect_uri = (
|
||||
f"http://localhost:8000/api/v1/oauth/{self.provider_name}/callback"
|
||||
f"http://localhost:8000/api/v1/auth/{self.provider_name}/callback"
|
||||
)
|
||||
|
||||
data = {
|
||||
@@ -150,7 +150,7 @@ class GoogleOAuthProvider(OAuthProvider):
|
||||
"""Exchange authorization code for access token."""
|
||||
# Construct provider-specific redirect URI (must match authorization request)
|
||||
redirect_uri = (
|
||||
f"http://localhost:8000/api/v1/oauth/{self.provider_name}/callback"
|
||||
f"http://localhost:8000/api/v1/auth/{self.provider_name}/callback"
|
||||
)
|
||||
|
||||
data = {
|
||||
|
||||
Reference in New Issue
Block a user