mirror of
https://github.com/googleapis/genai-toolbox.git
synced 2026-02-12 16:15:00 -05:00
Add authsources and authenticated parameter docs. Format some other .md docs. --------- Co-authored-by: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com>
26 lines
1.1 KiB
Markdown
26 lines
1.1 KiB
Markdown
# Google OAuth 2.0
|
|
|
|
To use Google as your Toolbox authentication provider, you could integrate
|
|
Google sign-in into your application by following this
|
|
[guide](https://developers.google.com/identity/sign-in/web/sign-in). After
|
|
setting up the Google sign-in workflow, you should have registered your
|
|
application and retrieved a [Client
|
|
ID](https://developers.google.com/identity/sign-in/web/sign-in#create_authorization_credentials).
|
|
Configure your auth source in `tools.yaml` with the `Client ID`.
|
|
|
|
## Example
|
|
|
|
```yaml
|
|
authSources:
|
|
my-google-auth:
|
|
kind: google
|
|
clientId: YOUR_GOOGLE_CLIENT_ID
|
|
```
|
|
|
|
## Reference
|
|
|
|
| **field** | **type** | **required** | **description** |
|
|
|-----------|:--------:|:------------:|------------------------------------------------------------------------------|
|
|
| kind | string | true | Must be "google". |
|
|
| clientId | string | true | Client ID of your application from registering your application. |
|