Oauth2 Authentication Issues Windows IIS

What version of PHP are you currently running?

I will keep this window installation to do problem-solving and install WSL with Docker to get the client up and running which is still the priority.

Thank you for all you feed back

7.4.30

PHP 7.4.30 (cli) (built: Jun 7 2022 15:36:03) ( NTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.30, Copyright (c), by Zend Technologies

1 Like

That’s the correct PHP version,
So I’ve nothing else useful to add :man_shrugging:

I updated .NET Framework 3.5, 4.7.2 and 4.8

now FarmOs generate the oauth2 token every time I run my python script

Screenshot 2022-10-05 192721

but still validate_token_parameters
raise MissingTokenError(description=“Missing access token parameter.”)
oauthlib.oauth2.rfc6749.errors.MissingTokenError: (missing_token) Missing access token parameter.

1 Like

It’s still saying invalid keys?
I wonder if it would be worth generating new ones from the command line of a Linux machine and copying them back over to the Windows machine.

ok

Are now connected

Fix installed older version of OpenSSL (Win64 OpenSSL v1.1.1L) Win32/Win64 OpenSSL Installer for Windows - Shining Light Productions
Step-By-Step Procedure To Install OpenSSL On The Windows Platform - The Sec Master

Reading: DeveloperForce

Just now some script errors to sort out FarmOs V1 → V2 But connection with token work now 100%

3 Likes

Well done :tada:

2 Likes

hi

I get a requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://geosrv4/web/api/taxonomy_term/plant_type?filter[crop_family.entity.name]=corn&filter[name]=big

I fix the path /web/ it showed info in the browser when using the URL https://geosrv4/web/api/taxonomy_term/plant_type but then it stop now just

Screenshot 2022-10-05 225853

Screenshot 2022-10-05 225918

Screenshot 2022-10-05 225938

Screenshot 2022-10-05 230132

is there something I have missed?

OK
just need to fix the path in the client2 script
Screenshot 2022-10-05 230132

keep the JSON:API Extras path prefix API
Screenshot 2022-10-05 232753

Screenshot 2022-10-05 232818

is now working 100%

Thank you all for the help.

1 Like

@mstena I think this thread could become important for anyone else hosting on Windows platform in future.
Perhaps adding some new platform tags could help filter searches for issues like this?
Windows Hosting
Linux Hosting
MacOS Hosting
Other Hosting
Docker
etc?

Or if not in favor, maybe we just change the thread title? to something like Oauth2 Authentication Issues Windows IIS and possibly move to hosting category?

Or Simpler tags like
Windows
Linux
MacOS
Docker
with the thread moved to hosting, then those tags could be used for both hosting and client platforms?

2 Likes

Great ideas @Farmer-Ed! I renamed the thread and moved it to the “Hosting farmOS” category. I like the tags ideas too! Maybe we talk about that on the monthly next week if we have time?

1 Like