Skip to content

Commit

Permalink
Bugfixes metadata (#44)
Browse files Browse the repository at this point in the history
* Fixed Static Metadata Errors

* Dependency update
  • Loading branch information
bellebaum authored Jan 13, 2022
1 parent 90610fb commit ee3d684
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 20 deletions.
26 changes: 11 additions & 15 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,40 @@ GEM
remote: https://rubygems.org/
specs:
abstraction (0.0.4)
activemodel (6.1.4.1)
activesupport (= 6.1.4.1)
activerecord (6.1.4.1)
activemodel (= 6.1.4.1)
activesupport (= 6.1.4.1)
activesupport (6.1.4.1)
activemodel (7.0.1)
activesupport (= 7.0.1)
activerecord (7.0.1)
activemodel (= 7.0.1)
activesupport (= 7.0.1)
activesupport (7.0.1)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
aes_key_wrap (1.1.0)
bcrypt (3.1.16)
bindata (2.4.10)
concurrent-ruby (1.1.9)
daemons (1.4.1)
diff-lcs (1.4.4)
diff-lcs (1.5.0)
eventmachine (1.2.7)
haml (5.2.2)
temple (>= 0.8.0)
tilt
i18n (1.8.11)
concurrent-ruby (~> 1.0)
ipaddr (1.2.3)
json (2.6.1)
json-jwt (1.13.0)
activesupport (>= 4.2)
aes_key_wrap
bindata
jwt (2.3.0)
minitest (5.14.4)
minitest (5.15.0)
multi_json (1.15.0)
mustermann (1.1.1)
ruby2_keywords (~> 0.0.1)
net-ldap (0.17.0)
openssl (2.2.1)
ipaddr
openssl (3.0.0)
power_assert (2.0.1)
rack (2.2.3)
rack-protection (2.1.0)
Expand Down Expand Up @@ -66,7 +63,7 @@ GEM
rack (~> 2.2)
rack-protection (= 2.1.0)
tilt (~> 2.0)
sinatra-activerecord (2.0.23)
sinatra-activerecord (2.0.25)
activerecord (>= 4.1)
sinatra (>= 1.0)
sinatra-contrib (2.1.0)
Expand All @@ -78,7 +75,7 @@ GEM
sinatra-cors (1.2.0)
sqlite3 (1.4.2)
temple (0.8.2)
test-unit (3.5.1)
test-unit (3.5.3)
power_assert
thin (1.8.1)
daemons (~> 1.0, >= 1.0.9)
Expand All @@ -88,7 +85,6 @@ GEM
tzinfo (2.0.4)
concurrent-ruby (~> 1.0)
webrick (1.7.0)
zeitwerk (2.5.1)

PLATFORMS
ruby
Expand Down
6 changes: 3 additions & 3 deletions lib/oauth_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ def self.configuration_metadata_rfc8414(base_config, host, path)
metadata['jwks_uri'] = "#{host}/.well-known/jwks.json"
# metadata["registration_endpoint"] = "#{host}/FIXME"
metadata['scopes_supported'] = OAuthHelper.supported_scopes
metadata['response_types_supported'] = %w[code fragment form_post]
metadata['response_modes_supported'] = ['query'] # FIXME: we only do query atm no fragment
metadata['grant_types_supported'] = ['authorization_code']
metadata['response_types_supported'] = ['code']
metadata['response_modes_supported'] = %w[query fragment form_post]
metadata['grant_types_supported'] = %w[authorization_code client_credentials]
metadata['token_endpoint_auth_methods_supported'] = %w[none private_key_jwt]
metadata['token_endpoint_auth_signing_alg_values_supported'] = %w[RS256 RS512 ES256 ES512]
metadata['service_documentation'] = 'https://github.com/Fraunhofer-AISEC/omejdn-server/wiki'
Expand Down
2 changes: 0 additions & 2 deletions tests/test_oauth2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,6 @@ def test_algorithms
request_client_credentials @client, "ES512", @priv_key_ec512, @certificate_ec512
request_client_credentials @client, "RS256", @priv_key_rsa, @certificate_rsa
request_client_credentials @client, "RS512", @priv_key_rsa, @certificate_rsa
request_client_credentials @client, "PS512", @priv_key_rsa, @certificate_rsa, '', false
request_client_credentials @client, "PS256", @priv_key_rsa, @certificate_rsa, '', false
end

def request_authorization(user, client, query_additions='', should_work=true, scopes = ['omejdn:write'])
Expand Down

0 comments on commit ee3d684

Please sign in to comment.