# Postman 设置：适用于 Memberful SSO 托管实例

**URL:** <https://meta.discourse.org/t/postman-settings-for-memberful-sso-controlled-instance/109597>\
**Category:** Support\
**Created:** [2019年二月19日 22:31 UTC](https://meta.discourse.org/t/postman-settings-for-memberful-sso-controlled-instance/109597 "2019-02-19T22:31:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kimardenmiller](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kimardenmiller/32/119631_2.png) [@kimardenmiller](https://meta.discourse.org/u/kimardenmiller)\
**Post date:** [2019年二月19日 22:31 UTC](https://meta.discourse.org/t/postman-settings-for-memberful-sso-controlled-instance/109597/1 "2019-02-19T22:31:51Z")

</div>

Trying to use Postman to do a basic query, it fails returning the login html. Am I getting these site setting correct for a Memberful SSO instance?

 ![image](https://global.discourse-cdn.com/meta/original/3X/3/1/3141f5a1794e1cf85b8f125dc5d32ccd060e0695.png)

I have another non-SSO instance where Postman is working fine.

The API Gem works fine on the above SSO-controlled instance using regular credentials:

```
client = DiscourseApi::Client.new('https://discourse.gomomentum.org/')
client.api_key = ENV['REMOTE_DISCOURSE_API']
client.api_username = 'an_admin_username'

```

---

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [2019年二月22日 09:54 UTC](https://meta.discourse.org/t/postman-settings-for-memberful-sso-controlled-instance/109597/2 "2019-02-22T09:54:42Z")

</div>

> [@kimardenmiller](#):
>
> it fails returning the login html

Since you’re using SSO, the login HTML isn’t part of the Discourse site - it is part of the SSO provider.

If you want to obtain the HTML for the login page, you need to make a normal request to `https://discourse.gomomentum.org/`, without an API key, and follow the HTTP redirect chain. (although, I’m not sure why you want the login HTML, that seems like an unusual requirement…)

If you just want a way to test the API, make a request for `https://discourse.gomomentum.org/about.json`. You just need the API key and username, no need for any SSO information.

---

<div class="post-metadata">

**Author:** ![kimardenmiller](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kimardenmiller/32/119631_2.png) [@kimardenmiller](https://meta.discourse.org/u/kimardenmiller)\
**Post date:** [2019年二月22日 23:34 UTC](https://meta.discourse.org/t/postman-settings-for-memberful-sso-controlled-instance/109597/3 "2019-02-22T23:34:18Z")

</div>

Thanks @david. Sorry for the confusion. I did not want the html, but was just saying it was _failing and returning html_ vs. what I wanted, json.

That said, for some reason it all the sudden is working now on firing Postman back up. No idea what changed, but the auth is working fine now.

Thanks!

---

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [2019年二月23日 00:30 UTC](https://meta.discourse.org/t/postman-settings-for-memberful-sso-controlled-instance/109597/4 "2019-02-23T00:30:30Z")

</div>


