Bug report #17384

Authentication API broken missing documentation

Added by Bernhard Ströbl about 7 years ago. Updated over 6 years ago.

Status:Closed
Priority:High
Assignee:Alessandro Pasotti
Category:Authentication system
Affected QGIS version:master Regression?:Yes
Operating System:Ubuntu 16.04 (64 bit) Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:25281

Description

I cannot convince freshly compiled current master 1ffc3fd to save an authentication database.
Furthermore the Python access to QgsAuthManager via QgsAuthManager.instance() seems broken, too:
error is: type object 'QgsAuthManager' has no attribute 'instance'

History

#1 Updated by Giovanni Manghi about 7 years ago

  • Priority changed from Normal to High

#2 Updated by Alessandro Pasotti about 7 years ago

Nothing is broken: the API has changed, I'll complete the docs but for now: just do `QgsApplication.authManager()`

#3 Updated by Giovanni Manghi about 7 years ago

  • Status changed from Open to Feedback

#4 Updated by Bernhard Ströbl about 7 years ago

  • Priority changed from High to Normal

Allesandro, is QgsApplication.authManager() the recommended method for QGIS3?
But the Python problem is minor, the main problem is, that no auth-db is saved.

#5 Updated by Bernhard Ströbl about 7 years ago

  • Priority changed from Normal to High

#6 Updated by Alessandro Pasotti about 7 years ago

It's the only method: QgsAccessManager cannot be accesed directly anymore.

Can you please open a separate issue for the DB not saved and describe step-by-step how to reproduce it?

#7 Updated by Bernhard Ströbl about 7 years ago

seperate issue opened, see #17385

#8 Updated by Giovanni Manghi about 7 years ago

Can we close this?

#9 Updated by Bernhard Ströbl about 7 years ago

on my behalf we can but should keep in mind to add the info on the site listing api breaks (or do we need a new ticket for that?)

#10 Updated by Alessandro Pasotti about 7 years ago

please leave this open until I fix the documentation, I'll do it quickly, I promise :)

#11 Updated by Alessandro Pasotti about 7 years ago

  • Subject changed from Authentication broken to Authentication API broken missing documentation

Add information about QgsApplication.authManager() and that the instance has been removed

#12 Updated by Giovanni Manghi about 7 years ago

  • Status changed from Feedback to Open

#13 Updated by Alessandro Pasotti about 7 years ago

  • Resolution set to fixed/implemented

#14 Updated by Alessandro Pasotti about 7 years ago

  • Status changed from Open to Closed

#15 Updated by Jürgen Fischer over 6 years ago

  • Description updated (diff)

Also available in: Atom PDF