Narf

The blagosphere got me…

Main menu

Skip to primary content
Skip to secondary content
Narf
  • narf.ssji.net
    • ~shtrom
  • Blog
    • code
    • DIY
    • engineering
    • fix
    • hardware
    • idiotic
    • presentation
    • rant
    • sysadmin
    • tip
    • Learnosity
    • The Conversation
  • Wiki
    • Using an OpenPGP SmartCard
  • Code
    • Self-hosted Git repos
    • GitHub
    • GitLab
  • Olivier Mehani
    • Contact
    • Résumé
    • Publications
    • @Learnosity (2016–…)
    • @Nicta (2014–2016)
    • @Nicta (2008–2014)
    • @Inria/LaRA (2006–2011)
    • ORCID
  • Other things
    • Consumerist Adventures
    • Knowledge Base
    • Survival Wiki
    • Web dumpyard

Monthly Archives: August 2019

Getting an OAuth access token with cURL

Posted on 2019-08-16 by Olivier Mehani | Leave a reply

Sometimes, one just needs an OAuth access token (for the client credential authentication flow).

export ACCESS_TOKEN=$(curl -X POST \
 --user "${CLIENT_ID}:${CLIENT_SECRET}" \
 --data-urlencode "grant_type=client_credentials" \
 --data-urlencode "scope=${SCOPE}" \
 ${TOKEN_URL} \
 | jp -u access_token)
Continue reading →
Posted in code, oneliner, tip.

Categories

  • code (19)
  • DIY (2)
  • engineering (3)
  • fix (6)
  • haiku (1)
  • hardware (4)
  • idiotic (4)
  • Learnosity (2)
  • oneliner (10)
  • presentation (1)
  • rant (7)
  • security (4)
  • survey (1)
  • Sydney (1)
  • sysadmin (19)
  • The Conversation (1)
  • tip (27)

Tags

Android Bash CAcert CalDAV CUPS FRITZ!Box Git Java JDK Jenkins khal Let's Encrypt Linux load-testing Locust Mac OS X Munin OpenBSD Oracle pass(1) Password Store Perl PGP popt printer PXE pxeboot pxechain.com pxelinux Python QNAP Readline reproducible builds RFC RMRE rrdtool Ruby Samsung SANE scanner script SSL standard Unix ZSH

Archives

  • March 2023
  • February 2023
  • January 2023
  • November 2022
  • October 2022
  • November 2021
  • May 2021
  • December 2020
  • November 2020
  • April 2020
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • April 2019
  • November 2018
  • May 2018
  • February 2018
  • August 2017
  • July 2017
  • October 2016
  • June 2016
  • May 2016
  • February 2016
  • January 2016
  • December 2015
  • September 2015
  • May 2015
  • March 2015
  • May 2014
  • April 2014
  • December 2013
  • October 2013
  • June 2013
  • March 2013
  • December 2012
  • November 2012

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Activity around the web

RSS Error: A feed could not be found at `http://olivier.mehani.name/atom.php`; the status code is `404` and content-type is `text/html; charset=utf-8`
© 2023 Narf, all rights reserved.
Proudly powered by WordPress