omniauth-globalid 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +7 -0
- data/README.md +5 -0
- data/lib/omniauth-globalid.rb +2 -0
- data/lib/omniauth-globalid/version.rb +5 -0
- data/lib/omniauth/strategies/globalid.rb +18 -0
- data/omniauth-globalid.gemspec +22 -0
- metadata +91 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5afa67b910a7b7e58d804a6885121eca7a821bc5ed7f5e0b0126648e983848b2
|
4
|
+
data.tar.gz: fb6a3984a3ea24b1a8b6692cde0611d66b766ac1e9c189695e16ebdd2ce74e20
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e133b7bb2489e8d759e4fde091c7e0041901539ca5ac203078cbe9b494dae5e054489c5180b25d41dc52fea8167b78684e4508622e06d0dda0651e819f957e91
|
7
|
+
data.tar.gz: d48f9a489cc86cc4d98945e1911ad212885c969304bf78a7b7f6d54c04a3e7892d1a3c480d5c2ff7c0e9426eac1039b4790ac0e4203db1a0f2ce8af06d580b4c
|
data/.gitignore
ADDED
data/README.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require "omniauth-oauth"
|
2
|
+
require "json"
|
3
|
+
|
4
|
+
module OmniAuth
|
5
|
+
module Strategies
|
6
|
+
class Globalid < OmniAuth::Strategies::OAuth
|
7
|
+
option :name, "globalid"
|
8
|
+
DEFAULT_SCOPE = "public"
|
9
|
+
|
10
|
+
option :client_options, site: "https://auth.global.id", authorize_url: "/"
|
11
|
+
|
12
|
+
# https://github.com/omniauth/omniauth-oauth2/issues/81
|
13
|
+
def callback_url
|
14
|
+
full_host + script_name + callback_path
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "omniauth-globalid/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "omniauth-globalid"
|
7
|
+
s.version = OmniAuth::Globalid::VERSION
|
8
|
+
s.authors = ["Seth Herr"]
|
9
|
+
s.homepage = "https://gitlab.com/sethherr/omniauth-globalid"
|
10
|
+
s.description = %q{OmniAuth strategy for GlobaliD}
|
11
|
+
s.summary = s.description
|
12
|
+
s.license = "MIT"
|
13
|
+
|
14
|
+
s.files = `git ls-files`.split("\n")
|
15
|
+
# s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") # Hopefully someday
|
16
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
17
|
+
s.require_paths = ["lib"]
|
18
|
+
s.required_ruby_version = Gem::Requirement.new('>= 1.9.3')
|
19
|
+
s.add_dependency 'omniauth-oauth', '~> 1.1'
|
20
|
+
s.add_dependency 'rack'
|
21
|
+
s.add_development_dependency 'bundler', '~> 1.0'
|
22
|
+
end
|
metadata
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: omniauth-globalid
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Seth Herr
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-06-23 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: omniauth-oauth
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.1'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rack
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.0'
|
55
|
+
description: OmniAuth strategy for GlobaliD
|
56
|
+
email:
|
57
|
+
executables: []
|
58
|
+
extensions: []
|
59
|
+
extra_rdoc_files: []
|
60
|
+
files:
|
61
|
+
- ".gitignore"
|
62
|
+
- README.md
|
63
|
+
- lib/omniauth-globalid.rb
|
64
|
+
- lib/omniauth-globalid/version.rb
|
65
|
+
- lib/omniauth/strategies/globalid.rb
|
66
|
+
- omniauth-globalid.gemspec
|
67
|
+
homepage: https://gitlab.com/sethherr/omniauth-globalid
|
68
|
+
licenses:
|
69
|
+
- MIT
|
70
|
+
metadata: {}
|
71
|
+
post_install_message:
|
72
|
+
rdoc_options: []
|
73
|
+
require_paths:
|
74
|
+
- lib
|
75
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: 1.9.3
|
80
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '0'
|
85
|
+
requirements: []
|
86
|
+
rubyforge_project:
|
87
|
+
rubygems_version: 2.7.8
|
88
|
+
signing_key:
|
89
|
+
specification_version: 4
|
90
|
+
summary: OmniAuth strategy for GlobaliD
|
91
|
+
test_files: []
|