Skip to content

Denied access in login screen crashes app #4

@RobTS

Description

@RobTS

When a user presses Enter in the username or password field of the LoginActivity (possible in Swiftkey, can't speak for AOSP keyboard), he is directed to the redirect URL of his API with an access denied info in the URL params.

This triggers the parsing of the TokenURL but crashes the Matcher (because obviously, there are no tokens to be found).

Surrounding the matching parts with try/catch and setting the WebView URL to the original one in the catch part - together with a Toast for the user reminding him to click on allow - is a hacky but quick way to solve the problem.

As this part will probably the most copied one, a fix would be great. Another question: Is the API actually working as it should if it redirects the user even when access is denied?

Other than that, I really enjoy working with your API, keep the great work up!

Cheers,

Rob

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions