Reputation: 3908
Is it possible to check header for available token and other OAuth values with ActiveWeb ? Are there any examples repos ? Thank you.
Upvotes: 0
Views: 50
Reputation: 5518
There are no example repos, but you can access and set headers in controllers and filters:
so:
header(String name,String value); // sets a header on response
headers(); // gets all request headers
header(String name); // returns a request header
Once you have a header, you can do whatever you need to.
All controllers have these methods out of the box. If you need to do this in a filter, you would inherit this class:
Upvotes: 1