Skip to content

Identity-aware-proxy (IAP) support#117

Closed
piekay wants to merge 3 commits into
kepelet:developfrom
piekay:iap
Closed

Identity-aware-proxy (IAP) support#117
piekay wants to merge 3 commits into
kepelet:developfrom
piekay:iap

Conversation

@piekay
Copy link
Copy Markdown

@piekay piekay commented Mar 13, 2026

After a bit of cleanup I think the code is now ready for a pull request. See:
#116

The app now supports custom sources for: username, JWT Header and Authentication cookie. This code automatically extracts the cookies needed for login from the webview thus allowing near seamless oauth2 experience.

Tested with:

Oauth2-proxy and Nginx

Should work with:
Nearly all oauth2 iap solutions

Simulator Screenshot - iPhone 17 Pro - 2026-03-13 at 19 21 32 Simulator Screenshot - iPhone 17 Pro - 2026-03-13 at 19 21 40 Simulator Screenshot - iPhone 17 Pro - 2026-03-13 at 19 21 46

@faultables
Copy link
Copy Markdown
Member

looks really good!

@faultables
Copy link
Copy Markdown
Member

@piekay btw does it work with the "Save login info" experimental feature?

@piekay
Copy link
Copy Markdown
Author

piekay commented Mar 14, 2026

@piekay btw does it work with the "Save login info" experimental feature?

Sadly I don’t see a way to integrate it, since login is being handled by the Webview, but you reminded me of something I forgot to test: I haven’t tested what happens if the session expires… I‘ll test it and share the results here

@piekay
Copy link
Copy Markdown
Author

piekay commented Mar 14, 2026

So it works normally (shows the your session may have expired text).

Most Oauth2 solutions allow for indefinite sessions, so the user could configure this server-side, when it comes to "Save login info"

@faultables
Copy link
Copy Markdown
Member

So it works normally (shows the your session may have expired text).

Most Oauth2 solutions allow for indefinite sessions, so the user could configure this server-side, when it comes to "Save login info"

@piekay nice! so the best thing for now is disabling that save login info option for IAP auth

@piekay
Copy link
Copy Markdown
Author

piekay commented Mar 14, 2026

So it works normally (shows the your session may have expired text).
Most Oauth2 solutions allow for indefinite sessions, so the user could configure this server-side, when it comes to "Save login info"

@piekay nice! so the best thing for now is disabling that save login info option for IAP auth

I added a change that disables the Option for Users that use OAuth2 and makes it clear that the option will be disabled if OAuth is used. The Indonesian translation isn't up to date, since I don't speak it and I don't want to rely on autotranslation

@faultables
Copy link
Copy Markdown
Member

your commits are cherrypicked into #118 and already on TestFlight, thanks!

@faultables
Copy link
Copy Markdown
Member

closing this as all commits have been cherrypicked to release/2.2

@faultables faultables closed this Mar 16, 2026
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

Successfully merging this pull request may close these issues.

2 participants