<@U04UQ68083H> can we signup on a native app throu...
# ory-copilot
f
@chilly-king-10285 can we signup on a native app through sso ?
c
A message from kapa.ai
Yes, you can implement social sign-in for native applications via OIDC and OAuth 2.0 using Ory. The process involves the following steps: 1. The user is presented with a login or registration screen that includes a social sign-in button. 2. The user clicks the social sign-in button. A browser window opens using ASWebAuthenticationSession on iOS or Custom Tabs on Android. 3. The user authenticates with the identity provider and grants the application access to profile information. 4. The user is redirected back to the application and is logged in. In native applications, you send a POST request to the Ory project URL to login. For example, login is a POST request to
https://{project.slug}.<http://projects.oryapis.com/self-service/login/api?flow=<id>|projects.oryapis.com/self-service/login/api?flow=<id>>
. The native application initializes a login or registration flow and receives the first part of the session token exchange code from the Ory Network. After the user performed the social sign-in, the user is redirected back to the native application via an iOS Universal Link or Android App Link. The native application then exchanges the session token exchange code for a session token. For more details, you can refer to the [Ory documentation](https://www.ory.sh/docs/kratos/social-signin/native-apps).