-
Notifications
You must be signed in to change notification settings - Fork 18
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
better "return to app" HTML page #182
Comments
My PR is still open: openid/AppAuth-iOS#413 😞 |
I see that @johankool pointed out earlier that this is better done with a page hosted in eduvpn.org and/or letsconnect-vpn.org, and @fkooman preferred that it be handled locally. The local web server is probably not the right place for it because once the flow ends, the web server is dismantled. The OAuth library doesn't provide an API to provide the HTML, or to redirect to the local web server. It does provide an API to redirect to a URL that we host. Given that OAuth hasn't been interested in merging Johan's PR, I think our options are:
|
This really makes no sense. It is a really bad design to add a dependency on a central web server just because the API is so shitty. So no, we won't be doing that. Maybe you can investigate why they are not interested in the PR, maybe they don't like the way you do it? Another option would be just to improve the included HTML to look a bit better, so no need to provide our own, just improve it for everyone. If it is not possible without patching the OAuth client I'd just say just leave it as-is and close this issue. |
My guess is that their check on unit tests complained that this isn't unit tested, or at least caused the percentage of covered code to drop, albeit minimally. |
@fkooman This is a great idea and I want to try it. Can I base the HTML template on the HTML/CSS from https://github.com/Amebis/eduOAuth/tree/master/eduOAuth/Resources/Html ? (Just making sure there isn't any issue giving away our design / html to OAuth or something like that.) |
@efef Do you have any thoughts on whether I can take some HTML/CSS code from https://github.com/Amebis/eduOAuth/tree/master/eduOAuth/Resources/Html and contribute that to the AppAuth library? |
Or you can also create a new one that fits better in Apple systems, e.g. use the correct fonts, style for Apple. Also dark mode would be nice :) If you need help with that let me know! |
I'm not great with web design and stuff, so if you can help me with the page HTML/CSS, that would be great. |
Okay, on it! :-) |
|
This might be a first good step, very simple, no crap. If this is acceptable for upstream, perhaps we can also look into dark-mode and the error pages that should also be made. |
Thanks. I've filed a PR on AppAuth with this: openid/AppAuth-iOS#633 . It also uses the same HTML template for error cases. |
The AppAuth PR gave me some ideas to fix this in our codebase itself by overriding the AppAuth code. |
This one got lost? eduvpn/macos#153
The text was updated successfully, but these errors were encountered: