Skip to content

Correct host in generated URLS for IdPs with 'host' config in admin/federation#1781

Merged
thijskh merged 2 commits intomasterfrom
admin-host-idp-hosted
Mar 6, 2023
Merged

Correct host in generated URLS for IdPs with 'host' config in admin/federation#1781
thijskh merged 2 commits intomasterfrom
admin-host-idp-hosted

Conversation

@thijskh
Copy link
Copy Markdown
Member

@thijskh thijskh commented Mar 3, 2023

It gets quite fiddly to get this right. The actual metadata (hosted on the host itself) is alreafy correct because the URL generator uses the 'current' entity metadata and current URL. The admin interface of course presents all entities in one page and hence cannot rely on the current URL. Therefore we need to override the url host for this specific display case.

Closes: #1774

…ederation

It gets quite fiddly to get this right. The actual metadata (hosted on
the `host` itself) is alreafy correct because the URL generator uses the
'current' entity metadata and current URL. The admin interface of course
presents all entities in one page and hence cannot rely on the current
URL. Therefore we need to override the url host for this specific
display case.

Closes: #1774
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 3, 2023

Codecov Report

Merging #1781 (c5d3b14) into master (09e4968) will increase coverage by 0.04%.
The diff coverage is 40.00%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1781      +/-   ##
============================================
+ Coverage     45.48%   45.52%   +0.04%     
- Complexity     3692     3696       +4     
============================================
  Files           158      158              
  Lines         12292    12300       +8     
============================================
+ Hits           5591     5600       +9     
+ Misses         6701     6700       -1     

@thijskh thijskh merged commit 2a67e9e into master Mar 6, 2023
@thijskh thijskh deleted the admin-host-idp-hosted branch March 6, 2023 19:40
tvdijen pushed a commit that referenced this pull request Mar 21, 2023
…ederation (#1781)

It gets quite fiddly to get this right. The actual metadata (hosted on
the `host` itself) is alreafy correct because the URL generator uses the
'current' entity metadata and current URL. The admin interface of course
presents all entities in one page and hence cannot rely on the current
URL. Therefore we need to override the url host for this specific
display case.

Closes: #1774
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2.0.0: metadata generator on admin/Federation page does not honour the 'host' parameter

2 participants