No release in over a year
OmniAuth strategy for Tiltify
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

OmniAuth Tiltify

An OmniAuth strategy for Tiltify

Installation

Add the OmniAuth Tiltify and OmniAuth rails_csrf_protection gems to your Gemfile

gem 'omniauth-tiltify'
gem 'omniauth-rails_csrf_protection'

Usage

Create an Application by going to https://dashboard.tiltify.com/MYUSERNAME/my-account/connected-accounts/applications (and replacing MYUSERNAME with your own username, of course) and hitting the "create application" button.

Here's an example for adding the middleware to a Rails app in config/initializers/omniauth.rb:

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :tiltify, ENV["TILTIFY_APP"], ENV["TILTIFY_SECRET"]
end

Auth Hash

Here's an example Auth Hash available in request.env['omniauth.auth']:

{
  provider: "tiltify",
  uid: 12345,
  info: {
    username: "testuser",
    url: "https://tiltify.com/@testuser",
    first_name: "Test",
    last_name: "User",
    email: "test@test.com",
    avatar: "https://assets.tiltify.com/assets/default-avatar.png",
    name: "Test User"
  },
  credentials: {
    token: "abc123", # OAuth 2.0 access_token, which you may wish to store
    expires: false   # this will always be false
  }
}