Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misleading authentication example #182

Open
rooholamin opened this issue Jan 24, 2024 · 0 comments
Open

Misleading authentication example #182

rooholamin opened this issue Jan 24, 2024 · 0 comments

Comments

@rooholamin
Copy link

Summary

The documentation on authentication is very misleading. There is no username or password in lob account for basic authentication. It only provides api keys.

Current Behavior

// Configure HTTP basic authorization: basicAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');

Possible Solution

This is the correct way to have configuration:


// Configure HTTP basic authorization: basicAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()
              ->setApiKey('basic', 'API_KEY);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant