Eme Fibonacci Well-Known Member Licensed User Longtime User Jun 14, 2016 #1 How does authentication android work? After this: Code: Copy Sub Auth_SignedIn (User As FirebaseUser) Log("SignedIn: " & User.DisplayName) lblName.Text = "Hello: " & User.DisplayName End Sub The entire app is authenticated? authentication by session? The server is Responsible for checking if app is authenticated? B4J can do it? oAuth2 is the way? I have a lot to learn. Thank you for explanations.
How does authentication android work? After this: Code: Copy Sub Auth_SignedIn (User As FirebaseUser) Log("SignedIn: " & User.DisplayName) lblName.Text = "Hello: " & User.DisplayName End Sub The entire app is authenticated? authentication by session? The server is Responsible for checking if app is authenticated? B4J can do it? oAuth2 is the way? I have a lot to learn. Thank you for explanations.
Erel B4X founder Staff member Licensed User Longtime User Jun 14, 2016 #2 There is no server involved (other than Google servers). Eme Fibonacci said: The entire app is authenticated? authentication by session? The server is Responsible for checking if app is authenticated? B4J can do it? oAuth2 is the way? Click to expand... No. No. No. No. No. Authenticating a user means that your app knows who is the user. It knows his name and email address. Whether this information is important or not depend on your requirements. Upvote 0
There is no server involved (other than Google servers). Eme Fibonacci said: The entire app is authenticated? authentication by session? The server is Responsible for checking if app is authenticated? B4J can do it? oAuth2 is the way? Click to expand... No. No. No. No. No. Authenticating a user means that your app knows who is the user. It knows his name and email address. Whether this information is important or not depend on your requirements.
Eme Fibonacci Well-Known Member Licensed User Longtime User Jun 14, 2016 #3 Erel said: There is no server involved (other than Google servers). No. No. No. No. No. Authenticating a user means that your app knows who is the user. It knows his name and email address. Whether this information is important or not depend on your requirements. Click to expand... Ok, many "no". This means that really have a lot to learn. To begin to understand: consider this: Activity 1 authenticates. Activity 2 insert some data in some online database. How to prevent someone decompile the app and skip Activity 1 and use the insert methods on Activity 2 without having to go through authentication? Thank you. Upvote 0
Erel said: There is no server involved (other than Google servers). No. No. No. No. No. Authenticating a user means that your app knows who is the user. It knows his name and email address. Whether this information is important or not depend on your requirements. Click to expand... Ok, many "no". This means that really have a lot to learn. To begin to understand: consider this: Activity 1 authenticates. Activity 2 insert some data in some online database. How to prevent someone decompile the app and skip Activity 1 and use the insert methods on Activity 2 without having to go through authentication? Thank you.
Erel B4X founder Staff member Licensed User Longtime User Jun 14, 2016 #4 This is not the main use case for FirebaseAuth. It is however possible to use it for such system. Each user is assigned a unique Uid. You can see these uids in the Firebase console and you can access them with Firebase.Uid property. You can pass this id in each of the requests. On your server maintain a list of allowed ids and reject requests from non-authorozied users. Upvote 0
This is not the main use case for FirebaseAuth. It is however possible to use it for such system. Each user is assigned a unique Uid. You can see these uids in the Firebase console and you can access them with Firebase.Uid property. You can pass this id in each of the requests. On your server maintain a list of allowed ids and reject requests from non-authorozied users.