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

Error when accessing known API connection. #124

Open
matself opened this issue Feb 12, 2022 · 1 comment
Open

Error when accessing known API connection. #124

matself opened this issue Feb 12, 2022 · 1 comment

Comments

@matself
Copy link

matself commented Feb 12, 2022

HI!
This seems to be a perfect plugin for QGIS users in Sweden. The Swedish NLS are shifting their access to API in favor of downloads and wms.
I have a working QGIS API connection to the Swedish NLS geodata storage. I have all credentials and can access the API as a standard WFS/OGC API connection within QGIS. However, trying the same access information and my existing OAuth2 auth configuration in the qgis-stac-plugin, I get the errors below. Where can I put in the header they are asking for?
NOTE: The sample API connections provided with the plugin are working, and I can add assets and stuff. The problem seems to be in is in the authorisation part.

2022-02-12T08:59:51     INFO    Testing connection...
2022-02-12T08:59:51     CRITICAL    Connection is not a valid STAC API
2022-02-12T08:59:59     INFO    Getting API conformance classes...
2022-02-12T08:59:59     WARNING    Problem in fetching content for https://api.lantmateriet.se/distribution/geodatakatalog/sokning/v1/detaljplan/v2.Error details, 900902Missing CredentialsRequired OAuth credentials not provided. Make sure your API invocation call has a header: 'Authorization : Bearer ACCESS_TOKEN'
2022-02-12T09:00:13     INFO    Fetching collections...
2022-02-12T09:00:13     CRITICAL    Problem in fetching content for https://api.lantmateriet.se/distribution/geodatakatalog/sokning/v1/detaljplan/v2.Error details, 900902Missing CredentialsRequired OAuth credentials not provided. Make sure your API invocation call has a header: 'Authorization : Bearer ACCESS_TOKEN'
@PacoDu
Copy link

PacoDu commented May 23, 2022

Hi, I've the same issue, the plugin is not working with STAC compliant endpoints that require authentication (OAuth2). The authentication configuration is working with WMTS plugin.
It looks like the STAC plugin is not handling authentication before querying the STAC endpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants