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

[Bug]: can't add oauth2 client #35045

Closed
7 of 9 tasks
szampardi opened this issue Nov 9, 2022 · 8 comments · Fixed by #35186
Closed
7 of 9 tasks

[Bug]: can't add oauth2 client #35045

szampardi opened this issue Nov 9, 2022 · 8 comments · Fixed by #35186
Assignees
Labels

Comments

@szampardi
Copy link

szampardi commented Nov 9, 2022

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
  • Nextcloud Server is running on 64bit capable CPU, PHP and OS.
  • I agree to follow Nextcloud's Code of Conduct.

Bug description

nothing happens when trying to add oauth2 client

Steps to reproduce

  1. go to /settings/admin/security
  2. scroll down to "OAuth 2.0 clients" section, fill Name and Redirection URI
  3. click Add

Expected behavior

oauth2 credentials should be created and showed

Installation method

Community Docker image

Operating system

Other

PHP engine version

No response

Web server

Nginx

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Updated to a major version (ex. 22.2.3 to 23.0.1)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

# /usr/bin/docker exec --user 82 -ti nextcloud-app-1 php occ config:list system
{
    "system": {
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "password": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "deepnull.com"
        ],
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "overwritehost": "***REMOVED SENSITIVE VALUE***",
        "overwriteprotocol": "https",
        "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "Etc\/UTC",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "25.0.1.1",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "user_backends": [
            {
                "class": "\\OCA\\UserExternal\\BasicAuth",
                "arguments": [
                    "***REMOVED SENSITIVE VALUE***"
                ]
            },
            {
                "class": "\\OCA\\UserExternal\\IMAP",
                "arguments": [
                    "***REMOVED SENSITIVE VALUE***",
                    993,
                    "ssl",
                    "***REMOVED SENSITIVE VALUE***",
                    true,
                    true
                ]
            },
            {
                "class": "\\OCA\\UserExternal\\IMAP",
                "arguments": [
                    "***REMOVED SENSITIVE VALUE***",
                    993,
                    "ssl",
                    "***REMOVED SENSITIVE VALUE***",
                    true,
                    true
                ]
            }
        ],
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "tls",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "app.mail.verify-tls-peer": false,
        "data-fingerprint": "34da58b4d28a4249718f0e27e160a387",
        "maintenance": false,
        "loglevel": 0,
        "remember_login_cookie_lifetime": 1296000,
        "session_lifetime": 86400,
        "session_keepalive": true,
        "auth.bruteforce.protection.enabled": true,
        "check_for_working_webdav": false,
        "check_for_working_wellknown_setup": false,
        "upgrade.disable-web": true,
        "mysql.utf8mb4": true,
        "has_rebuilt_cache": true,
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
        "default_phone_region": "US",
        "app_install_overwrite": [
            "user_external",
            "rainloop",
            "phonetrack",
            "jitsi"
        ]
    }
}

List of activated Apps

