Repository navigation
Session device names, no stale config cache in Docker, guides for app 1.6.0 - #3
Merged
Merged
Conversation
…uides match app 1.6.0 - POST /auth/login and /auth/register accept an optional device_name (up to 60 characters); it is the session name in GET /auth/sessions, and a token refresh keeps it - Docker: bootstrap/cache/*.php is not copied into the image, every start removes an old config cache before the first artisan call, and the server prints its public address (with a warning for a placeholder APP_URL) - openapi.yaml: device_name, the session name, public_url_configured on POST /v1/invitations, the public_url health check - Docs: app guides rebuilt around servers (Settings root, the Server screen, one way to invite, device names); troubleshooting for an APP_URL that is right in a file but not used - Tests: tests/Feature/Auth/DeviceNameTest.php
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.
Summary
POST /auth/loginandPOST /auth/registeraccept an optionaldevice_name. It becomes the sessionnameinGET /auth/sessions, and a token refresh keeps it. Old apps keep the namemobile-app.kinlore-api/bootstrap/cache/config.php, ignored by git) was copied into the image, and the start script rebuilt it only forAPP_ENV=production. An old cache could keep an oldAPP_URLthroughgit pullandup -d --build. The file is no longer copied, every start removes an old cache first, and the server prints its public address at start.openapi.yamllistsdevice_name, the sessionname,public_url_configuredand thepublic_urlhealth check.Checks
php artisan test: 243 passed, 1 skipped (newtests/Feature/Auth/DeviceNameTest.php).npm run docs:build: passes.dockerCI job is the test for it.