Skip to content
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

Added support for Bearer token on Webhook class #1784

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Feb 8, 2021

  1. Added support for Bearer token on Webhook class

    Webhook class now supports the addition of an optional "token". It needs to be declared at the same level that "url" on the application.conf file. If the parameter exists within a webhook definition, its value will be added to an Authorization header. Else, the send() function of the Webhook class won't include this header on the POST request.
    
    An example of configuration on the application.conf would be as follows:
    webhooks {
      myLocalWebHook {
        url = "http://localhost/webhook"
        token = "xxxxxxxxxxxxxxxxxx"
      }
    }
    SDugo committed Feb 8, 2021
    Configuration menu
    Copy the full SHA
    56d33c5 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2021

  1. Update WebHook.scala

    Added the optional parameter "tokenName", with a "Bearer" default value.
    SDugo committed Feb 27, 2021
    Configuration menu
    Copy the full SHA
    bc906aa View commit details
    Browse the repository at this point in the history