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

How to handle access denial? #15

Closed
dani-mp opened this issue Mar 12, 2017 · 0 comments
Closed

How to handle access denial? #15

dani-mp opened this issue Mar 12, 2017 · 0 comments

Comments

@dani-mp
Copy link

dani-mp commented Mar 12, 2017

Hi there!

What's the best way of handling an access denial?

Imagine this scenario: a working Authorization is provided, but then the user deny the access. The next URL loaded is going to be checked via the Authentication closure, but as it won't be a successful one, the closure is going to return nil, making impossible for the app to know in which state the auth flow is right now. Some providers will show a nice web page with a proper message, but others will show just an ugly HTML like this one from Google:

google auth denial

It'd be great to enforce a way to handle also this scenario, where the auth flow has finished, but not in a successful way. How do you handle this at the moment?

@pepicrft pepicrft closed this as completed May 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants