Skip to content

Update adafruit_pyportal.py #26

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

Merged
merged 1 commit into from
Apr 21, 2019
Merged

Conversation

DigitalMakerCIC
Copy link

Added ability to pass headers for authentication typically used by Azure API's

Added ability to pass headers for authentication typically used by Azure API's
@ladyada ladyada merged commit d8fb889 into adafruit:master Apr 21, 2019
@ladyada
Copy link
Member

ladyada commented Apr 21, 2019

nice!

adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Apr 25, 2019
Updating https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI to 1.3.7 from 1.3.5:
  > Merge pull request adafruit/Adafruit_CircuitPython_ESP32SPI#39 from brentru/update-simpletest
  > Merge pull request adafruit/Adafruit_CircuitPython_ESP32SPI#38 from cpforbes/add_gpio
  > Merge pull request adafruit/Adafruit_CircuitPython_ESP32SPI#34 from docmollo/docs_wpa2_enterprise

Updating https://github.com/adafruit/Adafruit_CircuitPython_PyPortal to 2.1.1 from 2.1.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_PyPortal#27 from brentru/add-image-http-path
  > Merge pull request adafruit/Adafruit_CircuitPython_PyPortal#26 from DigitalMakerCIC/master
@lemonkey
Copy link

lemonkey commented May 14, 2019

@DigitalMakerCIC I had a similar requirement where I needed to be able to pass a basic authorization header for my image URL.

Is the format of the headers parameter expecting something like the following?

HEADERS = {"Authorization":"Basic <some token>"}

And do you know if these headers are also used when the image formatter service ultimately calls the image URL to fetch the image and then process it?

Instead of using a data source and image JSON path, I'm using the newer image_url_path property for the image URL.

An update to the example code would be appreciated.

@DigitalMakerCIC
Copy link
Author

DigitalMakerCIC commented May 16, 2019 via email

@lemonkey
Copy link

@DigitalMakerCIC Great thanks for the link!

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

Successfully merging this pull request may close these issues.

4 participants