# Bratwurst: the wurst possible production DiscourseConnect provider

**URL:** <https://meta.discourse.org/t/bratwurst-the-wurst-possible-production-discourseconnect-provider/72343>\
**Category:** SSO\
**Created:** [18. Oktober 2017 um 15:01 UTC](https://meta.discourse.org/t/bratwurst-the-wurst-possible-production-discourseconnect-provider/72343 "2017-10-18T15:01:27Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)\
**Post date:** [18. Oktober 2017 um 15:01 UTC](https://meta.discourse.org/t/bratwurst-the-wurst-possible-production-discourseconnect-provider/72343/1 "2017-10-18T15:01:27Z")

</div>

I felt like making something the other night, so I implemented an [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) provider that is useful for development and testing:

[https://github.com/Supermathie/bratwurst](https://github.com/Supermathie/bratwurst)

The utility of this is to be able to configure an SSO backend so that you can test out the behaviour of Discourse with different scenarios from an external provider (e.g. “What happens if two users have the same email but different external IDs? What happens if the external ID changes? What happens if two users have the same username?”)

It 100% trusts the user to enter the correct response values. Fun!

If you’re already set up for development you should be able to clone the repo:

```
$ git clone https://github.com/Supermathie/bratwurst.git

```

Install gems:

```
$ bundle install

```

and run the server:

```
$ rails server -b '[::]' -p 3333

```

then test by pointing your browser at `http://localhost:3333/`.

To run it against a local development mode Discourse, configure your SSO URL to be: `http://localhost:3333/sso` and this secret as the default: `thisisabadideatouseoutsideofssotesting`

Screenshot in action:

 ![image](https://global.discourse-cdn.com/meta/original/4X/1/5/7/157f9a4aa485931c418b8bcc8f62503390e20eb1.png)

---

_[View the full topic](https://meta.discourse.org/t/bratwurst-the-wurst-possible-production-discourseconnect-provider/72343)._
