View Full Version : Autenticação usando oAuth2 - Aplicação DESKTOP
Fabiano
6-Feb-2023, 02:43 PM
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
Edgard
7-Feb-2023, 04:25 AM
Olá Fabiano,
Embora eu não utilize nenhum dos componentes citados, escreva no Fórum em Inglês, para que o Sr. Michael Salzlechner, possa auxiliá-lo ou tente contatar diretamente.
Ele assina no Fórum:
Michael Salzlechner
StarZen Technologies, Inc
http.://www.starzen.com (http://www.starzen.com/)
Sobre: Chilkat, tente a página principal:
Chilkat API, SDK, Components, Libs for Windows, MacOS, Linux, iOS, Android, and more. (chilkatsoft.com) (https://www.chilkatsoft.com/)
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
Mike Peat
7-Feb-2023, 05:06 AM
I do have a thing that does this, but using my OAuth2 web component in an embedded web browser.
Mike
Fabiano
7-Feb-2023, 05:53 AM
I do have a thing that does this, but using my OAuth2 web component in an embedded web browser.
Mike
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...
Mike Peat
7-Feb-2023, 07:07 AM
Fabiano
Yes, I got it to work in a cWebBrowser, but better these days would be use a cWebView2Browser (https://docs.dataaccess.com/dataflexhelp/#t=mergedProjects%2FVDFClassRef%2FcWebView2Browser .htm&rhsearch=cWebView2browser&rhhlterm=cWebView2browser&rhsyns=%20).
I have this working somewhere if you are having trouble getting working.
Mike
Fabiano
7-Feb-2023, 07:34 AM
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...
Mike Peat
7-Feb-2023, 08:51 AM
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
Fabiano
7-Feb-2023, 10:53 AM
Mike...
Thanks again...I'll analyze the cauth2.pkg routine and extract what I need from it... let's see if it works...
Mike Peat
7-Feb-2023, 12:42 PM
Good luck! :)
Fabiano
7-Feb-2023, 03:37 PM
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...
Powered by vBulletin® Version 4.2.5 Copyright © 2023 vBulletin Solutions Inc. All rights reserved.