Skip to content

Teams Connector - Hardcoded URL issue #156

@PR3R00T

Description

@PR3R00T

Notify version:

1.0.2

Current Behavior:

While not fully documented I am looking to use the Teams provider. I read the code and saw a couple of parameters are required including the teams webhook url and message format.
The webhook I have been generated is for a corporate enviroment and is formatted as: Company.webhook.office.com/Webhook_details...

However, the MS teams connection code is currently configured with a hardcoded URL to be: https://outlook.office.com/webhook/. This is causing an issue as companies with corporate MS Teams that are unable to use this plugin and are having to resort to a custom connector configuration. This code is found under "notify/pkg/providers/teams/teams.go"

If anyone else is reading this and is looking for the custom connector code for teams as a work around please see below and add into the provider-config.yaml:

custom:
  - id: webhook
    custom_webhook_url: "YOUR TEAMS WEBHOOK URL"
    custom_method: POST
    custom_format: '{"text": "{{data}}"}'
    custom_headers:
      Content-Type: application/json

Expected Behavior:

I expected the MS Teams connector to parse the Full webhook url and send the MS Teams message. This can be parsed through the existing "teams_webhook_url" parameter.

Steps To Reproduce:

Please see the teams.go file and see line 41.

Anything else:

Metadata

Metadata

Assignees

Labels

Priority: MediumThis issue may be useful, and needs some attention.Status: CompletedNothing further to be done with this issue. Awaiting to be closed.Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions