Redirect to Google OAuth consent screen
curl --request GET \
--url https://api.pid.peridotvault.com/v1/auth/googleconst options = {method: 'GET'};
fetch('https://api.pid.peridotvault.com/v1/auth/google', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pid.peridotvault.com/v1/auth/google"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pid.peridotvault.com/v1/auth/google"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"statusCode": 503,
"message": "Google OAuth is not configured. Set GOOGLE_CLIENT_ID/GOOGLE_CLIENT_SECRET (and GOOGLE_CALLBACK_URL) in the env for this environment"
}auth
Redirect to Google OAuth consent screen
Redirects (HTTP 302) to Google’s OAuth consent screen with scope=profile email.
Browser-navigation only. Open the URL in a browser tab (top-level navigation);
it cannot be called via fetch() or the Swagger “Send” button — the cross-origin
redirect to Google is blocked by CORS and appears as Failed to fetch, which is expected.
Not meant to be called directly by clients — use POST /auth/login to obtain the URL.
GET
/
auth
/
google
Redirect to Google OAuth consent screen
curl --request GET \
--url https://api.pid.peridotvault.com/v1/auth/googleconst options = {method: 'GET'};
fetch('https://api.pid.peridotvault.com/v1/auth/google', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pid.peridotvault.com/v1/auth/google"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pid.peridotvault.com/v1/auth/google"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"statusCode": 503,
"message": "Google OAuth is not configured. Set GOOGLE_CLIENT_ID/GOOGLE_CLIENT_SECRET (and GOOGLE_CALLBACK_URL) in the env for this environment"
}Response
Redirect to Google consent screen