Class: ForestLiana::OidcConfigurationRetriever

Inherits:
Object
  • Object
show all
Defined in:
app/services/forest_liana/oidc_configuration_retriever.rb

Class Method Summary collapse

Class Method Details

.retrieveObject



3
4
5
6
7
8
9
10
# File 'app/services/forest_liana/oidc_configuration_retriever.rb', line 3

def self.retrieve()
  response = ForestLiana::ForestApiRequester.get('/oidc/.well-known/openid-configuration')
  if response.is_a?(Net::HTTPOK)
    return JSON.parse(response.body)
  else
    raise ForestLiana::MESSAGES[:SERVER_TRANSACTION][:OIDC_CONFIGURATION_RETRIEVAL_FAILED]       
  end
end