# Using OpenID With Slim

**URL:** <https://discourse.slimframework.com/t/using-openid-with-slim/116>\
**Category:** Questions\
**Created:** [April 12, 2016, 2:06pm UTC](https://discourse.slimframework.com/t/using-openid-with-slim/116 "2016-04-12T14:06:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![farazappy](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/farazappy/32/61_2.png) [@farazappy](https://discourse.slimframework.com/u/farazappy)\
**Post date:** [April 12, 2016, 2:06pm UTC](https://discourse.slimframework.com/t/using-openid-with-slim/116/1 "2016-04-12T14:06:11Z")

</div>

Hey,  
I am trying to use Slim2 as a framework and Twig as the template engine for my project and I want to allow my users to Login/Register using their social accounts (Facebook/Google/Twitter/Others). For this purpose I’m trying to use OpenID but can’t get how to use it with Slim.

If anybody could help me please.

Thanks!

---

<div class="post-metadata">

**Author:** ![silentworks](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/silentworks/32/10_2.png) [@silentworks](https://discourse.slimframework.com/u/silentworks)\
**Post date:** [April 12, 2016, 2:18pm UTC](https://discourse.slimframework.com/t/using-openid-with-slim/116/2 "2016-04-12T14:18:23Z")

</div>

Can you provide an example of what you have tried doing so far? If you provide some code, someone should be able to help from there.

---

<div class="post-metadata">

**Author:** ![farazappy](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/farazappy/32/61_2.png) [@farazappy](https://discourse.slimframework.com/u/farazappy)\
**Post date:** [April 12, 2016, 3:12pm UTC](https://discourse.slimframework.com/t/using-openid-with-slim/116/3 "2016-04-12T15:12:38Z")

</div>

Thanks for replying!

I tried integrating this library here for steam authentication,

> **[SmItH197/SteamAuthentication](https://github.com/SmItH197/SteamAuthentication)**
>
> A simple PHP Authentication that enables steam users to log into their steam account to access content! - SmItH197/SteamAuthentication

I included the required files in the app.php and using the loginbutton(); in the above library in my code but it fails.

---

<div class="post-metadata">

**Author:** ![silentworks](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/silentworks/32/10_2.png) [@silentworks](https://discourse.slimframework.com/u/silentworks)\
**Post date:** [April 12, 2016, 3:16pm UTC](https://discourse.slimframework.com/t/using-openid-with-slim/116/4 "2016-04-12T15:16:11Z")

</div>

We still need to see some sort of code example please.
