Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oauth2 authentication protocol does not honors the defined port number in redirect URL in QGIS 3.22.1 (win10/ubuntu20.04) #46354

Closed
2 tasks done
Bastiaandupon opened this issue Dec 3, 2021 · 2 comments
Labels
Authentication Related to the QGIS Authentication subsystem or user/password handling Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers Regression Something which used to work, but doesn't anymore

Comments

@Bastiaandupon
Copy link

What is the bug or the crash?

When i configure the Oauth2 authentication panel. Its seems to redirect with the wrong port number like http://127.0.0.1:0 instead of http://127.0.0.1:7070
This issue does not occur on my test machine Qgis 3.16.14 (win10)

Screenshot-20211203143744-1218x824

Screenshot-20211203143941-1165x449

Steps to reproduce the issue

  1. make a wfs layer: https://api.data.amsterdam.nl/v1/wfs/leidingeninfrastructuur/
    Screenshot-20211203143831-569x639
  2. configure the Oauth2 authentication panel with these urls: (see screenshot)
    https://iam.amsterdam.nl/auth/realms/datapunt-ad/protocol/openid-connect/auth
    https://iam.amsterdam.nl/auth/realms/datapunt-ad/protocol/openid-connect/token
  3. when trying to connect, you get a redirect url error...

Versions

<style type="text/css"> p, li { white-space: pre-wrap; } </style>
QGIS version 3.22.1-Białowieża QGIS code revision 663dcf8
Qt version 5.12.8
Python version 3.8.10
GDAL/OGR version 3.3.2
PROJ version 7.2.1
EPSG Registry database version v10.008 (2020-12-16)
GEOS version 3.9.1-CAPI-1.14.2
SQLite version 3.31.1
PDAL version 2.2.0
PostgreSQL client version 12.9 (Ubuntu 12.9-0ubuntu0.20.04.1)
SpatiaLite version 5.0.0
QWT version 6.1.4
QScintilla2 version 2.11.2
OS version Ubuntu 20.04.3 LTS
       
Active Python plugins
MemoryLayerSaver 4.0.4
pdokbaggeocoder 0.6.6
qgis-maptiler-plugin 2.0.0
DataPlotly 3.8.1
BoundingBox 2.1
CityJSON-loader 0.7.2
mapswipetool_plugin 1.2
db-style-manager 0.8
monokai 1.0
processing_r 3.1.0
nominatim_locator_filter 0.2.4
pdokservicesplugin 3.7.2
grassprovider 2.12.99
db_manager 0.1.20
MetaSearch 0.3.5
processing 2.12.99

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

  • I tried with a new QGIS profile

Additional context

No response

@Bastiaandupon Bastiaandupon added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Dec 3, 2021
@gioman gioman added Authentication Related to the QGIS Authentication subsystem or user/password handling Regression Something which used to work, but doesn't anymore labels Dec 3, 2021
@elpaso
Copy link
Contributor

elpaso commented Feb 7, 2022

Cannot reproduce on current master/linux.

Can you try a more recent version of QGIS or a nightly?

immagine

@elpaso elpaso added the Feedback Waiting on the submitter for answers label Feb 7, 2022
@Bastiaandupon
Copy link
Author

@elpaso Yes I have tried, the bug doesn't exists anymore! I have noticed there was a lot of work going on the authentication protocols upstream. So you can close this bug now.

@gioman gioman closed this as completed Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Authentication Related to the QGIS Authentication subsystem or user/password handling Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers Regression Something which used to work, but doesn't anymore
Projects
None yet
Development

No branches or pull requests

3 participants