I have custom OpenID provider and consumer.
The OpenID URL should be hard-coded in the consumer app and will point to my custom provider (let's say: http://login.loc/). Provider app in turn tells the consumer which identity is currently logged in on the server (http://login.loc/johndoe e.g.).
It should be exactly same as implementation of Google or Yahoo OpenID login here at Stack Overflow.
How to implement the login procedure so that the user does not need to provide his OpenID URL?