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

Add JWT support #187

Merged
merged 4 commits into from
Jul 7, 2015
Merged

Add JWT support #187

merged 4 commits into from
Jul 7, 2015

Conversation

leleuj
Copy link
Member

@leleuj leleuj commented Jul 5, 2015

generation + authentication

@leleuj
Copy link
Member Author

leleuj commented Jul 5, 2015

@miremond : we talked about it, I did it ;-)

* @author Jerome Leleu
* @since 1.8.0
*/
public class JwtGenerator<U extends UserProfile> {
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the purpose of this class? is it only for tests? If no, maybe we should parameterized the signature or encryption methods. Otherwise we can move it to the test directory

Copy link
Member Author

Choose a reason for hiding this comment

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

Good question! This class is meant to generate a JWT from an existing user profile. The typical use case is an application where the user can login with Facebook for example and then generates a token to access web services. This was inspired by this discussion: https://groups.google.com/forum/?fromgroups#!topic/pac4j-users/kJMw8vvZBJY

@miremond
Copy link
Contributor

miremond commented Jul 6, 2015

Congrats @leleuj ! I give you a kudo!
+1

leleuj added a commit that referenced this pull request Jul 7, 2015
@leleuj leleuj merged commit 408fa53 into pac4j:master Jul 7, 2015
@leleuj leleuj deleted the pac4j-154 branch July 16, 2015 13:22
papegaaij pushed a commit to topicusonderwijs/pac4j that referenced this pull request Jun 26, 2019
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.

2 participants