# Android authentication based on PKCE

**URL:** <https://devforum.zoom.us/t/android-authentication-based-on-pkce/81573>\
**Category:** Authentication\
**Created:** [January 17, 2023, 1:42pm UTC](https://devforum.zoom.us/t/android-authentication-based-on-pkce/81573 "2023-01-17T13:42:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![asif.naxtre](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/asif.naxtre/32/44435_2.png) [@asif.naxtre](https://devforum.zoom.us/u/asif.naxtre)\
**Post date:** [January 17, 2023, 1:42pm UTC](https://devforum.zoom.us/t/android-authentication-based-on-pkce/81573/1 "2023-01-17T13:42:31Z")

</div>

I basically need guidance to implement the below described,

[PKCE OAuth and the Meeting SDK for Android (zoom.us)](https://marketplace.zoom.us/docs/sdk/native-sdks/android/build-an-app/pkce/)

In the above page in the section [PKCE OAuth and the Meeting SDK for Android (zoom.us)](https://marketplace.zoom.us/docs/sdk/native-sdks/android/build-an-app/pkce/)

I am not sure what is ‘OAUTH\_URL’, and ‘URL\_SCHEME’, Can anyone please help me to understand what values to put for these.

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [January 17, 2023, 6:57pm UTC](https://devforum.zoom.us/t/android-authentication-based-on-pkce/81573/2 "2023-01-17T18:57:47Z")

</div>

Welcome to the Zoom Developer Forum- I am happy to help. Below I’ve linked the resources for what is ‘OAUTH\_URL’, and ‘URL\_SCHEME’ are reference. The OAUTH\_URL is the OAuth authorization URL and URL\_SCHEME is the redirect URL. Please take a look and let me know if you have any questions.

Reference Resource :

### Using a server with or without PKCE

[https://marketplace.zoom.us/docs/guides/auth/oauth/#using-a-server-with-or-without-pkce](https://marketplace.zoom.us/docs/guides/auth/oauth/#using-a-server-with-or-without-pkce)

### Redirect URL for OAuth

[https://marketplace.zoom.us/docs/guides/build/oauth-app/#redirect-url-for-oauth](https://marketplace.zoom.us/docs/guides/build/oauth-app/#redirect-url-for-oauth)

**OAUTH\_URL :**

```auto
https://zoom.us/oauth/authorize?response_type=code&client_id=7lstjK9NTyett_oeXtFiEQ&redirect_uri=https://example.com

```

### [Send request to authentication server](https://marketplace.zoom.us/docs/sdk/native-sdks/android/build-an-app/pkce/#send-request-to-authentication-server)

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/d/6d54bb63bbd35048f775341917e4a8859cf66209.png)

## Redirect URL for OAUTH

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/e/b/eb4245cd2a0139d4ee1fcc2bd96999389225460d.png)

## URL\_SCHEME

### [Handle the response](https://marketplace.zoom.us/docs/sdk/native-sdks/android/build-an-app/pkce/#handle-the-response)

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/8/b/8bb2469c0d9a7da9d1895da7bdead998b5d365d0.png)

---

<div class="post-metadata">

**Author:** ![asif.naxtre](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/asif.naxtre/32/44435_2.png) [@asif.naxtre](https://devforum.zoom.us/u/asif.naxtre)\
**Post date:** [January 18, 2023, 10:14am UTC](https://devforum.zoom.us/t/android-authentication-based-on-pkce/81573/3 "2023-01-18T10:14:46Z")

</div>

Thank you for explaining this to me, however can you help me to understand how I can do zoom login after I successfully do facebook login or google sign, how I can use the token from their to get the zoom access token?

---

<div class="post-metadata">

**Author:** ![asif.naxtre](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/asif.naxtre/32/44435_2.png) [@asif.naxtre](https://devforum.zoom.us/u/asif.naxtre)\
**Post date:** [January 20, 2023, 7:40am UTC](https://devforum.zoom.us/t/android-authentication-based-on-pkce/81573/4 "2023-01-20T07:40:49Z")

</div>

Can you please tell me how I will use the access token or the ZAK to authenticate the zoom android SDK to join or start a meeting,

StartMeetingOptions  
StartMeetingParamsWithoutLogin  
meetingService.startMeetingWithParams(this, startMeetingParams, startMeetingOptions)

I am trying the above approach however I am getting an error in the ‘onMeetingStatusChanged’ callback error code 100 and the internal error code is 16

@donte.zoom

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [January 20, 2023, 4:08pm UTC](https://devforum.zoom.us/t/android-authentication-based-on-pkce/81573/5 "2023-01-20T16:08:48Z")

</div>

Hello, @asif.naxtre,

I hope you’re doing well. I noticed that you created a new topic; to keep everything in one central location, I will respond here and close the other [post](https://devforum.zoom.us/t/start-meeting-as-host-android-sdk/81786). To start a meeting as a host, you’ll need to use the Zoom SDK and the ZAK (Zoom API Key) which is used to obtain the user’s authentication details to start a meeting. I’ve provided a link to our help documentation on this topic for reference.

[https://marketplace.zoom.us/docs/sdk/native-sdks/android/build-an-app/pkce/#start-a-meeting-with-zak](https://marketplace.zoom.us/docs/sdk/native-sdks/android/build-an-app/pkce/#start-a-meeting-with-zak)

Please let me know if this helps or if you have any further questions related to a specific issue you’re trying to resolve.
