# Scripting the Editor using the WebBrowser Widget and perform oAuth2

**URL:** <https://forums.unrealengine.com/t/scripting-the-editor-using-the-webbrowser-widget-and-perform-oauth2/455818>\
**Category:** Pipeline & Plugins\
**Tags:** webbrowser, buildcs, unreal-engine, editor, question, CPP\
**Created:** [September 23, 2019, 7:47am UTC](https://forums.unrealengine.com/t/scripting-the-editor-using-the-webbrowser-widget-and-perform-oauth2/455818 "2019-09-23T07:47:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johannes\_Knippel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Johannes\_Knippel](https://forums.unrealengine.com/u/Johannes_Knippel)\
**Post date:** [September 23, 2019, 7:47am UTC](https://forums.unrealengine.com/t/scripting-the-editor-using-the-webbrowser-widget-and-perform-oauth2/455818/1 "2019-09-23T07:47:44Z")

</div>

Hello together,

I am creating an Editor Widget using C++. In this window I want to perform an oAuth2 login process.

For now I am trying to use the Editors WebBrowser Plugin to have some kind of pop up window in which I would redirect to the login service.  
I can’t figure out why the engine throws link errors though I included all header files and the Module “WebBrowser” into my build.cs file.

Here you can see my Slate widget. When I try to create a new SWebBrowser the link error comes up:

 ![288156-oauth2-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/3/0/b307e36a86bd4f27cdeb4e51d2dd84b0989d9359.png)

My build.cs file:

 ![288157-buildcsfile.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/6/e/16e8580dca0b80cc28aee28c9baf3d745bc1271b.png)

Anyone having an idea why the link error still comes up?  
And do you guys maybe have an Idea on how to start doing an oAuth2? Should I use an http listener for that and the OS WebBrowser or should I better use the Engine and it’s WebBrowser-Plugin?

Any help apprecciated!

Best,  
Johannes

---

<div class="post-metadata">

**Author:** ![Johannes\_Knippel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Johannes\_Knippel](https://forums.unrealengine.com/u/Johannes_Knippel)\
**Post date:** [September 23, 2019, 1:47pm UTC](https://forums.unrealengine.com/t/scripting-the-editor-using-the-webbrowser-widget-and-perform-oauth2/455818/2 "2019-09-23T13:47:50Z")

</div>

EDIT:

Found the issue concerning the compiler error:

The Plugin I am writing obviously depends on another plugin, the WebBrowserWidget. Therefore this dependency needs to be marked in the .uplugin file following the same syntax as in the .uproject file:

![288166-uplugin-file.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/3/b/b3b70528517724860c2ac665aea95f1dd25e13a1.png)

Now I’ll try to manage the oAuth2 Process…

 ![288167-widget-including-webbrowser.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/1/6c10bda645cde70d3b7f847348dad48996954aee.png)

---

<div class="post-metadata">

**Author:** ![ganbaa\_elmer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ganbaa_elmer/32/476547_2.png) [@ganbaa\_elmer](https://forums.unrealengine.com/u/ganbaa_elmer)\
**Post date:** [March 21, 2022, 8:50am UTC](https://forums.unrealengine.com/t/scripting-the-editor-using-the-webbrowser-widget-and-perform-oauth2/455818/3 "2022-03-21T08:50:00Z")

</div>

did you finish your project?  
did you convert your google oauth code to plugin?
