# Hashing de Segredo + Payload para SSO

**URL:** <https://meta.discourse.org/t/hashing-secret-payload-for-sso/169284>\
**Category:** SSO\
**Created:** [Novembro 4, 2020, 10:01pm UTC](https://meta.discourse.org/t/hashing-secret-payload-for-sso/169284 "2020-11-04T22:01:14Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![nategoethel](https://avatars.discourse-cdn.com/v4/letter/n/90ced4/32.png) [@nategoethel](https://meta.discourse.org/u/nategoethel)\
**Post date:** [Novembro 4, 2020, 10:01pm UTC](https://meta.discourse.org/t/hashing-secret-payload-for-sso/169284/1 "2020-11-04T22:01:14Z")

</div>

Estou tentando seguir o [guia oficial de SSO](https://meta.discourse.org/t/official-single-sign-on-for-discourse-sso/13045). Estou usando Golang no meu servidor e estou tentando corresponder o hash HMAC-SHA256 do `payload` + `secret` ao `sig`, mas estou obtendo valores diferentes. Como vocês estão fazendo a geração do hash? Vocês estão decompondo o payload para o conteúdo bruto, sem assinatura, e re-hashando?

---

_[View the full topic](https://meta.discourse.org/t/hashing-secret-payload-for-sso/169284)._
