Skip to content

Update authentication guidelines for token acquisition - #96

Open
amandine-mestre wants to merge 3 commits into
MewsSystems:mainfrom
amandine-mestre:patch-1
Open

amandine-mestre wants to merge 3 commits into
MewsSystems:mainfrom
amandine-mestre:patch-1

Conversation

@amandine-mestre

@amandine-mestre amandine-mestre commented Sep 16, 2026

Copy link
Copy Markdown

Clarified the process for obtaining Client and Connection Tokens, including additional methods for acquiring Connection Tokens.

Summary

Checklist

  • Documentation follows the contribution guidelines
  • Changelog accurately describes all changes
  • All hyperlinks tested
  • SUMMARY.md updated if new pages added

API

  • Changelog highlights the affected endpoints or operations
  • Changelog highlights any deprecations
  • Deprecation Table updated if any deprecations

Clarified the process for obtaining Client and Connection Tokens, including additional methods for acquiring Connection Tokens.
@amandine-mestre
amandine-mestre requested a review from a team as a code owner September 16, 2026 10:23

@moxly moxly left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risk Assessment

Score: 3/10 — low

This is a documentation-only change, but one authentication description could misdirect integrators when calling Get properties. The impact is limited to guidance and is straightforward to correct.

Review Summary

Verdict: COMMENT

0 critical, 1 warning, 0 nits

The PR template's Summary section is still unfilled, and the description says what changed without explaining why or explicitly confirming whether this is documentation-only versus a functional API change. Please complete that section so reviewers can validate the intended behavior; CONTRIBUTING.md:56-59 asks for those details.

Fix All — prompt for AI agent

Fix the following issues in this PR:

  1. In channel-manager-api/guidelines/authentication.md (line 21): clarify that the employee email is a verified authorization input supplied alongside the required Client Token, not itself an authorization token.
  2. In the PR description: complete the Summary section with the motivation and state whether the update is documentation-only or reflects an API behavior change.

After all changes, run the project's linter/formatter.


Open this review run in Navigator

* **Client Token**: This token is provided by Mews and is essential for authenticating your Channel Manager application. Once we have created your integration profile, you will receive an automatic email containing your clientToken. Look for an email with the subject "Welcome to the partner community".
* **Connection Token**: This token is specific to each connection with a property. You can obtain it in four ways:
* **Using the API**: Automatic (recommended) : If your application supports [Mews: /changeNotification](../channel-manager-operations/notifications), you will receive an API notification to this endpoint when the property first connects, which contains their unique connectionToken.
* **Using the API**: Manual : If your application supports [Mews: Get properties](../mews-operations/configuration.md#get-properties), you can recover the Connection Tokens for all connections the property supports for this client application. In this case, an employee email address is used as an authorization token.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[warning] correctness

The employee email is not itself an authorization token. The linked Get properties contract requires both clientToken and an email, and describes the email as a verified enterprise employee address (channel-manager-api/mews-operations/configuration.md:5-7, 20-23). Calling the email an authorization token may lead integrators to put it in an auth header or omit the required client token. Describe it as an authorization input used alongside the Client Token instead.

Comment thread channel-manager-api/guidelines/authentication.md Outdated
Comment thread channel-manager-api/guidelines/authentication.md Outdated
amandine-mestre and others added 2 commits September 16, 2026 12:50
Co-authored-by: Jonas Pauliukevičius <pauliukevicius.jonas@gmail.com>
Co-authored-by: Jonas Pauliukevičius <pauliukevicius.jonas@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants