Skip to content

Commit cb58d08

Browse files
authored
fixed warp-tech#1404 - SSO user autocreation not working with Entra ID (warp-tech#1406)
1 parent bbbdcb5 commit cb58d08

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

warpgate-protocol-http/src/api/sso_provider_list.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,14 @@ impl Api {
180180
));
181181
};
182182

183-
let response = context.request.verify_code((*code).clone()).await?;
183+
let response = context
184+
.request
185+
.verify_code((*code).clone())
186+
.await
187+
.inspect_err(|e| {
188+
// More error details visible via Debug
189+
warn!("Failed to verify SSO code: {e:?}");
190+
})?;
184191

185192
if !response.email_verified.unwrap_or(true) {
186193
return Ok(Err("The SSO account's e-mail is not verified".to_string()));

warpgate-sso/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ impl SsoInternalProviderConfig {
185185
pub fn scopes(&self) -> Vec<String> {
186186
match self {
187187
SsoInternalProviderConfig::Google { .. } | SsoInternalProviderConfig::Azure { .. } => {
188-
vec!["email".to_string()]
188+
vec!["email".into(), "profile".into()]
189189
}
190190
SsoInternalProviderConfig::Custom { scopes, .. } => scopes.clone(),
191191
SsoInternalProviderConfig::Apple { .. } => vec![],

0 commit comments

Comments
 (0)