Skip to content

Commit

Permalink
Decouple Authenticatability from User (#3)
Browse files Browse the repository at this point in the history
Refactor Authenticator, Authtoken, and AbstractUser.
  • Loading branch information
mcaskill authored Nov 4, 2019
2 parents 6151ba6 + a2d9ab5 commit 17a32ec
Show file tree
Hide file tree
Showing 23 changed files with 2,153 additions and 932 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"prefer-stable": true,
"extra": {
"branch-alias": {
"dev-master": "0.5.x-dev"
"dev-master": "0.6.x-dev"
}
},
"require": {
Expand Down
17 changes: 17 additions & 0 deletions metadata/charcoal/user/auth-token-interface.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"properties": {
"ident": {
"type": "string",
"unique": true
},
"token": {
"type": "string"
},
"user_id": {
"type": "string"
},
"expiry": {
"type": "date-time"
}
}
}
22 changes: 0 additions & 22 deletions metadata/charcoal/user/auth-token.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,4 @@
{
"properties": {
"ident": {
"type": "string",
"unique": true
},
"token": {
"type": "string"
},
"user_id": {
"type": "string"
},
"expiry": {
"type": "date-time"
},
"created": {
"type": "date-time"
},
"last_modified": {
"type": "date-time"
}
},

"sources": {
"default": {
"table": "charcoal_user_auth_tokens"
Expand Down
Loading

0 comments on commit 17a32ec

Please sign in to comment.