Skip to content

Commit

Permalink
Add code challenge method
Browse files Browse the repository at this point in the history
  • Loading branch information
Pawel Gorczyca committed Jul 22, 2022
1 parent 316c3b5 commit 07a7477
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ gem "image_processing"
# translations
gem "fast_gettext"
gem "gettext_i18n_rails"
gem "i18n_data"
gem "gettext", ">=3.0.2", require: false, group: :development
gem "ruby_parser", require: false, group: :development

Expand Down
4 changes: 4 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ GEM
socksify
i18n (1.12.0)
concurrent-ruby (~> 1.0)
i18n_data (0.16.0)
simple_po_parser (~> 1.1)
image_processing (1.12.2)
mini_magick (>= 4.9.5, < 5)
ruby-vips (>= 2.0.17, < 3)
Expand Down Expand Up @@ -544,6 +546,7 @@ GEM
simple_form (5.1.0)
actionpack (>= 5.2)
activemodel (>= 5.2)
simple_po_parser (1.1.6)
simple_token_authentication (1.17.0)
actionmailer (>= 3.2.6, < 7)
actionpack (>= 3.2.6, < 7)
Expand Down Expand Up @@ -675,6 +678,7 @@ DEPENDENCIES
gretel
haml-rails
haml_lint
i18n_data
image_processing
jira-ruby
json-schema
Expand Down
2 changes: 2 additions & 0 deletions app/models/service.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require "i18n_data"

class Service < ApplicationRecord
PUBLIC_STATUSES = %w[published unverified errored].freeze

Expand Down
1 change: 1 addition & 0 deletions config/initializers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@
name: :checkin,
scope: scope,
response_type: :code,
code_challenge_method: ENV["CHECKIN_CODE_CHALLENGE"] || "S256",
issuer: ENV["CHECKIN_ISSUER_URI"] || "https://#{checkin_host}/oidc/",
discovery: true,
pkce: ENV["CHECKIN_PKCE"] || false ,
Expand Down

0 comments on commit 07a7477

Please sign in to comment.