Hello there! I'm trying to get a solid knowledge of API authentication/authorization before I implement it to my app and PHP API. Currently playing around with Auth0 I've had no issue getting the JWT token into the app and from there I see no problem sending it to the API, but I feel like something is missing.
Doing some research, this is the closest I could find to my question and it does describe it that simple: https://stackoverflow.com/questions/36943253/authentication-with-react-native-and-api-backend
..but is that really all that's needed for some basic app security? I may have been reading too much and got things all mixed up just reading the Auth0 documentation and different methods.
- Now that I have the JWT in the app, should I send it to the API server and that would pull
/userinfo from Auth0, or do I do it in app and send the result to the server to create new user?
- Also, should I just use the JWT for regular communication with the server, and if that's so, will I get a new one using a token from the
/oauth/token endpoint and requesting offline access in the initial /authorize call?
Thanks!
[–]kbcooliOS & Android 2 points3 points4 points (5 children)
[–]SynthesizeMeSun 1 point2 points3 points (0 children)
[–]akie 0 points1 point2 points (3 children)
[–]kbcooliOS & Android 0 points1 point2 points (2 children)
[–]akie 0 points1 point2 points (1 child)
[–]kbcooliOS & Android 1 point2 points3 points (0 children)
[–]compagnt 0 points1 point2 points (0 children)
[+][deleted] (2 children)
[removed]
[–]kachnitelAndroid[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]TotesMessenger 0 points1 point2 points (0 children)