* feat: Add email pass authentication provider package * feat: Revamp auth module and remove concept of scope * feat: Revamp the auth module to be more standardized in how providers are loaded * feat: Switch from scope to actor type for authentication * feat: Add support for per-actor auth methods * feat: Add emailpass auth provider by default * fix: Add back app_metadata in auth module
15 lines
312 B
Bash
Executable File
15 lines
312 B
Bash
Executable File
#!/bin/bash
|
|
|
|
status_code=$(curl \
|
|
-X POST\
|
|
-H "Content-Type: application/json"\
|
|
-d '{"email":"'$1'", "password":"'$2'"}'\
|
|
--write-out %{http_code}\
|
|
http://localhost:9000/auth/user/emailpass)
|
|
|
|
if [[ "$status_code" -ne 200 ]] ; then
|
|
echo "Site status changed to $status_code"
|
|
exit 1
|
|
else
|
|
exit 0
|
|
fi |