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

V2 api authentication #1068

Merged
merged 8 commits into from
Feb 10, 2015
Merged

V2 api authentication #1068

merged 8 commits into from
Feb 10, 2015

Conversation

nicosomb
Copy link
Member

@nicosomb nicosomb commented Feb 9, 2015

Authentication for API, based on WSSE http://obtao.com/blog/2013/06/configure-wsse-on-symfony-with-fosrestbundle/
About salt: http://stackoverflow.com/questions/213380/the-necessity-of-hiding-the-salt-for-a-hash
For generating correct headers: http://www.teria.com/~koseki/tools/wssegen/
For testing API, install Rest console plugin for Chrome or Firefox.

@nicosomb
Copy link
Member Author

nicosomb commented Feb 9, 2015

@j0k3r You can already have a look to this PR. I still have stuff to do.

@j0k3r j0k3r added this to the 2.0 milestone Feb 9, 2015
@@ -21,6 +21,8 @@
class="Wallabag\CoreBundle\Security\Firewall\WsseListener" public="false">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to choose which format we are going to use for declaring services, instead of mixing xml & yml. I'm more familiar with yml :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also prefer yml. But I heard that "symfony standards" for services is XML.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh wait, I'll send a mail to my sensio colleagues and my symfony teacher!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want, you can convert this file into yml one. I add a task in trello.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nicosomb
Copy link
Member Author

nicosomb commented Feb 9, 2015

I replaced services.xml file. Can you confirm it's good for you?

@j0k3r
Copy link
Member

j0k3r commented Feb 9, 2015

Seems to be good 👍

@nicosomb nicosomb changed the title [WIP] V2 api authentication V2 api authentication Feb 10, 2015
@nicosomb
Copy link
Member Author

Ready for review.

@nicosomb
Copy link
Member Author

Fixed your review.

@j0k3r
Copy link
Member

j0k3r commented Feb 10, 2015

It would great if you had some simple test to validate that getting entries, authenticate usingthe api works, etc ..

@nicosomb
Copy link
Member Author

There is an other PR for tests: #1070

If this one seems good for you, let's merge!

j0k3r added a commit that referenced this pull request Feb 10, 2015
@j0k3r j0k3r merged commit 2c0ffcf into v2 Feb 10, 2015
@j0k3r j0k3r deleted the v2-api-authentication branch February 10, 2015 12:50
@nicosomb nicosomb modified the milestones: 2.0, 2.0.0-alpha Aug 12, 2015
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

Successfully merging this pull request may close these issues.

None yet

3 participants