Skip to content
/ OAuth2OOo Public template
forked from prrvchr/OAuth2OOo

OAuth2 protocol for LibreOffice / OpenOffice

License

Notifications You must be signed in to change notification settings

GMoney0305/OAuth2OOo

 
 

Repository files navigation

OAuth2OOo v.0.0.3

Uno OAuth2.0 API for LibreOffice / OpenOffice.

OAuth2OOo Wizard Page1 screenshot

OAuth2OOo Wizard Page2 screenshot

OAuth2OOo Wizard Page3 screenshot

The OAuth2.0 protocol allows the connection to resource servers, after acceptance of the connection authorization, by exchange of tokens.

The revocation takes place in the management of the applications associated with your account.

No more password is stored in LibreOffice.

Use:

Create OAuth2 service:

service = context.ServiceManager.createInstanceWithContext("com.gmail.prrvchr.extensions.OAuth2OOo.OAuth2Service", context)

Optional (give a username and a remote resource url):

service.UserName = your_user_account

service.ResourceUrl = your_registered_url

Get the access token:

token = service.getToken('Bearer %s')

Has been tested with:

  • LibreOffice 6.0.2.1 x86_64 - Ubuntu 17.10 - LxQt 0.11.1

  • OpenOffice 4.1.5 x86_64 - Ubuntu 17.10 - LxQt 0.11.1

I encourage you in case of problem to create an issue I will try to solve it :-)

About

OAuth2 protocol for LibreOffice / OpenOffice

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.8%
  • Other 0.2%