Replace manual issuer url construction with root_url

This commit is contained in:
Emelia Smith 2024-02-16 20:14:02 +01:00
parent 83cb50a850
commit 56f313ebf1
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ class OauthMetadataPresenter < ActiveModelSerializers::Model
:grant_types_supported, :token_endpoint_auth_methods_supported
def issuer
"http#{Rails.configuration.x.use_https ? 's' : ''}://#{Rails.configuration.x.web_domain}/"
root_url
end
def authorization_endpoint