Remove zone info claim
This commit is contained in:
parent
724f32604b
commit
054e421829
3 changed files with 2 additions and 7 deletions
|
|
@ -26,7 +26,7 @@ module Api
|
|||
subject_types_supported: %w(public pairwise),
|
||||
id_token_signing_alg_values_supported: %i(RS256),
|
||||
token_endpoint_auth_methods_supported: %w(client_secret_basic client_secret_post),
|
||||
claims_supported: %w(sub nickname profile picture zoneinfo)
|
||||
claims_supported: %w(sub nickname profile picture)
|
||||
)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
class UserInfoSerializer < ActiveModel::Serializer
|
||||
attributes :sub, :nickname, :profile, :picture, :zoneinfo
|
||||
attributes :sub, :nickname, :profile, :picture
|
||||
|
||||
def sub
|
||||
auth = serialization_options[:authorization]
|
||||
|
|
@ -24,8 +24,4 @@ class UserInfoSerializer < ActiveModel::Serializer
|
|||
def picture
|
||||
File.join(AppConfig.environment.url, object.image_url).to_s
|
||||
end
|
||||
|
||||
def zoneinfo
|
||||
object.language
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@ Then /^I should receive "([^\"]*)"'s id, username, and email$/ do |username|
|
|||
user = User.find_by_username(username)
|
||||
user_profile_url = File.join(AppConfig.environment.url, "people", user.guid).to_s
|
||||
expect(user_info_json["profile"]).to have_content(user_profile_url)
|
||||
expect(user_info_json["zoneinfo"]).to have_content(user.language)
|
||||
end
|
||||
|
||||
Then /^I should receive an "([^\"]*)" error$/ do |error_message|
|
||||
|
|
|
|||
Loading…
Reference in a new issue