Hi All,
I have a html page that starting by an Authentification base on Google Oauth ( gem devise)
With Chrone, IE or Safari on PC and Mac, my login work.
When I use Webdialog inside Sketchup PRO 2016,2017,2018 on Mac and PC, authentification, work .
but if I use Htmldialog on mc and pc on Sketchup Pro 2018, redirection of Oauth doesn’t work.
1 - the landing page is Display
2 - after clicking on login , a withe page is display without any information:
Normaly this login page should be display
Console of HTMLDIALOG Doesn’t show error ?
It’s like redirection and turbolink doesn’t work with HTMLdialog.
Find below the code of the webdialog that works
$wcui = UI::WebDialog.new(title, true ,title, 950, 850, 10, 10, true)
$wcui.navigation_buttons_enabled = true
url = @options[:serverUrl]
$wcui.set_url url
$wcui.allow_actions_from_host(@options[:serverUrl])
$wcui.show
@string_from_wcui =""
@current_index = 0
The code of the HTML DIALOG That doesn’t work
url = @options[:serverUrl]
$wcui = UI::HtmlDialog.new(
{
:dialog_title => title,
:preferences_key => "com.sample.plugin",
:scrollable => true,
:resizable => true,
:width => 950,
:height => 850,
:left => 10,
:top => 10,
:min_width => 50,
:min_height => 50,
:max_width =>1000,
:max_height => 1000,
:style => UI::HtmlDialog::STYLE_WINDOW
})
$wcui.set_url url
$wcui.show
Thanks for your help.