You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fern/products/fern-def/pages/auth.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Authentication
3
3
subtitle: Model auth schemes such as bearer, basic, custom headers, and oauth.
4
4
---
5
5
6
-
Configuring authentication schemes happens in the `api.yml` file.
6
+
Configuring authentication schemes happens in the `api.yml` file. All Fern-generated SDKs support both direct configuration and environment variables for authentication credentials.
Copy file name to clipboardExpand all lines: fern/products/openapi-def/pages/auth.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Authentication
3
3
subtitle: Model auth schemes such as bearer, basic, and api key.
4
4
---
5
5
6
-
Configuring authentication schemes happens in the `components.securitySchemes` section of OpenAPI.
6
+
Configuring authentication schemes happens in the `components.securitySchemes` section of OpenAPI. All Fern-generated SDKs support both direct configuration and environment variables for authentication credentials.
Custom parameter name for the username in the generated SDK. If not specified, defaults to `"username"`. Use this to provide more descriptive or domain-specific parameter names like `"clientId"`, `"userEmail"`, or `"merchantId"`.
Custom parameter name for the password in the generated SDK. If not specified, defaults to `"password"`. Use this to provide more descriptive or domain-specific parameter names like `"clientSecret"`, `"apiKey"`, or `"merchantKey"`.
Environment variable name that the SDK will automatically scan for the username or password value. When this environment variable is present, users don't need to explicitly provide the username parameter. Follow naming conventions like `YOUR_APP_USERNAME` or `SERVICE_CLIENT_ID`.
Environment variable name containing the bearer token.
22
+
Environment variable name containing the bearer token. When specified, the generated SDK will automatically scan for this environment variable at initialization.
Environment variable name containing the authentication value.
26
+
Environment variable name containing the authentication value. When specified, the generated SDK will automatically scan for this environment variable at initialization.
Environment variable name containing the OAuth client ID.
45
+
Environment variable name containing the OAuth client ID. When specified, the generated SDK will automatically scan for this environment variable at initialization.
Environment variable name containing the OAuth client secret.
48
+
Environment variable name containing the OAuth client secret. When specified, the generated SDK will automatically scan for this environment variable at initialization.
0 commit comments