Skip to content
Snippets Groups Projects

OAuth2 - Authentification par HTTPie

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by erwan.salmon

    Exemple de requête d'authentification OAuth2 via HTTPie (https://httpie.io)

    • CLIENT_ID : identifiant d'authentification oauth2
    • CLIENT_SECRET : secret d'authentification oauth2
    • URL_TOKEN : adresse du endpoint d'authentification
    oauth2_httpie.sh 78 B
    http -bf -a $CLIENT_ID:$CLIENT_SECRET $URL_TOKEN grant_type=client_credentials
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment