Highlighted

Token based Authentication for an external user

Avatar

Avatar

md40006326

Avatar

md40006326

md40006326

30-01-2018

Hi there,

I have a pretty common scenario for implementing security on the public site. Our client has legacy APIs which returns JWT tokens for authentication. They are expecting the following flow:

1. A form on public site should be submitted with username and pw;

2. The credentials needs to be encoded;

3. OSGi Servlet should process this request and call a RESTFul endpoint to authenticate the user;

4. On success the endpoint will return 200 and a JWT token;

I understand the flow and how token based authentication work in general, but I have not implemented it in AEM. Can someone please suggest a solution here? How should I write my code in AEM to handle this?

Any help is highly appreciated!

Regards,

/MD

Replies

Highlighted

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

30-01-2018

You need to write a custom Authentication Handler - see: Adobe CQ/Adobe AEM: How to Create Custom Authentication Handler in CQ