# Implementing OAuth2 for MacOS app

**URL:** <https://devforum.zoom.us/t/implementing-oauth2-for-macos-app/80247>\
**Category:** Meetings\
**Created:** [December 13, 2022, 10:40pm UTC](https://devforum.zoom.us/t/implementing-oauth2-for-macos-app/80247 "2022-12-13T22:40:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![blain](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@blain](https://devforum.zoom.us/u/blain)\
**Post date:** [December 13, 2022, 10:40pm UTC](https://devforum.zoom.us/t/implementing-oauth2-for-macos-app/80247/1 "2022-12-13T22:40:05Z")

</div>

**Description**  
Hi,

I’m trying to implement OAuth2 for a MacOS application. I have Universal links working with an HTTPS redirect. I’ve attempted to use WKWebView, but the OAuth response isn’t redirected to my application. And ASWebAuthenticationSession causes my app to crash when Chrome is my default browser, and doesn’t redirect the OAuth response to my app when either Safari or Firefox are set as defaujlts.

What is the best/recommended way to implement OAuth2 for a MacOS application?

Environment details:  
OS: Ventura 13.0.1  
IDE: XCode 14.1

---

<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:** [December 14, 2022, 6:57pm UTC](https://devforum.zoom.us/t/implementing-oauth2-for-macos-app/80247/2 "2022-12-14T18:57:06Z")

</div>

Answered here:

> [@No replies to my post - please help](https://devforum.zoom.us/t/no-replies-to-my-post-please-help/80246/2):
>
> Hi @blain , Is it possible to allow users to start a zoom meeting by launching the stand-alone zoom app from within our app via REST API calls? Yes, absolutely. Using an [OAuth app](https://marketplace.zoom.us/docs/guides/build/oauth-app/) with the meeting.write scope, your app can create and read meeting information for installed users. The [Meeting API](https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/meetingCreate) will provide a start URL (for the host) and join URL for meeting participants. Clicking/launching this URL will route the user to a [zoom.us](http://zoom.us) domain and then launch the Zoom application on their device…

---

<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:** [December 14, 2022, 6:57pm UTC](https://devforum.zoom.us/t/implementing-oauth2-for-macos-app/80247/3 "2022-12-14T18:57:09Z")

</div>


