railroad / usora
User management system.
Installs: 75 373
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^8.2
- ext-redis: *
- doctrine/annotations: ^2.0
- doctrine/inflector: ^2.0
- guzzlehttp/guzzle: ^7.2
- jms/serializer: ^3.3
- laravel/framework: ^11.9
- league/flysystem: ^3.0
- league/flysystem-aws-s3-v3: ^3.0
- mikemclin/laravel-wp-password: ~2.0.1
- php-open-source-saver/jwt-auth: 2.7.*
- railroad/doctrine: 3.0.*
- railroad/doctrine-array-hydrator: 3.0.*
- railroad/permissions: 3.0.*
- spatie/laravel-fractal: ^6.0
Requires (Dev)
- orchestra/testbench: ^9.2
- phpunit/php-code-coverage: ^11.0.1
- phpunit/phpunit: ^11.0.1
- dev-main
- v4.0.x-dev
- v4.0.1
- v4.0.0
- v3.0.x-dev
- v3.0.2
- v3.0.1
- v3.0.0
- v2.1.1
- v2.1.0
- v2.0.84
- v2.0.83
- v2.0.82
- v2.0.81
- v2.0.80
- v2.0.79
- v2.0.78
- v2.0.77
- v2.0.76
- v2.0.75
- v2.0.73
- v2.0.72
- v2.0.71
- v2.0.70
- v2.0.69
- v2.0.68
- v2.0.67
- v2.0.66
- v2.0.65
- v2.0.64
- v2.0.63
- v2.0.62
- v2.0.61
- v2.0.60
- v2.0.59
- v2.0.58
- v2.0.57
- v2.0.56
- v2.0.55
- v2.0.54
- v2.0.53
- v2.0.52
- v2.0.51
- v2.0.50
- v2.0.49
- v2.0.48
- v2.0.47
- v2.0.46
- v2.0.45
- v2.0.44
- v2.0.43
- v2.0.42
- v2.0.41
- v2.0.40
- v2.0.39
- v2.0.38
- v2.0.37
- v2.0.36
- v2.0.35
- v2.0.34
- v2.0.33
- v2.0.32
- v2.0.31
- v2.0.30
- v2.0.29
- v2.0.28
- v2.0.27
- v2.0.26
- v2.0.25
- v2.0.24
- v2.0.23
- v2.0.22
- v2.0.21
- v2.0.20
- v2.0.19
- v2.0.18
- v2.0.17
- v2.0.16
- v2.0.15
- v2.0.14
- v2.0.13
- v2.0.12
- v2.0.11
- v2.0.10
- v2.0.9
- v2.0.8
- v2.0.7
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v1.0.08
- v1.0.07
- v1.0.06
- v1.0.05
- v1.0.04
- v1.0.03
- v1.0.02
- v1.0.01
- v1.0.0
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- v0.0.44
- v0.0.43
- v0.0.42
- v0.0.41
- v0.0.40
- v0.0.39
- v0.0.38
- v0.0.37
- v0.0.36
- v0.0.35
- v0.0.34
- v0.0.33
- v0.0.32
- v0.0.31
- v0.0.30
- v0.0.29
- v0.0.28
- v0.0.27
- v0.0.26
- v0.0.25
- v0.0.24
- v0.0.23
- v0.0.22
- v0.0.21
- v0.0.20
- v0.0.19
- v0.0.18
- v0.0.17
- v0.0.16
- v0.0.15
- v0.0.14
- v0.0.13
- v0.0.12
- v0.0.11
- v0.0.10
- v0.0.09
- v0.0.08
- v0.0.07
- v0.0.06
- v0.0.05
- v0.0.04
- v0.0.03
- v0.0.02
- v0.0.01
- dev-v2.0-
- dev-v3.0-php-8-laravel-9-migration
- dev-v2.0-skill
- dev-v2.0-customer-io-device-sync
- dev-v2.0-sso-fix
- dev-magazine-shipping-fields
- dev-v2.0-use-legacy-video-player
- dev-firebase_tokens
- dev-v2.0-doctrine
- dev-jwt-authentication
- dev-new-db-methodology
This package is auto-updated.
Last update: 2024-11-05 20:03:30 UTC
README
Usora is a user management system including auth, user settings, user information, and single sign on.
Single Sign On
How it Works
Users can be signed in on any domain running this package with a single login attempt from any of the domains as long as they are all connected to the same usora database. This is possible by setting authentication cookies on all participating domains after the login succeeds using html img tags.
API Reference
Get Index of Users
GET user/index
Request Example(s)
$.ajax({ url: 'https://www.musora.com' + '/usora/user/index?' + 'limit=10' + '&' + 'page=1' + '&' + 'order_by_column=email' + '&' + 'order_by_direction=asc', type: 'get', dataType: 'json', success: function(response) { // handle success }, error: function(response) { // handle error } });
Request Parameters
Response Example(s)
200 OK
{ "status":"ok", "code":201, "results":{ "id":217988, "content_id":202313, "key":"difficulty", "value":"1", "type":"integer", "position":1 } }
Get Single User by ID
GET user/show/{id}
Request Example(s)
var userId = 1; $.ajax({ url: 'https://www.musora.com' + '/usora/user/show/' . userId, type: 'get', dataType: 'json', success: function(response) { // handle success }, error: function(response) { // handle error } });
Request Parameters
Response Example(s)
200 OK
{ "id":"1", "email":"pascale84@schimmel.com", "password":"$2y$10$hh5cU.fo.Jq48A267zkjiun\\/W.TwbRs4Pg02Nm.X7k.s5yKQxVMj2", "remember_token":"D5mpp6aZhvi5vOD7Fs4EDMw8782Be3hXcrRa7cUEaqt6eXlmQPmKbaU1RKdy", "session_salt":"0bPpeEbf13tpNi5zkN6bHSQ5Oq72s7YVrCkh2rkRA65Jttd16d0RGQNJbc1R", "display_name":"sed accusamus dolorem ut", "created_at":"1526460917", "updated_at":"1526460917", "fields":[] }
Update User's Display Name
PUT user/update/{id}
Request Example(s)
var userId = 1; var displayNameToSet = 'sed accusamus dolorem ut'; $.ajax({ url: 'https://www.musora.com' + '/usora/user/update/' . userId, type: 'patch', data: {display_name: displayNameToSet}, dataType: 'json', success: function(response) { // handle success }, error: function(response) { // handle error } });
Request Parameters
Response Example(s)
200 OK
{ "id":"1", "email":"pascale84@schimmel.com", "password":"$2y$10$hh5cU.fo.Jq48A267zkjiun\\/W.TwbRs4Pg02Nm.X7k.s5yKQxVMj2", "remember_token":"D5mpp6aZhvi5vOD7Fs4EDMw8782Be3hXcrRa7cUEaqt6eXlmQPmKbaU1RKdy", "session_salt":"0bPpeEbf13tpNi5zkN6bHSQ5Oq72s7YVrCkh2rkRA65Jttd16d0RGQNJbc1R", "display_name":"sed accusamus dolorem ut", "created_at":"1526460917", "updated_at":"1526460917", "fields":[ ] }
(todo: the rest of the endpoints)
Get details from "USORA USER MANAGEMENT SYSTEM - JSON API" section of https://musora.readme.io/v1.0.0/reference
- put, user/store
- patch, user/update/:id
- delete, user/delete/:id
- get, user-field/index/:id
- get, user-field/show/:id
- put, user-field/store
- patch, user-field/update/:id
- patch, user-field/update-or-create-by-key
- delete, user-field/delete/:id
- patch, user-field/update-or-create-multiple-by-key
Events
EmailChangeRequest
Captures that an EmailChangeRequest was made.
Trigger exists in request
method of EmailChangeController
No Listener exists.
UserEvent
Capture any user-account change.
Trigger exists in:...
- Both
UserQuery
* methodsinsertGetId
(eventType param value: "created")update
(eventType param value: "updated")
- All three
UserFieldQuery
* methods (eventType param value: "field-updated" in each)insertGetId
update
delete
*namespace for each is Railroad\Usora\Repositories\Queries
No listener exists.
The End.