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

Support for Devise route-aspected authentication? #139

Open
ishmael opened this issue Nov 27, 2014 · 8 comments
Open

Support for Devise route-aspected authentication? #139

ishmael opened this issue Nov 27, 2014 · 8 comments
Labels
Devise strategy feature request This issue requests a new feature. question When closed, this issue will become part of the FAQ.

Comments

@ishmael
Copy link

ishmael commented Nov 27, 2014

Hi,

I am trying to integrate your gem into my code, but I use the devise authenticated route helpers a lot. If i remove an action from within those blocks it works.

Does simple_token_authentication support the authenticated route helpers?

Thanks

@gonzalo-bulnes
Copy link
Owner

Hi @ishmael, I'm not familiar with the authenticated route helpers you mentionned, could you please provide me an example or a link where I could see them in action? (An excerpt of your config/routes.rb file should be enough, no need for a full app!)

@ishmael
Copy link
Author

ishmael commented Nov 27, 2014

@gonzalo-bulnes
Copy link
Owner

Thanks @ishmael,

Of course, which versions of Simple Token Authentication, Devise, and Rails (eventually Rails::API) are you using?

@ishmael
Copy link
Author

ishmael commented Nov 28, 2014

Hi,

I am using devise (3.3.0), rails (4.1.5) and at the moment my fork of your repo with this branch: spike-refactor-concerns-to-devise-strategy

I think there lies the solution to this. I am running some tests and hopefully it will work.

@gonzalo-bulnes
Copy link
Owner

Ok, I've seen your fork. It is very outdated, which may or may not be a problem, you are the judge.

Keep me updated with the result of your tests!

@ishmael
Copy link
Author

ishmael commented Nov 28, 2014

So, working with the strategy it works with the router code too.

now, what's the best way to bring this up to speed?

@gonzalo-bulnes
Copy link
Owner

Let's discuss the Devise strategy implementation in the dedicated issue. (I replied here.)

@gonzalo-bulnes
Copy link
Owner

@ishmael, since you found how to solve the issue, I'll edit its title to make it easier to find.

@gonzalo-bulnes gonzalo-bulnes changed the title Using authenticated helper in routes.rb Support for Devise route-aspected authentication? Nov 29, 2014
@gonzalo-bulnes gonzalo-bulnes added the question When closed, this issue will become part of the FAQ. label Nov 29, 2014
@gonzalo-bulnes gonzalo-bulnes added the feature request This issue requests a new feature. label Jan 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Devise strategy feature request This issue requests a new feature. question When closed, this issue will become part of the FAQ.
Projects
None yet
Development

No branches or pull requests

2 participants