Fix RS OAuth URL in Webfinger record
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Râu Cao 2023-11-16 12:43:59 +01:00
parent 600cfe0f78
commit 1995e6dda2
Signed by: raucao
GPG Key ID: 15E65F399D084BA9
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ class WebfingerController < ApplicationController
end
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}"
{

View File

@ -18,7 +18,7 @@ RSpec.describe "WebFinger", type: :request do
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"]
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