Skip to content

Conversation

@abyrd
Copy link
Member

@abyrd abyrd commented May 10, 2022

This PR is just to keep track of / allow attaching documentation to a branch I created a few weeks back to experiment with moving some user management into our own database tables, seeing how simple authentication could be for our use case, and testing this out with some very general purpose authenticated database access endpoints. Obviously all of this would have to be done over HTTPS not HTTP, some things should be in headers or request bodies rather than query parameters, etc. but it does seem to represent a viable approach.

I wouldn't really want to use a Java keystore to set up HTTPS - at this point we'd prefer to work with more common files and have identified some code/libraries to do this programmatically. But the Spark framework HTTPS setup doesn't seem to allow supplying a programmatically constructed keystore instance, only a filename for one on disk. So doing this whole thing cleanly implies migrating the HTTP API over to run directly on Jetty, or on something like Undertow, rather than Spark (which we've long been considering removing).

abyrd and others added 5 commits May 10, 2022 15:52
html select boxes to choose region/bundle/feed
update map style JSON to match GTFS vector tile layer names
try serving up vector tiles UI html/js without CORS
will eventually require token expiration/eviction
also url-safe tokens (can be included as a query param)
factor out logic from streaming / non-streaming database endpoints
added login and token example to vector tile client
@abyrd abyrd force-pushed the auth-db-experiments branch from c4e28e3 to 7d31889 Compare May 10, 2022 07:53
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