Skip to content

Commit a019b59

Browse files
authored
[nexus] include oxide-scim- prefix in SCIM token response (#9301)
Closes #9300
1 parent 7b04458 commit a019b59

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nexus/db-model/src/scim_client_bearer_token.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ impl From<ScimClientBearerToken> for views::ScimClientBearerTokenValue {
4747
id: t.id,
4848
time_created: t.time_created,
4949
time_expires: t.time_expires,
50-
bearer_token: t.bearer_token,
50+
bearer_token: format!("oxide-scim-{}", t.bearer_token),
5151
}
5252
}
5353
}

nexus/tests/integration_tests/scim.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ async fn test_scim_client_token_bearer_auth(
446446
RequestBuilder::new(client, Method::GET, "/scim/v2/Users")
447447
.header(
448448
http::header::AUTHORIZATION,
449-
format!("Bearer oxide-scim-{}", created_token.bearer_token),
449+
format!("Bearer {}", created_token.bearer_token),
450450
)
451451
.allow_non_dropshot_errors()
452452
.expect_status(Some(StatusCode::INTERNAL_SERVER_ERROR))

0 commit comments

Comments
 (0)