- BREAKING: Updated OAuth API endpoint from
/api/oauth/google/loginto/api/oauth/login_provider - BREAKING: Removed legacy
GetGoogleLoginURL()method from OAuthAPI interface - Added new required parameters
loginClientandoauthProviderto OAuth login APIloginClient: Default value "CLI"oauthProvider: Default value "GOOGLE_LOCALHOST"
- New
GetLoginProviderURL()method in OAuthAPI interface supporting the updated endpoint - New response types
OAuthLoginProviderResponseandOAuthLoginProviderData - Comprehensive test coverage for new API endpoint and parameters
- API verification demo script in
examples/api_verification_demo.go
- BREAKING: Legacy
GetGoogleLoginURL()method and associated response types - Legacy response types
OAuthGoogleLoginResponseandOAuthGoogleLoginData
- All OAuth requests now use the
/api/oauth/login_providerendpoint - All tests updated to use new API method and endpoint
- Integration tests include comprehensive coverage of new endpoint with various parameter combinations
- Login command updated to use new API directly
- Action required: Replace all calls to
GetGoogleLoginURL()withGetLoginProviderURL() - Update method signature:
GetLoginProviderURL(ctx, fromUrlPath, "CLI", "GOOGLE_LOCALHOST") - Update response type references from
OAuthGoogleLoginResponsetoOAuthLoginProviderResponse - Update data type references from
OAuthGoogleLoginDatatoOAuthLoginProviderData