/api/session endpoints
/api/session endpoints
## `DELETE /api/session/` Logout. ##### PARAMS: * **`metabase-session-id`**
GET /api/session/password_reset_token_valid
Check is a password reset token is valid and isn't expired.
token
value must be a string.## `GET /api/session/password_reset_token_valid` Check is a password reset token is valid and isn't expired. ##### PARAMS: * **`token`** value must be a string.
GET /api/session/properties
Get all global properties and their values. These are the specific Settings
which are meant to be public.
## `GET /api/session/properties` Get all global properties and their values. These are the specific `Settings` which are meant to be public.
(google-auth-auto-create-accounts-domain)
(google-auth-auto-create-accounts-domain new-value)
When set, allow users to sign up on their own if their Google account email address is from this domain.
google-auth-auto-create-accounts-domain
is a string Setting. You can get its value by calling:
(google-auth-auto-create-accounts-domain)
and set its value by calling:
(google-auth-auto-create-accounts-domain <new-value>)
You can also set its value with the env var MB_GOOGLE_AUTH_AUTO_CREATE_ACCOUNTS_DOMAIN
.
Clear its value by calling:
(google-auth-auto-create-accounts-domain nil)
Its default value is nil
.
When set, allow users to sign up on their own if their Google account email address is from this domain. `google-auth-auto-create-accounts-domain` is a string Setting. You can get its value by calling: (google-auth-auto-create-accounts-domain) and set its value by calling: (google-auth-auto-create-accounts-domain <new-value>) You can also set its value with the env var `MB_GOOGLE_AUTH_AUTO_CREATE_ACCOUNTS_DOMAIN`. Clear its value by calling: (google-auth-auto-create-accounts-domain nil) Its default value is `nil`.
(google-auth-client-id)
(google-auth-client-id new-value)
Client ID for Google Auth SSO. If this is set, Google Auth is considered to be enabled.
google-auth-client-id
is a string Setting. You can get its value by calling:
(google-auth-client-id)
and set its value by calling:
(google-auth-client-id <new-value>)
You can also set its value with the env var MB_GOOGLE_AUTH_CLIENT_ID
.
Clear its value by calling:
(google-auth-client-id nil)
Its default value is nil
.
Client ID for Google Auth SSO. If this is set, Google Auth is considered to be enabled. `google-auth-client-id` is a string Setting. You can get its value by calling: (google-auth-client-id) and set its value by calling: (google-auth-client-id <new-value>) You can also set its value with the env var `MB_GOOGLE_AUTH_CLIENT_ID`. Clear its value by calling: (google-auth-client-id nil) Its default value is `nil`.
POST /api/session/
Login.
username
value must be a non-blank string.
password
value must be a non-blank string.
remote-address
request
## `POST /api/session/` Login. ##### PARAMS: * **`username`** value must be a non-blank string. * **`password`** value must be a non-blank string. * **`remote-address`** * **`request`**
POST /api/session/forgot_password
Send a reset email when user has forgotten their password.
server-name
email
value must be a valid email address.
remote-address
## `POST /api/session/forgot_password` Send a reset email when user has forgotten their password. ##### PARAMS: * **`server-name`** * **`email`** value must be a valid email address. * **`remote-address`**
POST /api/session/google_auth
Login with Google Auth.
token
value must be a non-blank string.
remote-address
request
## `POST /api/session/google_auth` Login with Google Auth. ##### PARAMS: * **`token`** value must be a non-blank string. * **`remote-address`** * **`request`**
POST /api/session/reset_password
Reset password with a reset token.
token
value must be a non-blank string.
password
Insufficient password strength
request
## `POST /api/session/reset_password` Reset password with a reset token. ##### PARAMS: * **`token`** value must be a non-blank string. * **`password`** Insufficient password strength * **`request`**
Ring routes for api/session: (POST_ GET_password_reset_token_valid POST_forgot_password GET_properties POST_reset_password DELETE_ POST_google_auth)
Ring routes for api/session: (POST_ GET_password_reset_token_valid POST_forgot_password GET_properties POST_reset_password DELETE_ POST_google_auth)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close