Mar 11, 2012 at 8:58 PM
Edited Mar 11, 2012 at 9:08 PM
Let me ask this question a different way. Webforms has a signin authorizer and uses the multiview panels which mvc does not have.
I am in need of a way to detect if the user is either authorized or not authorized and I can do an action or something.
The code above is like the sample, once you load it, it shoots to twitter automatically calling the redirects. I was trying to split it up into 2 , yes we see you are new, here is the public timeline vs Here is your authenticated timeline.
I want to be able to put multiple parts of my web application where an authorized user gets "A" but an Unauthorized gets "b"
Like the Display a twitter login if they need to register vs's a Hello Auth.ScreenName if they are signed in.
I was hoping to put all the code to register and login in like mvc 4 demo does then carry the credentials around if I have them and use auth.IsAuthorized or !auth.authorized
I am backtracking a bit right now working with the search but I think I need to put all the crediential code in the controller code above the action so it can detect or reject and query at will so I dont keep hitting the api causing a rate limit
I also want to mention, I wasnt reading my cookies correctly. Today I have a read and write working. YAY!