diff --git a/nexus/db-model/src/scim_client_bearer_token.rs b/nexus/db-model/src/scim_client_bearer_token.rs index 3239bc85299..09c3c4c27b8 100644 --- a/nexus/db-model/src/scim_client_bearer_token.rs +++ b/nexus/db-model/src/scim_client_bearer_token.rs @@ -47,7 +47,7 @@ impl From for views::ScimClientBearerTokenValue { id: t.id, time_created: t.time_created, time_expires: t.time_expires, - bearer_token: t.bearer_token, + bearer_token: format!("oxide-scim-{}", t.bearer_token), } } } diff --git a/nexus/tests/integration_tests/scim.rs b/nexus/tests/integration_tests/scim.rs index 4946f586e6f..a5826d2488b 100644 --- a/nexus/tests/integration_tests/scim.rs +++ b/nexus/tests/integration_tests/scim.rs @@ -446,7 +446,7 @@ async fn test_scim_client_token_bearer_auth( RequestBuilder::new(client, Method::GET, "/scim/v2/Users") .header( http::header::AUTHORIZATION, - format!("Bearer oxide-scim-{}", created_token.bearer_token), + format!("Bearer {}", created_token.bearer_token), ) .allow_non_dropshot_errors() .expect_status(Some(StatusCode::INTERNAL_SERVER_ERROR))