mikekelly / hal-browser

An API browser for the hal+json media type
MIT License
833 stars 158 forks source link

Accessing restricted rest resources using hal-browser #65

Open linkaraj opened 9 years ago

linkaraj commented 9 years ago

Using hal-browser in my spring application to validate rest resources. Now we implemented spring security using oAuth2 to protect all the resources.

Any one implemented authentication on top of hal-browser?

bedge commented 8 years ago

I'd like to see this too. What's the preferred solution here? Does anyone have a working implementation using spring's oath2? If so, could you provide details?

linkaraj commented 8 years ago

Added a login.html and authenticated using oath2 in javascript. Added a cookie called MyHalBrowserToken in the login success. Updated the js/hal/http/client.js to include the MyHalBrowserToken if found in cookie.

Need some clean-up, here is the forked version : https://github.com/linkaraj/hal-browser

odrotbohm commented 8 years ago

@linkaraj - Care to craft a pull request? I can see this being very helpful to others, too.

bedge commented 8 years ago

@olivergierke +1 vote for this pull req.

kopax commented 7 years ago

Hi, I am in the same situation, I am using this starter org.springframework.data:spring-data-rest-hal-browser:2.5.5.RELEASE" in my spring boot application. I have added OAuth security, now all my queries aren't working. How can I get use of this ?