<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.fr.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>8 Nov 2022 17:17:02 Z</lastBuildDate><pubDate>20 Dec 2017 11:48:41 Z</pubDate><description>Bonjour,&#13;
&#13;
Nous développons des services REST en java. Ceux-ci sont sécurisés à l'aide de OAuth2.&#13;
Nous souhaitons utiliser Windev côté client afin de développer nos IHM(s).&#13;
Conformément à OAuth2, nous pouvons utiliser la méthode "Autorisation avec les identifiants du propriétaire de la ressource : Resource Owner Password Credentials Grant" car le serveur d’autorisation et le client (windev) sont développés par notre société donc la même entité.&#13;
&#13;
Nous avons fait des tests avec Windev afin de récupérer le token mais rien ne marche ! &#13;
[code:wl]&#13;
Oauth2Params est un OAuth2Paramètres&#13;
Oauth2Params..ClientID = "windev-client"&#13;
Oauth2Params..ClientSecret="password"&#13;
Oauth2Params..URLToken = "https://localhost:9191/uaa/oauth/token"&#13;
Oauth2Params..Scope ="read"&#13;
// grant_type ?????????????&#13;
monToken est un AuthToken = AuthIdentifie(Oauth2Params) &#13;
Trace("Token :  " + monToken)&#13;
[/code] &#13;
et d'autres tests infructueux !&#13;
&#13;
La fonction AuthIdentifie essaie d'ouvrir une fenêtre d’identification de l’utilisateur conformément au protocole OAuth 2.0 (cf doc) : attente permanente ! . &#13;
Ce n'est pas le comportement que nous souhaitons.  &#13;
Comment lui préciser d'utiliser le grant_type=password mais de lui fournir également le username/password de l'utilisateur (Resource Owner) qui seront récupérés par notre propre fenêtre de login windev?&#13;
&#13;
Ce type d'autorisation est prévue dans la spécification OAuth2. Cela fonctionne parfaitement avec un client java ou un client web mais qu'en est-il en Windev ?  &#13;
&#13;
Merci pour vos réponses car nos futurs développement sont conditionnés par le fait que cette fonctionnalité soit prise en charge par windev.</description><ttl>30</ttl><generator>WEBDEV</generator><language>fr_FR</language><link>https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword/read.awp</link><title>OAuth2 grant_type=password</title><managingEditor>moderateur@pcsoft.fr (Le modérateur)</managingEditor><webMaster>webmaster@pcsoft.fr (Le Webmaster)</webMaster><item><author>acuvelier</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword-260750/read.awp</comments><pubDate>8 Nov 2022 17:17:02 Z</pubDate><description>Bonjour,&#13;
&#13;
Avez vous eu des infos sur le sujet?&#13;
Je suis dans la même situation.&#13;
Récupération de mail par IMAP en mode service…</description><guid isPermaLink="true">https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword-260750/read.awp</guid><link>https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword-260750/read.awp</link><source url="https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword/read.awp">OAuth2 grant_type=password</source><title>Re: OAuth2 grant_type=password</title></item><item><author>LM Concept</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword-230560/read.awp</comments><pubDate>3 Jun 2019 17:09:22 Z</pubDate><description>Oui, je pense aussi.&#13;
Sur le site qui me me concerne ces identifiants sont obligatoires.&#13;
C'est un site sécurisé et ne je peux p…</description><guid isPermaLink="true">https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword-230560/read.awp</guid><link>https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword-230560/read.awp</link><source url="https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword/read.awp">OAuth2 grant_type=password</source><title>Re: OAuth2 grant_type=password</title></item><item><author>ablanc</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword-230559/read.awp</comments><pubDate>3 Jun 2019 16:43:56 Z</pubDate><description>J'ai testé avec ces lignes en plus ou en moins et je récupère bien le jeton dans les deux cas, comme si elles ne servaient à rie…</description><guid isPermaLink="true">https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword-230559/read.awp</guid><link>https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword-230559/read.awp</link><source url="https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword/read.awp">OAuth2 grant_type=password</source><title>Re: OAuth2 grant_type=password</title></item><item><author>LM Concept</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword-230505/read.awp</comments><pubDate>30 May 2019 10:10:41 Z</pubDate><description>Bonjour,&#13;
Merci pour cette réponse, je pense que l'on approche mais on y est pas encore ;(  .. car chez moi cela ne fonctionne t…</description><guid isPermaLink="true">https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword-230505/read.awp</guid><link>https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword-230505/read.awp</link><source url="https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword/read.awp">OAuth2 grant_type=password</source><title>Re: OAuth2 grant_type=password</title></item><item><author>ablanc</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword-230501/read.awp</comments><pubDate>29 May 2019 18:10:33 Z</pubDate><description>Comme ça c'est bon chez moi :&#13;
&#13;
[code:wl]&#13;
sClientID est une chaîne = "xxxx"&#13;
sClientSecret est une chaîne = "yyyy"&#13;
&#13;
httpReq …</description><guid isPermaLink="true">https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword-230501/read.awp</guid><link>https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword-230501/read.awp</link><source url="https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword/read.awp">OAuth2 grant_type=password</source><title>Re: OAuth2 grant_type=password</title></item><item><author>LM Concept</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword-229800/read.awp</comments><pubDate>29 Apr 2019 10:41:20 Z</pubDate><description>Bonjour,&#13;
J'ai essayé cette solution mais cela ne fonctionne pas, fenetre qui s'ouvre "En attente de l'authetification" ...&#13;
[co…</description><guid isPermaLink="true">https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword-229800/read.awp</guid><link>https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword-229800/read.awp</link><source url="https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword/read.awp">OAuth2 grant_type=password</source><title>Re: OAuth2 grant_type=password</title></item><item><author>Greg</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword-223467/read.awp</comments><pubDate>22 Jan 2019 13:08:48 Z</pubDate><description>Même soucis donc je suis preneur également si quelqu'un a une solution</description><guid isPermaLink="true">https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword-223467/read.awp</guid><link>https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword-223467/read.awp</link><source url="https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword/read.awp">OAuth2 grant_type=password</source><title>Re: OAuth2 grant_type=password</title></item><item><author>cyril</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword-222858/read.awp</comments><pubDate>21 Dec 2018 09:48:51 Z</pubDate><description>Bonjour,&#13;
&#13;
Avez-vous obtenu une réponse à votre besoin ?&#13;
&#13;
Merci,&#13;
Cyril</description><guid isPermaLink="true">https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword-222858/read.awp</guid><link>https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword-222858/read.awp</link><source url="https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword/read.awp">OAuth2 grant_type=password</source><title>Re: OAuth2 grant_type=password</title></item><item><author>cyril</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword-221113/read.awp</comments><pubDate>15 Oct 2018 12:07:41 Z</pubDate><description>Je ne sais pas si vous avez eu la réponse à votre question mais j'ai le même besoin...</description><guid isPermaLink="true">https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword-221113/read.awp</guid><link>https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword-221113/read.awp</link><source url="https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/212989-oauth2-granttypepassword/read.awp">OAuth2 grant_type=password</source><title>Re: OAuth2 grant_type=password</title></item></channel></rss>
