# חוסר התאמה בקידוד ה-hash של DiscourseConnect

**URL:** <https://meta.discourse.org/t/discourseconnect-payload-hash-encoding-mismatch/192319>\
**Category:** SSO\
**Created:** [1 ביוני,‏ 2021,‏ 5:52pm UTC](https://meta.discourse.org/t/discourseconnect-payload-hash-encoding-mismatch/192319 "2021-06-01T17:52:09Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Bio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bio/32/198067_2.png) [@Bio](https://meta.discourse.org/u/Bio)\
**Post date:** [1 ביוני,‏ 2021,‏ 5:52pm UTC](https://meta.discourse.org/t/discourseconnect-payload-hash-encoding-mismatch/192319/1 "2021-06-01T17:52:10Z")

</div>

Hello,

I am new to working with Discourse and AWS, so I was hoping that someone could assist or point me in the right direction. I’m trying to setup [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) with my website, following the instructions on this forum [https://meta.discourse.org/t/discourseconnect-official-single-sign-on-for-discourse-sso/13045/1](https://meta.discourse.org/t/discourseconnect-official-single-sign-on-for-discourse-sso/13045/1)

In the real world example, when the base64 encoded payload is hashed, I get a different value than the signature.  
Payload: bm9uY2U9Y2I2ODI1MWVlZmI1MjExZTU4YzAwZmYxMzk1ZjBjMGI= (newline omitted)  
Signature: 2828aa29899722b35a2f191d34ef9b3ce695e0e6eeec47deb46d588d70c7cb56  
My HMAC Hash (generated from devglan online tools): 1ce1494f94484b6f6a092be9b15ccc1cdafb1f8460a3838fbb0e0883c4390471

When I create a signature for the return URL, I get the same result as the website, so I am not quite sure why the answers do not match. If you are able to provide any insight into why this is, it would be greatly appreciated.

---

_[View the full topic](https://meta.discourse.org/t/discourseconnect-payload-hash-encoding-mismatch/192319)._
