Skip to content

Conversation

SeqLaz
Copy link
Member

@SeqLaz SeqLaz commented Apr 9, 2025

Listed on the available Global Variables:
image

Retrieving the @cloud_username
image

gounux added 10 commits March 26, 2025 15:35
Fetch a targeted QFC instance's auth providers and adapt UI
Store QgsAuthMethodConfig in settings and use it for each request

[WIP] Fetch QFC auth methods and use QgsAuthMethodConfig for connection to QFC

Use login signals and fetch QFC user info on oauth2 login

Target `auth/user/` endpoint to get current user's informations

Add csrf cookie to necessary HTTP network request

Add auth provider_id header to network requests

Rename request auth method

Dynamically generate sso provider login buttons

Fix HTTP header types and fetch auth providers on init

Use QTimer for fetching server auth methods and not spam the server

Rehide server url combobox on login dialog init

Use "Sign In" rather than "Login"
@SeqLaz SeqLaz requested review from gounux, m-kuhn and suricactus April 9, 2025 19:20
@m-kuhn
Copy link
Member

m-kuhn commented Apr 10, 2025

@SeqLaz thanks

  • does this work when you restart qgis with auto login enabled?
  • does this remove the variables if you log out?

@SeqLaz
Copy link
Member Author

SeqLaz commented Apr 10, 2025

@SeqLaz thanks

* does this work when you restart qgis with auto login enabled?
* does this remove the variables if you log out?

Yes, it is preserved and is removed until the logout button is pressed.

@SeqLaz SeqLaz changed the title [QFieldSync] When logging to a QFC account add the Global variable @Cloud_username available [WIP][QFieldSync] When logging to a QFC account add the Global variable @Cloud_username available Apr 10, 2025
@SeqLaz SeqLaz marked this pull request as draft April 10, 2025 06:31
@SeqLaz SeqLaz force-pushed the QF-5662_when_logging_to_qfc_add_the_global_variable_@cloud_username branch from 5eae62d to f0cbfd0 Compare April 10, 2025 07:09
@SeqLaz
Copy link
Member Author

SeqLaz commented Apr 10, 2025

Hey @suricactus @gounux by using the method .get_username() is working correctly on adding the variable @cloud_username!

@SeqLaz SeqLaz marked this pull request as ready for review April 10, 2025 07:11
@SeqLaz SeqLaz requested a review from gounux April 10, 2025 07:12
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

Successfully merging this pull request may close these issues.

4 participants