New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

muck-auth

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

muck-auth

  • 3.5.4
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

= muck-auth This gem wraps the omniauth gem to make it simple to authenticate with multiple services.

== Installation

Add muck-auth to your Gemfile: gem 'muck-auth'

After installing muck-auth be sure to sync the gem:

rake muck:sync:auth

or to sync everything from the muck framework:

rake muck:sync

== Configuration Add services by including the proper credentials in secrets.yml:

auth_credentials: twitter: # Twitter api access: http://www.twitter.com/apps key: '{get a key}' secret: '{it comes with a secret}' valid_signin: true # include if you want to use this service to let your users signin/register for your site

=== OAuth Services Here's a list of common oauth services. For a complete list of all available services please consult the omniauth documentation as the available services are constantly changing: https://github.com/intridea/omniauth

Twitter: http://www.twitter.com/apps Google: http://code.google.com/apis/accounts/docs/RegistrationForWebAppsAuto.html#register (domains are managed on: https://www.google.com/accounts/ManageDomains) Yahoo: http://developer.yahoo.com/flickr/ Flick: http://www.flickr.com/services/apps/create/apply Linked In: https://www.linkedin.com/secure/developer Friendfeed: https://friendfeed.com/account/login?next=%2Fapi%2Fregister

== Usage Render a full list of all services with links to authorize the service and icons: <%= render :partial => 'authentications/available_services', :locals => { :include_icons => true } %>

Render a list of all services that the current_user has authorized: <%= render :partial => 'authentications/current_services', :locals => { :include_icons => true, :authentications => current_user.authentications } %>

Let users sign in and/or register on your site via oauth. Just remember to set valid_signin to true in your secrets.yml file: <%= render :partial => 'users/signup_services' %>

There is a default template ('authentications/signup') that will be rendered if the sign up fails. Override that template if you want to provide the user with a custom experience:

Copyright (c) 2009-2011 Tatemae.com. See LICENSE for details.

FAQs

Package last updated on 21 Jul 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc