Update OAuth inflection to match spec (#35160)
				
					
				
			This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
			
		||||
# frozen_string_literal: true
 | 
			
		||||
 | 
			
		||||
module WellKnown
 | 
			
		||||
  class OauthMetadataController < ActionController::Base # rubocop:disable Rails/ApplicationController
 | 
			
		||||
  class OAuthMetadataController < ActionController::Base # rubocop:disable Rails/ApplicationController
 | 
			
		||||
    include CacheConcern
 | 
			
		||||
 | 
			
		||||
    # Prevent `active_model_serializer`'s `ActionController::Serialization` from calling `current_user`
 | 
			
		||||
@@ -13,8 +13,8 @@ module WellKnown
 | 
			
		||||
      # new OAuth scopes are added), we don't use expires_in to cache upstream,
 | 
			
		||||
      # instead just caching in the rails cache:
 | 
			
		||||
      render_with_cache(
 | 
			
		||||
        json: ::OauthMetadataPresenter.new,
 | 
			
		||||
        serializer: ::OauthMetadataSerializer,
 | 
			
		||||
        json: ::OAuthMetadataPresenter.new,
 | 
			
		||||
        serializer: ::OAuthMetadataSerializer,
 | 
			
		||||
        content_type: 'application/json',
 | 
			
		||||
        expires_in: 15.minutes
 | 
			
		||||
      )
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user