How login works?
The user submits the Login Credentials i.e. Username and Password. The server verifies the credentials against the DataBase. The server then generates a temporary Token and embeds the user data into it. The server responds back with the token (in body or header).
Is OpenID free?
Today, anyone can choose to use an OpenID or become an OpenID Provider for free without having to register or be approved by any organization.