Serve /.well-known app-association files for mobile deep links#142
Open
mikedegeofroy wants to merge 1 commit into
Open
Serve /.well-known app-association files for mobile deep links#142mikedegeofroy wants to merge 1 commit into
mikedegeofroy wants to merge 1 commit into
Conversation
onec-ui-starter now serves apple-app-site-association and assetlinks.json so iOS/Android open the onec-mobile app from a server's https:// links (Universal Links / App Links). - WellKnownController + AppLinksProperties (prefix onec.app-links), wired in UiAutoConfiguration. Public, unauthenticated, application/json, no redirect; both 404 until configured so an unconfigured server advertises no association. - Docs (ARCHITECTURE endpoint table, CONFIGURATION, ui-starter README) and a commented example in the example app. Server half of onno-erp/onno-mobile#5. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
931e057 to
bb737a9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Server half of onno-erp/onno-mobile#5 — lets the onec-mobile app open directly from a server's
https://links (iOS Universal Links / Android App Links).onec-ui-starternow serves the two association files the OS fetches:GET /.well-known/apple-app-site-associationGET /.well-known/assetlinks.jsonDesign
WellKnownController+AppLinksProperties(@ConfigurationProperties("onec.app-links")), wired as@Beans inUiAutoConfiguration.application/json, no redirect — the OS rejects the association on any login wall or redirect. They sit outside/api/**(public by default) and, being explicit controller mappings, take precedence over the SPA's/**index.htmlfallback.Verification
WellKnownControllerTest, 4) — payload shape + 404-when-unconfigured.200 application/json; auth-exempt (a protected/api/**returns401while the AASA returns200with no cookies); no redirect; unknown paths still serve the SPA, so it isn't shadowed.Docs
Updated
docs/ARCHITECTURE.md(endpoint table + public-paths note),docs/CONFIGURATION.md,onec-ui-starter/README.md, and a commented block in the example app'sapplication.yaml.