authentication for google appengine java

31 views
Skip to first unread message

Rajesh G

unread,
Apr 27, 2022, 9:41:42 AM4/27/22
to google-a...@googlegroups.com
Hello,
I have been using java app engine for few years now.

My app is using UserService for authentication in the servlets

Now, I am creating a new app.
I am exploring what options are available for authentication for use with java appengine.
I checked around firebase authentication.  But, did not understand the whole process.
There is a python example. I dont' know python.

Any examples of java appengine authentication using firebase or other auth techniques?

--
Support Team
Field Service Software on Google Cloud Platform and Mobile


Rajesh G

unread,
May 4, 2022, 12:12:14 AM5/4/22
to google-a...@googlegroups.com
Hello All,

Any examples on how to use firebase authentication with java appengine standard.  
Documentation did not help me much and dont' know how to put the pieces together in a java servlet environment.




Osvaldo Lopez Acuña

unread,
May 5, 2022, 11:11:13 AM5/5/22
to Google App Engine

Google offers multiple methods of authenticating your app's users in Cloud Platform applications. Each method has different purposes. Maybe this example can help you. In Firebase, when you see an Android example, it refers to a Java one. Also, at the end of the firebase home page you can find this example:

FirebaseAuth auth = FirebaseAuth.getInstance();

auth.signInWithEmailAndPassword(email, password)

    .addOnCompleteListener(new OnCompleteListener() {

        @Override

        public void onComplete(Task task) {

            if (task.isSuccessful()) {

                FirebaseUser user = task.getResult().getUser();

                String email = user.getEmail();

                // ...

            }

        }

    });

You can also look at this document that could be helpful.
Reply all
Reply to author
Forward
0 new messages