# How to use api login or register with social oauth2 like google

**URL:** <https://forum.keycloak.org/t/how-to-use-api-login-or-register-with-social-oauth2-like-google/29549>\
**Category:** Miscellanaeous\
**Created:** [February 7, 2025, 3:09am UTC](https://forum.keycloak.org/t/how-to-use-api-login-or-register-with-social-oauth2-like-google/29549 "2025-02-07T03:09:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mbonn](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/mbonn/32/5755_2.png) [@mbonn](https://forum.keycloak.org/u/mbonn)\
**Post date:** [February 7, 2025, 8:31am UTC](https://forum.keycloak.org/t/how-to-use-api-login-or-register-with-social-oauth2-like-google/29549/2 "2025-02-07T08:31:12Z")

</div>

Hello,  
This is a recurrent question, and the answer is always the same, see here for an example:

> [@User Registration and Login from Native Flutter screens](https://forum.keycloak.org/t/user-registration-and-login-from-native-flutter-screens/29249):
>
> I have a Mobile app build with Flutter for both Android and iOS which currently uses standard Oauth2 Registration Flow and Authorisation code grant flow for login by redirecting users to a browser webview for Keycloak UI screens Mobile app team now wants to use native Flutter screens for User registration and Login, Are there ways to expose Rest API from keycloak other that the Keycloaks Admin API (Exposing this API is not and option) for User Registration and Login(other than Password/Direct …

---

_[View the full topic](https://forum.keycloak.org/t/how-to-use-api-login-or-register-with-social-oauth2-like-google/29549)._
