fix(oauth): correct test expectation for invalid scope error handling
Per OAuth 2.0 spec (RFC 6749 Section 4.1.2.1), once redirect_uri is validated, errors like invalid scope should redirect to the client rather than return HTTP 400.
···3030 response.status |> should.equal(400)
3131}
32323333-pub fn authorize_invalid_scope_returns_400_test() {
3333+pub fn authorize_invalid_scope_redirects_with_error_test() {
3434 let assert Ok(cache) = did_cache.start()
3535 let assert Ok(conn) = sqlight.open(":memory:")
3636 let assert Ok(_) = tables.create_oauth_client_table(conn)
···7676 None,
7777 )
78787979- // Should return 400 due to invalid scope format
8080- response.status |> should.equal(400)
7979+ // Per OAuth 2.0 spec (RFC 6749 Section 4.1.2.1), once redirect_uri is validated,
8080+ // errors should be redirected to the client, not returned as 400
8181+ response.status |> should.equal(303)
8182}