Fix RS OAuth URL in Webfinger record
This commit is contained in:
parent
600cfe0f78
commit
1995e6dda2
@ -37,7 +37,7 @@ class WebfingerController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def remotestorage_link
|
def remotestorage_link
|
||||||
auth_url = new_rs_oauth_url("#{@username}@#{Setting.primary_domain}")
|
auth_url = new_rs_oauth_url(@username)
|
||||||
storage_url = "#{Setting.rs_storage_url}/#{@username}"
|
storage_url = "#{Setting.rs_storage_url}/#{@username}"
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -18,7 +18,7 @@ RSpec.describe "WebFinger", type: :request do
|
|||||||
expect(rs_link["href"]).to eql("https://storage.kosmos.org/tony")
|
expect(rs_link["href"]).to eql("https://storage.kosmos.org/tony")
|
||||||
|
|
||||||
oauth_url = rs_link["properties"]["http://tools.ietf.org/html/rfc6749#section-4.2"]
|
oauth_url = rs_link["properties"]["http://tools.ietf.org/html/rfc6749#section-4.2"]
|
||||||
expect(oauth_url).to eql("http://www.example.com/rs/oauth/tony@kosmos.org")
|
expect(oauth_url).to eql("http://www.example.com/rs/oauth/tony")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user