mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-05-31 15:00:45 +00:00
parent
0f9674ec0a
commit
687d0b1c62
@ -429,7 +429,11 @@ impl InternalService for Internal {
|
|||||||
return Err(Status::invalid_argument("email is missing"));
|
return Err(Status::invalid_argument("email is missing"));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
let email_verified = oidc_user.email_verified().unwrap_or_default();
|
let email_verified = oidc_user.email_verified().unwrap_or_default()
|
||||||
|
|| conf
|
||||||
|
.user_authentication
|
||||||
|
.openid_connect
|
||||||
|
.assume_email_verified;
|
||||||
|
|
||||||
if !email_verified {
|
if !email_verified {
|
||||||
return Err(Status::failed_precondition(
|
return Err(Status::failed_precondition(
|
||||||
|
@ -600,6 +600,14 @@ pub fn run() {
|
|||||||
# The login label is used in the web-interface login form.
|
# The login label is used in the web-interface login form.
|
||||||
login_label="{{ user_authentication.openid_connect.login_label }}"
|
login_label="{{ user_authentication.openid_connect.login_label }}"
|
||||||
|
|
||||||
|
# Assume e-mail verified.
|
||||||
|
#
|
||||||
|
# If set to true, then ChirpStack will ignore the email_verified received
|
||||||
|
# from the OpenID Connect provider, assuming it will be true. Some
|
||||||
|
# providers do not provide this field, in which case setting this value
|
||||||
|
# is needed.
|
||||||
|
assume_email_verified={{ user_authentication.openid_connect.assume_email_verified }}
|
||||||
|
|
||||||
|
|
||||||
# Join Server configuration.
|
# Join Server configuration.
|
||||||
[join_server]
|
[join_server]
|
||||||
|
@ -407,6 +407,7 @@ pub struct OpenIdConnect {
|
|||||||
pub redirect_url: String,
|
pub redirect_url: String,
|
||||||
pub logout_url: String,
|
pub logout_url: String,
|
||||||
pub login_label: String,
|
pub login_label: String,
|
||||||
|
pub assume_email_verified: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Default, Clone)]
|
#[derive(Serialize, Deserialize, Default, Clone)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user