Autenticação usando oAuth2 - Aplicação DESKTOP
Boa tarde...surgiu uma necessidade de fazer uma rotina de autenticação com os serviços do office 365. No ambiente WEB e com os pacotes do Mike Cooper, eu consegui fazer a autenticação e obter o token de acesso.
Mas é para ambiente WEB. Pesquisei no forum e notei que tem um componente da Chillkat e outro da starzen que comentaram no forum. Não estou conseguindo acessar o site da starzen nem o link de download. Sempre diz que esta fora...
Alguém teve estar demanda de autenticar usando oAuth mas através de aplicação windows ?
Grato,
Fabiano
Re: Autenticação usando oAuth2 - Aplicação DESKTOP
Olá Fabiano,
Embora eu não utilize nenhum dos componentes citados, escreva no Fórum em Inglês, para que o Sr. [COLOR=#333333]Michael Salzlechner,[/COLOR] possa auxiliá-lo ou tente contatar diretamente.
Ele assina no Fórum:
[COLOR=#333333]Michael Salzlechner[/COLOR]
[COLOR=#333333]StarZen Technologies, Inc[/COLOR]
[URL="http://www.starzen.com/"]http.://www.starzen.com[/URL]
Sobre: Chilkat, tente a página principal:
[URL="https://www.chilkatsoft.com/"]Chilkat API, SDK, Components, Libs for Windows, MacOS, Linux, iOS, Android, and more. (chilkatsoft.com)[/URL]
Se não conseguir eu comento, que vai ser um problema, porque o suporte deles deixa a desejar o que me fez desistir de usar um produto substituto, para o obsoleto Winprint1.
Att.,
Edgard L. Paneque
Re: Autenticação usando oAuth2 - Aplicação DESKTOP
I do have a thing that does this, but using my OAuth2 web component in an embedded web browser.
Mike
Re: Autenticação usando oAuth2 - Aplicação DESKTOP
[QUOTE=Mike Peat;378740]I do have a thing that does this, but using my OAuth2 web component in an embedded web browser.
Mike[/QUOTE]
Hi Mike... I got the cOAuth2.pkg package, your example, and everything worked great.
From your comment, inside the desktop application you can use cOauth2.pkg with the cComWebBrowser class. It's possible ?
Tks Mike...
Re: Autenticação usando oAuth2 - Aplicação DESKTOP
Fabiano
Yes, I got it to work in a cWebBrowser, but better these days would be use a [URL="https://docs.dataaccess.com/dataflexhelp/#t=mergedProjects%2FVDFClassRef%2FcWebView2Browser.htm&rhsearch=cWebView2browser&rhhlterm=cWebView2browser&rhsyns=%20"]cWebView2Browser[/URL].
I have this working somewhere if you are having trouble getting working.
Mike
Re: Autenticação usando oAuth2 - Aplicação DESKTOP
Mike...
Thank you...you've already given me some ideas here...
But, is it necessary to have the webapp server running the application? Do you have an example so I can start...
Re: Autenticação usando oAuth2 - Aplicação DESKTOP
Fabiano
No, you don't need a server: it is just a browser and a JavaScript component. Can't remember exactly how it works, but if you need me too I can go and look into it.
Mike
Re: Autenticação usando oAuth2 - Aplicação DESKTOP
Mike...
Thanks again...I'll analyze the cauth2.pkg routine and extract what I need from it... let's see if it works...
Re: Autenticação usando oAuth2 - Aplicação DESKTOP
Re: Autenticação usando oAuth2 - Aplicação DESKTOP
Obrigado Edgard,
Vou tentar com a questão do cOauth2.pkg...se não conseguir irei entrar em contato com o cara da starzen. Sobre o suporte da Chiikat, é uma pena, pois tem boas soluções...
Um grande abraço...