# /usr/bin/docker exec --user 82 -ti nextcloud-app-1 php occ app:list
Enabled:
  - activity: 2.17.0
  - analytics: 4.5.0
  - bruteforcesettings: 2.5.0
  - calendar: 4.1.0
  - cfg_share_links: 3.0.0
  - circles: 25.0.0
  - cloud_federation_api: 1.8.0
  - comments: 1.15.0
  - contacts: 5.0.1
  - contactsinteraction: 1.6.0
  - cospend: 1.5.2
  - dashboard: 7.5.0
  - dav: 1.24.0
  - external: 5.0.0
  - externalpassword: 1.0.0
  - federatedfilesharing: 1.15.0
  - federation: 1.15.0
  - files: 1.20.1
  - files_downloadactivity: 1.15.0
  - files_external: 1.17.0
  - files_pdfviewer: 2.6.0
  - files_rightclick: 1.4.0
  - files_sharing: 1.17.0
  - files_trashbin: 1.15.0
  - files_versions: 1.18.0
  - firstrunwizard: 2.14.0
  - forms: 3.0.1
  - jitsi: 0.15.0
  - logreader: 2.10.0
  - lookup_server_connector: 1.13.0
  - maps: 0.2.1
  - nextcloud_announcements: 1.14.0
  - notes: 4.6.0
  - notifications: 2.13.1
  - oauth2: 1.13.0
  - password_policy: 1.15.0
  - phonetrack: 0.7.2
  - photos: 2.0.0
  - polls: 4.0.0
  - privacy: 1.9.0
  - provisioning_api: 1.15.0
  - rainloop: 7.2.6
  - recommendations: 1.4.0
  - related_resources: 1.0.3
  - serverinfo: 1.15.0
  - settings: 1.7.0
  - sharebymail: 1.15.0
  - support: 1.8.0
  - survey_client: 1.13.0
  - systemtags: 1.15.0
  - tasks: 0.14.5
  - text: 3.6.0
  - theming: 2.0.1
  - twofactor_backupcodes: 1.14.0
  - twofactor_email: 2.7.1
  - twofactor_nextcloud_notification: 3.5.0
  - twofactor_totp: 7.0.0
  - twofactor_webauthn: 1.0.0
  - updatenotification: 1.15.0
  - user_external: 3.0.0
  - user_status: 1.5.0
  - viewer: 1.9.0
  - weather_status: 1.5.0
  - workflow_pdf_converter: 1.10.0
  - workflowengine: 2.7.0
Disabled:
  - admin_audit
  - appointments: 1.14.0
  - apporder: 0.15.0
  - breezedark: 24.0.2
  - checksum: 1.1.5
  - drawio: 1.0.3
  - encryption
  - extract: 1.3.5
  - files_markdown: 2.3.6
  - gpxpod: 4.3.0
  - health: 1.5.1
  - keeweb: 0.6.10
  - money: 0.7.0
  - news: 19.0.0
  - pdf_downloader: 1.0.6
  - suspicious_login
  - transfer: 0.6.0
  - user_ldap
  - video_converter: 1.0.5
  - webhooks: 0.4.0
  - workflow_media_converter: 1.6.0

Nextcloud Signing status

Technical information
=====================
The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.

Results
=======
- money
	- EXCEPTION
		- OC\IntegrityCheck\Exceptions\InvalidSignatureException
		- Signature could not get verified.

Raw output
==========
Array
(
    [money] => Array
        (
            [EXCEPTION] => Array
                (
                    [class] => OC\IntegrityCheck\Exceptions\InvalidSignatureException
                    [message] => Signature could not get verified.
                )

        )

)

Nextcloud Logs

No response

Additional info

looks like already reported in https://help.nextcloud.com/t/unable-to-add-oauth2-client/149223/2

@szampardi szampardi added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Nov 9, 2022
@szampardi
Copy link
Author

FYI @matt-alton

@matt-alton
Copy link

@szampardi thanks for the heads up and replicating it. I was beginning to think it was an isolated problem or a little utilised feature and unlikely to get any replies.

Regards,
Matt.

@individual-it
Copy link
Contributor

works for me with the docker image 24.0.3 but not with the current version of git master

@giteichi
Copy link

Same problem here in version 25.0.1.

The ADD button has no click event.

@ChristophWurst
Copy link
Member

The ADD button has no click event.

Regression of 53db418.

@ChristophWurst ChristophWurst added 3. to review Waiting for reviews and removed 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Nov 16, 2022
@ChristophWurst ChristophWurst self-assigned this Nov 16, 2022
@anoosa1
Copy link

anoosa1 commented Nov 25, 2022

This is still broken for me I'm using the lscr docker image on version 25.0.1.

@ChristophWurst
Copy link
Member

The fix comes with 25.0.2

@anoosa1
Copy link

anoosa1 commented Nov 25, 2022

alright

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

Successfully merging a pull request may close this issue.

7 participants