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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a1280e30d7d894b2db9ed7f9bbc12ddc2feb23c05b8b7e2114b0346ae314966
4
- data.tar.gz: e9d350f407d5de7c26a72eaef8886935abb0334da60249e7137fd594af3a4eab
3
+ metadata.gz: 230530b0b006d644e0c13080c2aa262453bfcf7fb60223a710aa322425bd46e3
4
+ data.tar.gz: f41f643510a1b1369da770466399677692cb8dd42a6a67b0d76ab21b45b67d1b
5
5
  SHA512:
6
- metadata.gz: 978c7555d9221b256309c56019a85e3030151627fc3f865d70c72976ebfe8008f4f2ae8d66e998e49eb8cbb0f955f794f38ebec7135dcc5d41cdda7b7c849f31
7
- data.tar.gz: 82129a5f925165b1cf4edabfc0882d900acfbd81dad4da6bb6066b7edca7c94e9cdc4f163dfbd766542095e307d0812b1f515cb31416af21fbe899e1e39b3079
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
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Omniauth
4
4
  module Himari
5
- VERSION = "0.1.0"
5
+ VERSION = "0.2.0"
6
6
  end
7
7
  end
@@ -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.1.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-23 00:00:00.000000000 Z
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: