Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

JSON authentication listener docs#7081

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
xabbuh merged 9 commits intosymfony:masterfromdunglas:docs_18952
Dec 14, 2016
Merged

Conversation

@dunglas
Copy link
Member

@javiereguiluz
Copy link
Member

@dunglas in0961128 I propose to change the order in which some things are explained. It's only a proposal. If you don't agree, let's forget about it (I created a commit directly because it's easier to understand than commenting a lot of lines in your original commit).

@dunglas
Copy link
MemberAuthor

@javiereguiluz great improvement, thanks!


.. tip::

If you are storing users in some sort of a database, then you should consider
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it really relevant here ? IMHO it does not have specifically much to do with the current article :/

chalasr and fabpot reacted with thumbs up emoji
the following JSON document as body, the security system will automatically
check the user's credentials and either authenticate the user or throw an error::

.. code-block:: json
Copy link
Contributor

Choose a reason for hiding this comment

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

For some reason, this block does not render well:http://pr-7081-acxnhhi-6qmocelev2lwe.eu.platform.sh/security/json_login_setup.html

(probably because of the double colon L.149)

@xabbuhxabbuh added this to the3.3 milestoneNov 7, 2016
fabpot added a commit to symfony/symfony that referenced this pull requestDec 3, 2016
This PR was squashed before being merged into the 3.3-dev branch (closes#18952).Discussion----------[Security] Add a JSON authentication listener| Q | A || --- | --- || Branch? | master || Bug fix? | no || New feature? | yes || BC breaks? | no || Deprecations? | no || Tests pass? | yes || Fixed tickets | n/a || License | MIT || Doc PR |symfony/symfony-docs#7081 |Add a new authentication listener allowing to login by sending a JSON document like: `{"_username": "dunglas", "_password": "foo"}`.It is similar to the traditional form login (but take a JSON document as entry) and is convenient for APIs, especially used in combination with JWT.Seeapi-platform/core#563 andlexik/LexikJWTAuthenticationBundle#123 (comment) for previous discussions.- [x] Add functional tests in security bundleCommits-------02178bc [Security] Add a JSON authentication listener
Copy link
Member

@javiereguiluzjaviereguiluz left a comment

Choose a reason for hiding this comment

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

👍

@dunglas thanks for implementing this nice feature and thanks for providing the docs.

@dunglas
Copy link
MemberAuthor

Thank you very much for all these improvements@javiereguiluz

@xabbuhxabbuh merged commitb192ab3 intosymfony:masterDec 14, 2016
xabbuh added a commit that referenced this pull requestDec 14, 2016
This PR was merged into the master branch.Discussion----------JSON authentication listener docsDocs forsymfony/symfony#18952.Commits-------b192ab3 Fixed a syntax issue16ae3f6 Reworded and simplified the article820f28e Fixed the name of the "username" property6d018f6 Fixed a syntax errorab5259b Removed a tip which is not too relevant for the articled2dd895 Fixed the JSON format (this time for real)6ff24da Fixed the JSON format0961128 Show the simple example first and then explain the complex use case68bd9a5 JSON authentication listener docs
xabbuh added a commit that referenced this pull requestDec 14, 2016
@xabbuh
Copy link
Member

Thank you Kevin. I have merged your PR and made some minor tweaks inaf1fb6b. Let me know if you disagree with any of them.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@javiereguiluzjaviereguiluzjaviereguiluz approved these changes

+1 more reviewer

@ogizanagiogizanagiogizanagi left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

3.3

Development

Successfully merging this pull request may close these issues.

5 participants

@dunglas@javiereguiluz@xabbuh@ogizanagi@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp