Skip to content

TrustedPlus/id.ruby

Repository files navigation

Omniauth IdTrustedPlus

The OmniAuth strategy for authenticating to https://trusted.plus/id.

Installation

Add this line to your application's Gemfile:

gem 'omniauth-idTrustedPlus', git: 'https://github.com/TrustedPlus/id.ruby.git'

And then execute:

$ bundle

Usage

Rails

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :idTrustedPlus, ENV['IDTrustedPlus_APP_ID'], ENV['IDTrustedPlus_APP_SECRET']
end

Gitlab

    gitlab_rails['omniauth_enabled'] = true 
    gitlab_rails['omniauth_allow_single_sign_on'] = ['idTrustedPlus']
    gitlab_rails['omniauth_block_auto_created_users'] = false

    gitlab_rails['omniauth_providers'] = [
    {
        "name" => "idTrustedPlus",
        "app_id" => "your_client_id",
        "app_secret" => "your_client_secret",
        'args' => {
            scope: 'userprofile',
        }              
    }
]

License

The gem is available as open source under the terms of the MIT License.

About

The OmniAuth strategy for authenticating to https://trusted.plus/id

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published