OpenID endpoint file includes wrong url without https

Hi, 

I would like to use OpenID together with Gerrit. All services are served via reverse proxy. 

When I access

 https://subdomain.mycompany.net/openidserver/op

following XML is produced

 

<?xml version="1.0" encoding="UTF-8"?>
<XRDS xmlns="xri://$xrds">
  <XRD xmlns="xri://$xrd*($v*2.0)">
    <Service>
      <Type>http://specs.openid.net/auth/2.0/server</Type>
      <URI>http://subdomain.mycompany.net/openidserver/op</URI>
    </Service>
  </XRD>
</XRDS>

The correct openidserver url should be https and not http

<?xml version="1.0" encoding="UTF-8"?>
<XRDS xmlns="xri://$xrds">
  <XRD xmlns="xri://$xrd*($v*2.0)">
    <Service>
      <Type>http://specs.openid.net/auth/2.0/server</Type>
      <URI>https://subdomain.mycompany.net/openidserver/op</URI>
    </Service>
  </XRD>
</XRDS>

 

 

As I know Gerrit use this information to perform the login. The base url in the openid server is already configurated to "https://subdomain.mycompany.net/openidserver/"

Is there any option to change the url which will be delivered by /openidserver/op? 

// Philipp 

1 answer

I suspect you need to set the scheme in the Tomcat connector config to https - see https://tomcat.apache.org/tomcat-7.0-doc/config/http.html - as the OpenID server calls req.getRequestURL().toString() to populate the URI in the XRDS document, and from a brief skimming of the Tomcat source it appears that getRequestURL() delegates to getScheme(), which the scheme setting is documented as controlling.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

65 views 0 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you