oAuth-Authentification for rest api

Hi there,

is there an oAuth/oAuth2 Authentication provider available? So that AdonisJS can secure a rest api via oAuth?

Or is JWT the correct way?

Bye, René

Hi @rbartholomay

Adonis does not have built in OAauth2 support. But it has JWT and you can build OAuth2 on top of JWT or try to integrate Passport.

It depends on your needs. If you have one client (browser / website) I would generally not bother with OAuth2.

But if you need to provide authentication for multiple clients (mobile apps, desktop native apps, multiple sites etc). Then implementing OAuth2 might pay off. It depends on your use-cases.

Ok, thanks!

I will try both, hopefully i get one of them running :slight_smile:

Bye, René

any news , coz for laravel & express there is passport and its usefull for graphQL and Oauths
@virk waiting your magic solution

Here is something that might be useful

1 Like