Skip to content
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

Feature/package support #88

Merged
merged 38 commits into from
Feb 8, 2021
Merged

Feature/package support #88

merged 38 commits into from
Feb 8, 2021

Conversation

aivis
Copy link
Contributor

@aivis aivis commented Oct 13, 2020

No description provided.

aivis and others added 30 commits August 28, 2020 08:09
…ent-ui

# Conflicts:
#	app/ApiToken.php
#	database/migrations/2020_11_13_120125_create_api_tokens_table.php
[Feature] Add basic UI for API token management.
We hadn't hooked up the Registered event that is fired by default, so we never sent the email verification. Verification was being sent when specifically re-requesting it, however.
* Upgrade to Laravel 8

This moves us to L8. Most of the work has been put into making the tests pass, as we have moved to using the new, "improved" factories, rather than add the legacy factories package.

Additionally we have moved models to a `Models` namespace, to be in line with how a new L8 project is structured in that regard.

* Make changes based on review

- Remove phpunit.xml.bak
- Remove commented out code in TestCase.php
- API endpoints now back under /api
- User model correctly set in auth config
- Removed great big TODO because it isn't TODO
This also removes the workspaces API routes, as they only make sense using a user-level authentication, but we don't want to support doing that, as it would be the only routes that do, with everything else being a workspace-level authentication.
It was pushed to the right by a space between the text and the icon. It should now be consistent with the other menu items.
mauricius and others added 8 commits January 27, 2021 13:53
The Facades\Sendportal class was not correctly set up as a facade. It is unclear about how it was working before, but it stopped. The core package now correctly implements the facade, and additionally renames some of the methods to be clearer about what they do.

This commit ensures that we use the facade from the core package correctly, largely by updating to use the new method names.

Additionally, some minor adjustments have been made to the implementations of things like the workspace ID resolver, to make them a tiny bit more robust (checking for null and that sort of thing).
In theory this is okay, but need to push up to do some checks on actually upgrading installations from the old version. So as of this commit it's not guaranteed to be correct. Sorry.
The previous version of SP included the ability to use API tokens as either a Bearer token, or supplied as an `api_token` parameter in a request (GET or POST). This new packaged version removed that ability, but the various middlewares still let it through as a valid token, ending up hitting us with a RuntimeException thrown from the workspace ID resolver.

We now check for the API token in the resolver bother as a bearer token and as an `api_token` parameter, and subsequently avoid seeing the RuntimeException in this case, with the advantage of keeping a little backward compatibility with v1.
@JonoB JonoB merged commit a4840c4 into master Feb 8, 2021
@JonoB JonoB deleted the feature/package-support branch February 8, 2021 14:20
rockbuzz pushed a commit to rockbuzz/sendportal that referenced this pull request Jan 29, 2022
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.

None yet

4 participants