jeremyevans / rodauth

Ruby's Most Advanced Authentication Framework
http://rodauth.jeremyevans.net
MIT License
1.7k stars 95 forks source link

Facebook example: authorization header and super() #23

Closed pudiva closed 7 years ago

pudiva commented 7 years ago

i think that teh example could say that teh facebook login returns a regular Authorization: header. This way it is clear that we can just make a secondary rodauth config, just for facebook login, and then use teh plain rodauth features without this config interference, which is a major win to support login from multiple services.

also, there is a super() on account_from_login block. i must admit that i never tested. =OP

wat do u think?

jeremyevans commented 7 years ago

I don't want to have the example use two separate concerns. We have a separate example for using multiple configurations. If you just have facebook login and don't support other methods of authentication, multiple configurations wouldn't make sense.

The super in account_from_login should probably go. I'll restructure things to make the facebook example more similar to the LDAP example.