omniauth-himari 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniauth/strategies/himari.rb +4 -0
- data/lib/omniauth-himari/version.rb +1 -1
- data/omniauth-himari.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 230530b0b006d644e0c13080c2aa262453bfcf7fb60223a710aa322425bd46e3
|
4
|
+
data.tar.gz: f41f643510a1b1369da770466399677692cb8dd42a6a67b0d76ab21b45b67d1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1ce14483998a5e6e77067b00923a6b6f1f105a64b8c8def0ec76ca9612126de6ebd086a9f1fb8a95a29dbd7c32c184bb7e22d308d341521e7e40b3a8e0ceb02
|
7
|
+
data.tar.gz: 16995e400808c1148001aab5637afbccfaa6b2020f791008c1688c702c248b1b69a7422200d9ba027a9dfbedeb7580d5e527fc4f61ef6a6803ba951579d45078
|
@@ -1,7 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'omniauth'
|
2
4
|
require 'omniauth-oauth2'
|
3
5
|
require 'oauth2'
|
4
6
|
require 'digest/sha2'
|
7
|
+
require 'jwt'
|
5
8
|
|
6
9
|
require 'omniauth-himari/version'
|
7
10
|
|
@@ -121,6 +124,7 @@ module OmniAuth
|
|
121
124
|
def authorize_params
|
122
125
|
super.tap do |params|
|
123
126
|
params[:scope] = 'openid'
|
127
|
+
params[:prompt] = request.GET['prompt'] if request.GET['prompt']
|
124
128
|
end
|
125
129
|
end
|
126
130
|
|
data/omniauth-himari.gemspec
CHANGED
@@ -37,6 +37,7 @@ Gem::Specification.new do |spec|
|
|
37
37
|
spec.add_dependency 'omniauth-oauth2'
|
38
38
|
spec.add_dependency 'oauth2'
|
39
39
|
spec.add_dependency 'faraday'
|
40
|
+
spec.add_dependency 'jwt'
|
40
41
|
|
41
42
|
# Uncomment to register a new dependency of your gem
|
42
43
|
# spec.add_dependency "example-gem", "~> 1.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-himari
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sorah Fukumori
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: jwt
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
description: OmniAuth strategy to act as OIDC RP and use [Himari](https://github.com/sorah/himari)
|
70
84
|
for OP.
|
71
85
|
email:
|