Skip to content

Misleading authentication example #182

@rooholamin

Description

@rooholamin

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions