Commit 757b147
Changed files (4)
doc
spec
doc/_includes/curl.erb
@@ -2,7 +2,6 @@
#### <%= interaction['request']['method'].upcase %> <%= interaction['request']['uri'].gsub(/\h{8}-\h{4}-\h{4}-\h{4}-\h{12}/, ':id') %>
Example curl request:
-
<% headers = interaction['request']['headers'].map { |(key, value)| "-H \"#{key}: #{value[0]}\"" } %>
```bash
$ curl <%= interaction['request']['uri'] %> \
@@ -11,7 +10,6 @@ $ curl <%= interaction['request']['uri'] %> \
<%= headers.join(" \\\n ") %>
```
Request Headers:
-
<% headers = interaction['request']['headers'].map { |(key, value)| "#{key}: #{value[0]}" } %>
```text
<%= headers.join("\n") %>
@@ -23,9 +21,7 @@ Request Body:
<%= JSON.pretty_generate(json) %>
```
<% end %>
-
Response Headers:
-
<% headers = interaction['response']['headers'].map { |(key, value)| "#{key}: #{value[0]}" } %>
```text
<%= headers.join("\n") %>
@@ -33,7 +29,6 @@ Response Headers:
<% json = JSON.parse(interaction['response']['body']['string']) rescue {} %>
<% if json.present? %>
Response Body:
-
```json
<%= JSON.pretty_generate(json) %>
```
doc/_posts/2018-10-28-oauth-metadata.markdown
@@ -0,0 +1,9 @@
+---
+layout: post
+title: "OAuth 2.0 - Metadata"
+date: 2018-10-28 12:00:00 -0700
+permalink: /oauth/metadata.html
+categories: oauth
+---
+
+{% include get-well-known-oauth-authorization-server.html %}
spec/documentation.rb
@@ -9,6 +9,7 @@ RSpec.configure do |config|
config.include FactoryBot::Syntax::Methods
config.before :suite do
FileUtils.rm_rf(Rails.root.join('doc/_cassettes/'))
+ Net::Hippie.logger = Logger.new('/dev/null')
VCR.configure do |x|
x.cassette_library_dir = "doc/_cassettes"
x.hook_into :webmock