Skip to content

Wrong Server URL causes misleading Oauth error #657

@jnweiger

Description

@jnweiger

Seen with OpenCloud Beta OpenCloud Beta 3.0.0.1828 (from CI)

My server is at https://oc.jwqa.de:9200
Instead of using this URL as is, I try to connect the client to connect the client to oc.jwqa.de:9200/foo

Image

No browser window opens, but a message appears:

Oauth2 authentication requires a secured connection

  • This message is misleading. The connection is secure. BAD
  • The message is untranslated. It should be in German locale. BAD
Image

Expected behaviour: "Cannot connect to server. Please check the URL." (in the correct locale)

Using the Copy URL button, I get only query parameters starting with ? without the actual URL in front:
?response_type=code&client_id=OpenCloudDesktop&redirect_uri=http://127.0.0.1:45457&code_challenge=ZKn-16eVVm9tB...

Normally this URL looks like:
https://oc.jwqa.de:9200/signin/v1/identifier/_/authorize?response_type=code&client_id=OpenCloudDesktop&redirect_uri=http://127.0.0.1:37271&code_challenge=TdJFo4qh6Kh...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions