All Projects → dennisreimann → Masq

dennisreimann / Masq

Licence: mit
Mountable Rails engine that provides OpenID server/identity provider functionality

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Masq

Stripe Rails
A Rails Engine for integrating with Stripe
Stars: ✭ 627 (+646.43%)
Mutual labels:  rails-engine
Louketo Proxy
A OpenID / Proxy service
Stars: ✭ 926 (+1002.38%)
Mutual labels:  openid
Salte Auth
💻🗝 Authentication for the modern web!
Stars: ✭ 61 (-27.38%)
Mutual labels:  openid
Blacklight
Blacklight provides a discovery interface for any Solr (http://lucene.apache.org/solr) index.
Stars: ✭ 670 (+697.62%)
Mutual labels:  rails-engine
Jpproject.identityserver4.adminui
🔧 ASP.NET Core 3 & Angular 8 Administration Panel for 💞IdentityServer4 and ASP.NET Core Identity
Stars: ✭ 717 (+753.57%)
Mutual labels:  openid
Python3 Openid
Python 3 port of the python-openid library
Stars: ✭ 36 (-57.14%)
Mutual labels:  openid
Rails email preview
Preview and edit app mailer templates in Rails.
Stars: ✭ 524 (+523.81%)
Mutual labels:  rails-engine
Tabler Rubygem
Rubygem for https://tabler.github.io
Stars: ✭ 77 (-8.33%)
Mutual labels:  rails-engine
Play Silhouette
Silhouette is an authentication library for Play Framework applications that supports several authentication methods, including OAuth1, OAuth2, OpenID, CAS, 2FA, TOTP, Credentials, Basic Authentication or custom authentication schemes.
Stars: ✭ 826 (+883.33%)
Mutual labels:  openid
Abraham
Trackable application tours for Rails with i18n support
Stars: ✭ 52 (-38.1%)
Mutual labels:  rails-engine
Jose Jwt
Ultimate Javascript Object Signing and Encryption (JOSE) and JSON Web Token (JWT) Implementation for .NET and .NET Core
Stars: ✭ 692 (+723.81%)
Mutual labels:  openid
Alchemy cms
AlchemyCMS is a Rails CMS engine
Stars: ✭ 702 (+735.71%)
Mutual labels:  rails-engine
Oauth2 Server
OAuth2 Server Library
Stars: ✭ 42 (-50%)
Mutual labels:  openid
Aspnet5identityserverangularimplicitflow
OpenID Connect Code / Implicit Flow with Angular and ASP.NET Core 5 IdentityServer4
Stars: ✭ 670 (+697.62%)
Mutual labels:  openid
Aspnetcoreid4external
external OpenID Connect Login to IdentityServer4 with AAD
Stars: ✭ 63 (-25%)
Mutual labels:  openid
Angular Auth Oidc Client
npm package for OpenID Connect, OAuth Code Flow with PKCE, Refresh tokens, Implicit Flow
Stars: ✭ 577 (+586.9%)
Mutual labels:  openid
Node Openid Client
OpenID Certified™ Relying Party (OpenID Connect/OAuth 2.0 Client) implementation for Node.js.
Stars: ✭ 887 (+955.95%)
Mutual labels:  openid
Swagger ui engine
Include swagger-ui as rails engine and document your API with simple JSON or YAML files.
Stars: ✭ 77 (-8.33%)
Mutual labels:  rails-engine
Sudo rails
🔒 Sudo mode for your Rails controllers
Stars: ✭ 66 (-21.43%)
Mutual labels:  rails-engine
Simpleidentityserver
OpenId + Uma + Oauth 2.0 providers + SCIM2.0 + RFID reader (DEPRECATED)
Stars: ✭ 48 (-42.86%)
Mutual labels:  openid

Masq OpenID Server

Gem Version Build Status

Masq is a mountable Rails engine that provides OpenID server/identity provider functionality. It is the successor of the stand-alone Rails application masquerade.

The project is released under the MIT-License and its source code is available at GitHub. Feel free to fork and submit patches :)

Installation

If you want to upgrade from masquerade, please skip this part and see the Upgrading section below

  1. In case you want to run masq as a standalone application (not integrated into an existing app), you will have to generate a barebone Rails app first:

    • rails new my_openid_provider
  2. Add masq to your Gemfile and install it:

    • gem 'masq'
    • bundle install
  3. Copy the configuration and edit it:

    • bundle exec rake masq:install:config
    • $EDITOR config/masq.yml
  4. Copy the migrations and migrate:

    • bundle exec rake masq:install:migrations
    • bundle exec rake db:migrate
  5. Configure the routes by mounting the masq engine:

    • For integration into an existing app, mount it in a subdirectory, like:
      • mount Masq::Engine => "/masq" or
      • mount Masq::Engine => "/openid"
    • Standalone installation, mount it at the root:
      • mount Masq::Engine => "/"

Upgrading from masquerade

  1. Generate a barebone Rails app:

    • rails new my_openid_provider
  2. Add masq to your Gemfile and install it:

    • gem 'masq'
    • bundle install
  3. Copy your existing masquerade config file from config/app_config.yml to the new apps config/masq.yml

  4. Copy the migrations and migrate:

    • PLEASE BACKUP YOUR DATABASE FIRST!
    • bundle exec rake masq:install:migrations
    • bundle exec rake db:migrate
  5. Configure the routes by mounting the masq engine:

     Rails.application.routes.draw do
       mount Masq::Engine => "/"
     end
    

Testing the installation

You can test the functionality in your local environment starting two instances: One as your Identity Provider/OpenID Server and another one as Relying Party.

* `rails server`
* `rails server -p 3001`

Open your browser with these urls (assumes you mounted the engine at /masq):

* [http://localhost:3000/masq](http://localhost:3000/masq) (Identity Provider)
* [http://localhost:3001/masq/consumer](http://localhost:3001/masq/consumer) (Relying Party testsuite)

First you have to create an account at the Identity Provider, after that you will be able to use the issued OpenID URL (http://localhost:3000/masq/YOUR_LOGIN) to send requests from the Relying Party to the server.

Use the options provided by the OpenID verification form to test several aspects of the client-server communication (like requesting simple registration data).

Development

Introduction

The main functionality is in the server controller, which is the endpoint for incoming OpenID requests. The server controller is supposed to only interact with relying parties a.k.a. consumer websites. It includes the OpenidServerSystem module, which provides some handy methods to access and answer OpenID requests.

Testing

You can run the tests with Rake: * DB_ADAPTER=sqlite3 bundle exec rake app:masq:test:ci * DB_ADAPTER=mysql2 bundle exec rake app:masq:test:ci * DB_ADAPTER=postgresql bundle exec rake app:masq:test:ci

The Rake task configures the database.yml for the chosen adapter.

In case you prefer running the tests continuously, use Guard: * bundle exec guard

Contact

Dennis Reimann: [email protected]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].