jbreckmckye / electron-auth0-login

Helper widget for Auth0 authentication in Electron desktop apps
MIT License
28 stars 19 forks source link

Access Denied using Machine to machine app from auth0 #2

Closed Luis92pe closed 5 years ago

Luis92pe commented 5 years ago

I have the following error: when I create an app in auth0 of type 'machine to machine' the method getToken I return a 401 with access denied. On the other hand, if I use a 'native' type app if it works for me, why is this?

jbreckmckye commented 5 years ago

If I recall correctly, 'machine to machine' is intended for backend services speaking to other backend services. Think of a Node/Express app that services a frontend SPA by calling internal Java microservices - that would be a machine-to-machine transaction. M2M apps have quite a different authentication flow.

You can find a listing of application types and their intended use-cases here.

I will add a line to the README telling users to set up their apps as the 'native' type.

Luis92pe commented 5 years ago

mm ok ok, I understand. Thanks for the clarification.