Fetch/store Web App metadata and icons, finish RS integration #153

Merged
raucao merged 39 commits from feature/142-webapp_database into master 2024-01-01 13:18:48 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 1995e6dda2 - Show all commits

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