Commit fd94f12
Changed files (3)
app
controllers
oauth
doc
spec
requests
well-known
app/controllers/oauth/metadata_controller.rb
@@ -5,6 +5,7 @@ module Oauth
skip_before_action :authenticate!
def show
+ request.session_options[:skip] = true
render formats: :json
end
end
spec/requests/well-known/oauth_spec.rb
@@ -10,6 +10,7 @@ RSpec.describe "/.well-known/oauth-authorization-server" do
specify { expect(response).to have_http_status(:ok) }
specify { expect(response.content_type).to eql("application/json") }
+ specify { expect(response.headers['Set-Cookie']).to be_nil }
specify { expect(json[:issuer]).to eql(root_url) }
specify { expect(json[:authorization_endpoint]).to eql(oauth_authorizations_url) }
specify { expect(json[:token_endpoint]).to eql(oauth_tokens_url) }