Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing restricted rest resources using hal-browser #65

Open
linkaraj opened this issue Jul 23, 2015 · 5 comments
Open

Accessing restricted rest resources using hal-browser #65

linkaraj opened this issue Jul 23, 2015 · 5 comments

Comments

@linkaraj
Copy link
Contributor

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
Copy link

bedge commented Jul 28, 2015

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
Copy link
Contributor Author

linkaraj commented Aug 7, 2015

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
Copy link

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

@bedge
Copy link

bedge commented Sep 2, 2015

@olivergierke +1 vote for this pull req.

@kopax
Copy link

kopax commented Dec 13, 2016

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants