We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
version >=1.1.1
To enable Basic authorization for access tokens, we will need to configure doorkeeper's access_token_methods in our doorkeeper initializer.
access_token_methods
# config/initializers/doorkeeper.rb Doorkeeper.configure do access_token_methods :from_bearer_authorization, :from_basic_authorization, :from_access_token_param end
This will allow a user to interact with your API via Basic authentication like so:
token=ec4826413c3b9649d8f6b883972a0f632576d879e3f65ae1fd5448d6e0bf327d curl -u "$token:" http://localhost:3000/api/v1/profiles.json curl "http://$token:@localhost:3000/api/v1/profiles.json"
Or in ruby:
RestClient.get 'http://localhost:3000/api/v1/profiles.json', { 'Authorization' => "Basic #{Base64.encode64("#{token}:")}" } # => "[{"email":"tara_kertzmann@yundt.name","id":25,"name":"Jorge Ward","username":"leonor"}, ...]"