HumanSignal / HumanSignal/label-studio
Skip google oauth connection
- Dominant language
- TypeScript
- Stars
- 28.3k
- Forks
- 3.7k
- Avg merge
- 14h
- Merged PRs (30d)
- 15
Description
Hello!
I am onto deployment of Label Studio Docker image on GCP with load balancer with outside connection restrictions. After successful deployment I am encountering the error of failed oauth connection, looking like this (browser console):
`(index):1 Unsafe attempt to load URL https://accounts.google.com/o/oauth2/v2/auth?login_hint=&client_id=.apps.googleusercontent.com&response_type=code&scope=openid+email&redirect_uri=https://iap.googleapis.com/v1/oauth/clientIds/.apps.googleusercontent.com:handleRedirect&code_challenge=&code_challenge_method=S256&cred_ref=true&state=&... from frame with URL https:///. Domains, protocols and ports must match.`
The deployment environment is isolated and does not allow outbound connections, which prevents communication with the OAuth service. Therefore, I need to bypass the OAuth flow. Based on the documentation I’ve seen, OAuth is not enabled by default. yet the behavior I’m observing suggests otherwise.
For the record, here is my current configuration:
```
CSRF_TRUSTED_ORIGINS="https://"
ALLOWED_HOSTS=""
LABEL_STUDIO_HOST="https:///"
LABEL_STUDIO_PORT=8080
LABEL_STUDIO_USERNAME=""
LABEL_STUDIO_PASSWORD=""
LABEL_STUDIO_USER_TOKEN=""
LABEL_STUDIO_ENABLE_LEGACY_API_TOKEN=true
DISABLE_SIGNUP_WITHOUT_LINK=true
ENABLE_CSP=false
LS_CSP_REPORT_ONLY=false
```
The most important issue I am trying to fix is that when I am trying to create a new project than after clicking the button the project creation form loads, fails after the second and returns additional 404 error in console:
`utils.ts:61 GET https:///heidi-tips 404 (Not Found)`
In this case it might be just a bug, nevertheless skipping oauth is still crucial for my case
Contributor guide
Assessment
This issue has not been assessed yet.