@@ -82,7 +82,7 @@ func main() {
8282
8383 s := apiclientgo.New (
8484 apiclientgo.WithSecurity (components.Security {
85- ActAsBearerToken : apiclientgo.String (os.Getenv (" GLEAN_ACT_AS_BEARER_TOKEN " )),
85+ APIToken : apiclientgo.String (os.Getenv (" GLEAN_API_TOKEN " )),
8686 }),
8787 )
8888
@@ -125,7 +125,7 @@ func main() {
125125
126126 s := apiclientgo.New (
127127 apiclientgo.WithSecurity (components.Security {
128- ActAsBearerToken : apiclientgo.String (os.Getenv (" GLEAN_ACT_AS_BEARER_TOKEN " )),
128+ APIToken : apiclientgo.String (os.Getenv (" GLEAN_API_TOKEN " )),
129129 }),
130130 )
131131
@@ -158,10 +158,10 @@ func main() {
158158
159159This SDK supports the following security schemes globally:
160160
161- | Name | Type | Scheme | Environment Variable |
162- | ------------------ | ------ | ------- | ------- -------------------- |
163- | ` ActAsBearerToken ` | apiKey | API key | ` GLEAN_ACT_AS_BEARER_TOKEN ` |
164- | ` CookieAuth ` | apiKey | API key | ` GLEAN_COOKIE_AUTH ` |
161+ | Name | Type | Scheme | Environment Variable |
162+ | ------------ | ------ | ----------- | -------------------- |
163+ | ` APIToken ` | http | HTTP Bearer | ` GLEAN_API_TOKEN ` |
164+ | ` CookieAuth ` | apiKey | API key | ` GLEAN_COOKIE_AUTH ` |
165165
166166You can set the security parameters through the ` WithSecurity ` option when initializing the SDK client instance. The selected scheme will be used by default to authenticate with the API for all operations that support it. For example:
167167``` go
@@ -181,7 +181,7 @@ func main() {
181181
182182 s := apiclientgo.New (
183183 apiclientgo.WithSecurity (components.Security {
184- ActAsBearerToken : apiclientgo.String (os.Getenv (" GLEAN_ACT_AS_BEARER_TOKEN " )),
184+ APIToken : apiclientgo.String (os.Getenv (" GLEAN_API_TOKEN " )),
185185 }),
186186 )
187187
@@ -485,7 +485,7 @@ func main() {
485485
486486 s := apiclientgo.New (
487487 apiclientgo.WithSecurity (components.Security {
488- ActAsBearerToken : apiclientgo.String (os.Getenv (" GLEAN_ACT_AS_BEARER_TOKEN " )),
488+ APIToken : apiclientgo.String (os.Getenv (" GLEAN_API_TOKEN " )),
489489 }),
490490 )
491491
@@ -565,7 +565,7 @@ func main() {
565565 RetryConnectionErrors: false ,
566566 }),
567567 apiclientgo.WithSecurity (components.Security {
568- ActAsBearerToken : apiclientgo.String (os.Getenv (" GLEAN_ACT_AS_BEARER_TOKEN " )),
568+ APIToken : apiclientgo.String (os.Getenv (" GLEAN_API_TOKEN " )),
569569 }),
570570 )
571571
@@ -641,7 +641,7 @@ func main() {
641641
642642 s := apiclientgo.New (
643643 apiclientgo.WithSecurity (components.Security {
644- ActAsBearerToken : apiclientgo.String (os.Getenv (" GLEAN_ACT_AS_BEARER_TOKEN " )),
644+ APIToken : apiclientgo.String (os.Getenv (" GLEAN_API_TOKEN " )),
645645 }),
646646 )
647647
@@ -1359,7 +1359,7 @@ func main() {
13591359 s := apiclientgo.New (
13601360 apiclientgo.WithInstance (" <value>" ),
13611361 apiclientgo.WithSecurity (components.Security {
1362- ActAsBearerToken : apiclientgo.String (os.Getenv (" GLEAN_ACT_AS_BEARER_TOKEN " )),
1362+ APIToken : apiclientgo.String (os.Getenv (" GLEAN_API_TOKEN " )),
13631363 }),
13641364 )
13651365
@@ -1420,7 +1420,7 @@ func main() {
14201420 s := apiclientgo.New (
14211421 apiclientgo.WithServerURL (" https://instance-name-be.glean.com" ),
14221422 apiclientgo.WithSecurity (components.Security {
1423- ActAsBearerToken : apiclientgo.String (os.Getenv (" GLEAN_ACT_AS_BEARER_TOKEN " )),
1423+ APIToken : apiclientgo.String (os.Getenv (" GLEAN_API_TOKEN " )),
14241424 }),
14251425 )
14261426
0 commit comments