I am looking to manually authorize a user knowing the username. This account however, has no password. It is an account created with an association to a Twitter account in another table. I can verify that the correct twitter account is trying to sign in, but I need to be able to use the Auth component to authorize the user linked to this twitter account.
All accounts that are linked to a twitter account are created in the same fashion, without a password. Since we are planning to make changes to improve this later, a generic password is not a viable option – we need to authenticate the user regardless of what is (or isn’t) in the password field of the users table.
I suppose by “authorize” you mean “authenticate” or “log in”. That’s as simple as passing the primary id of the user record to
Auth::login():