Auth0 Login Flow without user interaction

Hello - I am trying to get an access token (using Auth0) using java script which is need to hit an API via k6.

The access token is only enriched by using Autho0 Actions Login Flow.

My need is, without any user interaction, java script code should login to the application fetch the access token.

For info - M2M is not enabled.

I want to achieve it via Login Flow only… Can this be achieved by Java Script code via k6.

Hi there,

Thank you for reaching out to us!

We are trying to reply and provide some information to older posts, in case others find it useful as well.

Retrieving an access token without user interaction is possible through the use of the Client Credentials Flow. You can setup a Machine-to-Machine application ( M2M ) that runs in the background, which will authenticate and authorize the application instead of a user. In this case, a Client ID and Client Secret are required.

This was also previously mentioned in the following topic : Can we obtain Access Token for our API without any authentication happening before?

Hope that helped!
Gerald

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.