instance method
Gem::GemcutterUtilities#get_user_profile
get_user_profile(identifier, password)
lib/rubygems/gemcutter_utilities.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/gemcutter_utilities.rb, line 358
def get_user_profile(identifier, password)
return {} unless default_host?
response = rubygems_api_request(:get, "api/v1/profile/me.yaml") do |request|
request.basic_auth identifier, password
end
with_response response do |resp|
Gem::ConfigFile.load_with_rubygems_config_hash(clean_text(resp.body))
end
end
No documentation available
See also
#get_scope_params
#host
#get_mfa_params
#mfa_unauthorized?
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1