3
Vote

Cannot add relying party as https

description

After succesfully adding a relying party with a https url the url changes to http.
 
I saw that the real is saved in the database without a protocol prefix.
 
I found the problem:
 
When the real is filled:
 
Realm = new Uri("http://" + rpEntity.Realm)
 
When the real is saved:
Realm = relyingParty.Realm.AbsoluteUri.StripProtocolMoniker()
 
Is there are reason to strip the protocol?

comments

claudiosanchez wrote Sep 29, 2011 at 10:33 PM

mmm. I second the question. I also noticed that.

johnxjcheng wrote Jun 26, 2012 at 6:21 PM

I thought it should accept https as well, but later on realized it’s not necessary. Thinktecture does not store protocol as a port of the realm in the repository. It trims the protocol off before saving and add it back before displaying. So, I guess this allows the realm work against either http or https. When you do Add STS reference, you may choose to use https. This works fine for me.