Page MenuHomeDevCentral

WIP: identities
Changes PlannedPublic

Authored by dereckson on Jul 14 2015, 00:04.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 17, 05:36
Unknown Object (File)
Tue, Dec 17, 04:50
Unknown Object (File)
Thu, Dec 12, 17:01
Unknown Object (File)
Thu, Dec 12, 05:59
Unknown Object (File)
Wed, Dec 11, 16:56
Unknown Object (File)
Mon, Dec 9, 21:52
Unknown Object (File)
Sun, Dec 8, 17:22
Unknown Object (File)
Sat, Dec 7, 20:52
Subscribers

Details

Reviewers
None
Maniphest Tasks
T476: Implement subaccounts
Summary

This is a preview of the identities support.

This will allow to link several identities to an user account,
and to switch from one to another.

Fixes T476.

Diff Detail

Repository
rGROVE Auth Grove
Lint
Lint Passed
Unit
No Test Coverage
Branch
identities
Build Status
Buildable 584
Build 700: arc lint + arc unit

Event Timeline

dereckson retitled this revision from to WIP: identities.
dereckson updated this object.
dereckson edited the test plan for this revision. (Show Details)
dereckson added a reviewer: Sandlayth.
dereckson added a subscriber: Sandlayth.

@Sandlayth is interested to test this feature, but not comfortable with the idea to have to review PHP code.

composer.json
11

My rebase mrege was wrong: that should be ~0.4 (see 18efcf9)

dereckson marked an inline comment as done.

Caret operator for version in composer.json

dereckson added inline comments.
app/Identity.php
8

4 spaces?

dereckson marked an inline comment as done.

tabs → spaces

dereckson added inline comments.
app/Models/User.php
151 ↗(On Diff #1100)

According getCurrentIdentity:

// Tries to autoselect identity if there is only one
// or if one is configured to be used by default.

Only the first case is here implemented, not the default one.

composer.json
10–11

Can probably be switched to rKOT?

database/factories/ModelFactory.php
25

use Keruald\OmniTools\Identifiers\UUID;

'uuid' => UUID::UUIDv4();

Or we can also use the new Random::generateIdentifier() to provide 20 bytes instead of 16, but a more compact string ?

database/migrations/2015_07_12_000000_create_identities_table.php
17

Can't this be the primary key?