Inspired by SO, I'm trying to write an ASP.NET site that uses OpenID to authenticate users. This is a regular WinForms site (not MVC.NET), using the DotNetOpenId library for authentication.
Is it safe for me to enable / disable administrative functions on the site by simply comparing the current "RequestedID" session (as returned by the OpenIdLogin_LoggedIn event, as a member of DotNetOpenId.RelyingParty, OpenIdEventArgs.Response.ClaimedIdentifier) ββto a known OpenID administrator (i.e., My)?
If so, is it safe for this identifier to be visible (for example, in open source) or should it be "hidden" in the configuration file or in the database row? (I know this is the best design to make it customizable, my question is about security.)
source
share